aCOSwt Bodhisattva

Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Tue Dec 22, 2009 12:02 pm Post subject: [Solved] net-dialup/ppp unresolved references |
|
|
Hello,
At §9.e of gentoo's installation handbook for x86_64 arch, I face some impossibility to successfully emerge ppp because of what I think are unresolved references in the final link :
Code: |
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -D_GNU_SOURCE -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DUSE_PAM -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DINET6=1 -DCBCP_SUPPORT -DMAXOCTETS -Wl,-O1 -Wl,-E -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o md5.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o tty.o eap.o chap-md5.o mplscp.o md4.o chap_ms.o sha1.o pppcrypt.o multilink.o tdb.o spinlock.o ipv6cp.o eui64.o cbcp.o -lcrypt -lpam -ldl -ldl
options.o: In function `loadplugin':
options.c:(.text+0x8ed): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/UsrOpt/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/../../../lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libdl.a(dlopen.o): In function `dlopen':
(.text+0x5): undefined reference to `__dlopen'
/UsrOpt/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/../../../lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libdl.a(dlclose.o): In function `dlclose':
(.text+0x1): undefined reference to `__dlclose'
/UsrOpt/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/../../../lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libdl.a(dlsym.o): In function `dlsym':
(.text+0x5): undefined reference to `__dlsym'
/UsrOpt/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/../../../lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libdl.a(dlerror.o): In function `dlerror':
(.text+0x1): undefined reference to `__dlerror'
collect2: ld returned 1 exit status
make[1]: *** [pppd] Error 1
make[1]: Leaving directory `/Xtmp/var/tmp/portage/net-dialup/ppp-2.4.4-r24/work/ppp-2.4.4/pppd'
make: *** [all] Error 2
|
What can I have done wrong ?
EDIT 1 : Could it be related to https://bugs.gentoo.org/show_bug.cgi?id=112413 and to the fact my /usr is symlinked to /UsrOpt/usr ?
EDIT 2 : YESSS ! That was it ! Replaced symlinks with binds and
BTW : What's the obscure reason behind that way of reaching relatively /lib/xyz from /usr/tuv ?  |
|