From owner-freebsd-questions@FreeBSD.ORG Tue Jan 10 22:52:28 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFF90106564A for ; Tue, 10 Jan 2012 22:52:28 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id C05408FC0A for ; Tue, 10 Jan 2012 22:52:28 +0000 (UTC) X-ASG-Debug-ID: 1326235947-586e010b0002-jLrpzn Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id 4jzAxQygUgwHEZoQ for ; Tue, 10 Jan 2012 14:52:28 -0800 (PST) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523]) by SJ-EXCH-1.adaranet.com ([fe80::7042:d8c2:5973:c523%14]) with mapi; Tue, 10 Jan 2012 14:32:12 -0800 From: Patrick Mahan X-Barracuda-BBL-IP: fe80::7042:d8c2:5973:c523 X-Barracuda-RBL-IP: fe80::7042:d8c2:5973:c523 To: Patrick Mahan , "freebsd-questions@freebsd.org" Date: Tue, 10 Jan 2012 14:32:09 -0800 X-ASG-Orig-Subj: RE: Problems building world with 9.0 RC3 [SOLVED] Thread-Topic: Problems building world with 9.0 RC3 [SOLVED] Thread-Index: AQHMzy6tAMi3gG2hH0WmPQRGGitHhpYGL13A Message-ID: <32AB5C9615CC494997D9ABB1DB12783C02D67D3A72@SJ-EXCH-1.adaranet.com> References: <32AB5C9615CC494997D9ABB1DB12783C02D6525716@SJ-EXCH-1.adaranet.com> In-Reply-To: <32AB5C9615CC494997D9ABB1DB12783C02D6525716@SJ-EXCH-1.adaranet.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1326235948 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: Subject: RE: Problems building world with 9.0 RC3 [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 22:52:29 -0000 >-----Original Message----- >From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- >questions@freebsd.org] On Behalf Of Patrick Mahan >Sent: Monday, January 09, 2012 4:28 PM >To: freebsd-questions@freebsd.org >Subject: Problems building world with 9.0 RC3 > >All, > >I am having an issue with getting buildworld to work for me. It is failin= g >while building zfs - > >cc -DADARA_OS - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/contr= ib >/opensolaris/lib/libzpool/common - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/compa= t/ >opensolaris/include - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/compa= t/ >opensolaris/lib/libumem - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../sys/cddl/c= om >pat/opensolaris - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/contr= ib >/opensolaris/head - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/contr= ib >/opensolaris/lib/libuutil/common - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/contr= ib >/opensolaris/lib/libzfs/common - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/contr= ib >/opensolaris/lib/libumem/common - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../cddl/contr= ib >/opensolaris/lib/libnvpair - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../sys/cddl/c= on >trib/opensolaris/uts/common - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../sys/cddl/c= on >trib/opensolaris/uts/common/fs/zfs - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../sys/cddl/c= on >trib/opensolaris/uts/common/sys - >I/data/pmahan/devel/pm_ipr9.0/ipr9.0/src/cddl/sbin/zfs/../../../sys/cddl/c= on >trib/opensolaris/common/zfs -DNEED_SOLARIS_BOOLEAN -std=3Dgnu89 -fstack- >protector -Wno-pointer-sign -Wno-unknown-pragmas -o zfs zfs_main.o >zfs_iter.o -lbsdxml -lgeom -lm -lnvpair -lsbuf -lumem -lutil -luutil -lzfs >/lib/libthr.so.3: undefined reference to `__pselect@FBSDprivate_1.0' >/data/pmahan/devel/pm_ipr9.0/ipr9.0/amd64/obj/data/pmahan/devel/pm_ipr9.0/= ip >r9.0/src/tmp/usr/lib/libzfs.so: undefined reference to `openat@FBSD_1.2' > >Now, when I take a look at libpthr.so.3 I for '__pselect' I find - > >pmahan@libthr 90 > readelf --symbols libthr.so.3 | grep "__pselect" > 455: 000000000000c000 120 FUNC GLOBAL DEFAULT 11 >___pselect@@FBSDprivate_1.0 > 624: 000000000000c000 120 FUNC GLOBAL DEFAULT 11 ___pselect > >So I see the symbol there but with a double "@" not a single. I don't see >any errors generated >when libthr.so.3 is being built so I'm a bit of a loss to understand this. >I saw in my googling that >the wacky symbol naming was introduced sometime in 8.x, but I I couldn't >find anything explaining >the symbol generation. > >So I am looking for pointers on how to track this one down. Is this a >compiler issue? > I figured this out today, thanks to a colleague who was building just fine. It turns out that I had LD_LIBRARY_PATH set in my environment (no particula= r reason, just left over environmental stuff from years of abuse). It pointed to '/lib:/usr/lib:/usr/local/lib' So I'm guessing the it was picking up a library "outside" of the buildworld sandbox. Looking at the failed command I notice that there are no "-L" directives. Wouldn't this have over-ridden my LD_LIBRARY_PATH? In any cas= e I have removed that from my shell environment and everything is now buildin= g. Thanks, Patrick ---------------------------------------------------- Patrick Mahan Lead Technical Kernel Engineer Adara Networks Disclaimer: The opinions expressed here are solely the responsibility of th= e author and are not to be construed as an official opinion of Adara Networks.