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
On Tue Nov 25 2008 at 13:48:39 +0200, Mikko Rapeli wrote:
> I ran to this rump_nfs build problem when cross compiling current from last
> Thursday to evbarm with binutils 2.18.50:
>
> # link rump_nfs/rump_nfs
> /home/mira/src/netbsd/netbsd-thumb/obj/tooldir.Linux-2.6.24-etchnhalf.1-686-unknown/bin/arm--netbsdelf-gcc
> -B/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib/
> -B/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib/
> -Wl,-nostdlib -Wl,--wrap=malloc -Wl,--fatal-warnings -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/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib
> -Wl,-rpath-link,/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/lib
> -L/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/lib
> -Wl,-rpath-link,/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib
> -L/home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib
> /home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib/librumpnet.so:
> undefined reference to `__start_link_set_domains'
> /home/mira/src/netbsd/netbsd-thumb/obj/destdir.evbarm/usr/lib/librumpnet.so:
> undefined reference to `__stop_link_set_domains'
> collect2: ld returned 1 exit status
>
> This is fixed by linking with rumpnet_net too, but since I'm not seeing this
> with plain current and its binutils 2.16.1, I'm not sure if it is really
> needed.
>
> diff --git a/usr.sbin/puffs/rump_nfs/Makefile
> b/usr.sbin/puffs/rump_nfs/Makefile
> index dfc4b3f..d516530 100644
> --- a/usr.sbin/puffs/rump_nfs/Makefile
> +++ b/usr.sbin/puffs/rump_nfs/Makefile
> @@ -10,9 +10,9 @@ SRCS+= getnfsargs.c
> # second one runs the real NetBSD kernel networking stack in userspace
> # and uses /dev/tap to access the network.
> #
> -LDADD+= -lrumpfs_nfs -lrumpnet -lrumpnet_sockin
> +LDADD+= -lrumpfs_nfs -lrumpnet -lrumpnet_net -lrumpnet_sockin
> #LDADD+= -lrumpfs_nfs -lrumpnet -lrumpnet_net -lrumpnet_netinet \
> - -lrumpnet_virtif
> +# -lrumpnet_virtif
>
> ISRUMP= # gives me nightmares
> #CPPFLAGS+= -DINET6 # for getnfsargs?
Curious, since as you can easily verify, rumpnet_sockin provides a
networking domain and the "missing" symbols.
Home |
Main Index |
Thread Index |
Old Index