From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jun 4 17:40:42 2010 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 635E0106567B; Fri, 4 Jun 2010 17:40:42 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 811908FC1A; Fri, 4 Jun 2010 17:40:40 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 4F0EFA56D87; Sat, 5 Jun 2010 01:40:37 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id t6nMxhxUprH6; Sat, 5 Jun 2010 01:40:30 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id A3DEFA5619B; Sat, 5 Jun 2010 01:40:27 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=WqLbGLE8W71dHT5KqXgQqPKZ9rjdJfKR91H4N+/Skjhb284geF/o+id/aF0KlzlVD aaFslfu7C3gYPtLRfZ1mg== Message-ID: <4C093A85.5010907@delphij.net> Date: Fri, 04 Jun 2010 10:40:21 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100602 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: Matthias Andree References: <201006040003.o5403NUb006763@freefall.freebsd.org> <4C084738.2010305@delphij.net> <4C08D5FC.8020800@FreeBSD.org> In-Reply-To: <4C08D5FC.8020800@FreeBSD.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports-bugs@FreeBSD.ORG, delphij@FreeBSD.ORG, d@delphij.net, Renato Botelho Subject: Re: ports/147456: openldap24-client build failure on 6.4 AMD64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2010 17:40:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010/06/04 03:31, Matthias Andree wrote: > Am 04.06.2010 02:22, schrieb Xin LI: >> Hi, >> >> I fail to see problem on ports build cluster: >> >> http://portsmon.freebsd.org/portoverview.py?category=net&portname=openldap24-client >> >> Is there any special flags at your side? > > I checked, none. > > However I am using Tinderbox on amd64/8.1-PRERELEASE, with a 6.4-FreeBSD > jail - I'm not sure if that is safe WRT threads. > > Please consider the attached log file, which documents that most of the > -lpthread stuff is failing with this: > >> configure:20678: checking for pthread link with -pthread >> configure:20877: cc -o conftest -O2 -fno-strict-aliasing -pipe -I/usr/local/include -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib conftest.c -pthread >&5 >> conftest.c: In function `task': >> conftest.c:108: warning: cast to pointer from integer of different size >> configure:20880: $? = 0 >> configure:20886: ./conftest >> Fatal error 'kse_create() failed >> ' at line 469 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno = 0) >> configure:20889: $? = 1 >> configure: program exited with status 1 > > And finally, from the former log, in libraries/ldap_r, we see that > libtool strips -lc_r from the command line: > >> /bin/sh /usr/local/bin/libtool --mode=link cc -O2 -fno-strict-aliasing -pipe -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -o ltest test.o libldap_r.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lssl -lcrypto -lfetch -lcom_err -lc_r > > Still there > >> libtool: link: cc -O2 -fno-strict-aliasing -pipe -rpath=/usr/lib:/usr/local/lib -o .libs/ltest test.o -L/usr/local/lib ./.libs/libldap_r.so /work/a/ports/net/openldap24-client/work/openldap-2.4.22/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a -lssl -lcrypto -lfetch -lcom_err -Wl,-rpath -Wl,/usr/local/lib >> libtool: link: cc -O2 -fno-strict-aliasing -pipe -rpath=/usr/lib:/usr/local/lib -o .libs/apitest apitest.o -L/usr/local/lib ./.libs/libldap_r.so /work/a/ports/net/openldap24-client/work/openldap-2.4.22/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a -lssl -lcrypto -lfetch -lcom_err -Wl,-rpath -Wl,/usr/local/lib > > Gone, leading to linker failures: > >> ./.libs/libldap_r.so: undefined reference to `pthread_attr_destroy' >> ./.libs/libldap_r.so: undefined reference to `pthread_attr_destroy' >> ./.libs/libldap_r.so: undefined reference to `pthread_create' > > Manually linking in this directory with -lc_r lets the link proceed, but > I'm not sure if the resulting executable would work. I assume it would. > > So might this be an inherited libtool bug? Or is this an issue of > running 6.4 userspace (in the jail) with 8.0 kernel? How do I work > around that? I think that's because kse_* system calls are removed on 8.x (i.e. a libmap has to be set to map lib{pthread,kse}.so.2 to libthr.so.2). Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBCAAGBQJMCTqFAAoJEATO+BI/yjfBQ0cH/Ry3Ci0sI5+kty1Q+kE0dAbU HGgm60RlPcwO+2YnwQDsP6ZhAKSuaj4a1yHFV8S3OIMlMHkJRHm1/sSdGdVGYhfe bpfFY4QoHfzJ2AT4CFF3BOHNfeyiFlZ+MFUvFetwZcIgSMwtthjKt4Kk47k1lhFr 4nseESIc4GCLS9MkQuT4NOYYuie8qR6q5unpMN2It08hoFO7xRA9jzBe6Owco+Sh oikRjZah8TlLPnpad1rfsuAcULOxgtrpqbGD/Y9hcFF1nBMOVk0Y8+qa8SD85Dv/ qWqUQx7cqVHLyEDsl3FQkyLKyNwqAtf7mUEh2cWMsLNVAucaCRP2xJ/jh9f+d+Y= =VXx8 -----END PGP SIGNATURE-----