tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rump_nfs dependencies and binutils 2.18.50



pooka%cs.hut.fi@localhost wrote:

> On Tue Dec 02 2008 at 01:10:21 +0900, Izumi Tsutsui wrote:
> > 
> > Ah, actual problem is librumpnet_sockin.so has
> > __{start,stop}_link_set_domains symbols but
> > librumpnet_sockin.a doesn't. (I'm not sure why)
> > 
> > It occurs even on i386 by "make LDSTATIC=-static"
> > in src/usr.sbin/puffs/rump_nfs/rump_nfs.
> 
> I can't repeat this, i.e. static linking works for me on i386 with
> USETOOLS or not, -O2 or -g.

Hmm. On my NetBSD/i386 5.99.4 updated around 20081201:

---
% uname -mrs
NetBSD 5.99.4 i386
% pwd
/usr/src/usr.sbin/puffs/rump_nfs
% /usr/tools/i386/bin/nbmake-i386 LDSTATIC=-static
#      link  rump_nfs/rump_nfs
/usr/tools/i386/bin/i386--netbsdelf-gcc  -B/usr/lib/ -B/usr/lib/  -Wl,-nostdlib 
  -Wl,--wrap=malloc    -static  -o rump_nfs  getnfsargs.o mount_nfs.o 
rump_nfs.o pathadj.o fattr.o -lrumpfs_nfs -lrumpnet -lrumpnet_sockin 
-lrumpfs_nfs -lp2k -lukfs -lrumpvfs -lrump -lrumpuser -lpuffs -lutil -lpthread  
     -L/usr/lib   -Wl,-rpath-link,/lib  -L/lib -Wl,-rpath-link,/usr/lib  
-L/usr/lib
/usr/lib/librumpnet.a(uipc_domain.o): In function `domaininit':
uipc_domain.c:(.text+0xb26): undefined reference to `__start_link_set_domains'
uipc_domain.c:(.text+0xb2b): undefined reference to `__stop_link_set_domains'
uipc_domain.c:(.text+0xb3f): undefined reference to `__stop_link_set_domains'
uipc_domain.c:(.text+0xb5d): undefined reference to `__stop_link_set_domains'
collect2: ld returned 1 exit status

*** Failed target:  rump_nfs
*** Failed command: /usr/tools/i386/bin/i386--netbsdelf-gcc -B/usr/lib/ 
-B/usr/lib/ -Wl,-nostdlib -Wl,--wrap=malloc -static -o rump_nfs getnfsargs.o 
mount_nfs.o rump_nfs.o pathadj.o fattr.o -lrumpfs_nfs -lrumpnet 
-lrumpnet_sockin -lrumpfs_nfs -lp2k -lukfs -lrumpvfs -lrump -lrumpuser -lpuffs 
-lutil -lpthread -L/usr/lib -Wl,-rpath-link,/lib -L/lib 
-Wl,-rpath-link,/usr/lib -L/usr/lib
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.sbin/puffs/rump_nfs
% make USETOOLS=no LDSTATIC=-static
#      link  rump_nfs/rump_nfs
cc      -Wl,--wrap=malloc    -static  -o rump_nfs  getnfsargs.o mount_nfs.o 
rump_nfs.o pathadj.o fattr.o -lrumpfs_nfs -lrumpnet -lrumpnet_sockin 
-lrumpfs_nfs -lp2k -lukfs -lrumpvfs -lrump -lrumpuser -lpuffs -lutil -lpthread  
        -Wl,-rpath-link,/lib  -L/lib -Wl,-rpath-link,/usr/lib  -L/usr/lib
/usr/lib/librumpnet.a(uipc_domain.o): In function `domaininit':
uipc_domain.c:(.text+0xb26): undefined reference to `__start_link_set_domains'
uipc_domain.c:(.text+0xb2b): undefined reference to `__stop_link_set_domains'
uipc_domain.c:(.text+0xb3f): undefined reference to `__stop_link_set_domains'
uipc_domain.c:(.text+0xb5d): undefined reference to `__stop_link_set_domains'
*** Error code 1

Stop.
make: stopped in /usr/src/usr.sbin/puffs/rump_nfs
%
---

I'll check destdir build with updated sources.
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index