J.R. Oldroyd
2010-Dec-03 21:41 UTC
/usr/src fails to compile on 7.x after csup to RELENG_8
[Slightly modified subject from the original posting back in June.] William D. Colburn (Schlake) <schlake@gmail.com> wrote:> > I can make the kernel just fine, but if I try to make the world I get this: > > cc -O2 -pipe -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/compat opensolaris > -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/include > -I/usr/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem > -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common > -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common > -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair > -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs > -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys > -I/usr/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common > -I/usr/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head > -I/usr/src/cddl/usr.bin/zinject/../../lib/libumem > -DNEED_SOLARIS_BOOLEAN -std=gnu89 -fstack-protector > -Wno-unknown-pragmas -o zinject zinject.o translate.o -lavl -lgeom > -lm -lnvpair -lumem -luutil -lzfs -lzpool > /lib/libthr.so.3: undefined reference to `__pselect at FBSDprivate_1.0' > *** Error code 1 > > I searched, but I couldn't find anything on this problem. >I just ran into this problem, too. It turns out that it was due to LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib being set which is causing the loader to pick up the wrong library. Clearing the problem and resuming the build ends up being simple: # unset LD_LIBRARY_PATH # make -DNO_CLEAN buildworld (Csh users will need unsetenv). -jr