On Sat, 2004-12-04 at 07:48, Anders Bruun Olsen wrote: > Hi, > > I have installed a stage3-x86-uclibc in a chroot env. in order to make a > firewall on a nice epia-based machine with only a CF card as storage. > What I want to do is share /usr/portage and /usr/portage/distfiles on my > main machine and mount it on my firewall. I already have this working > with two other machines mounting from my workstation. > When I try to compile nfs-utils-1.0.6-r4 in my uclibc environment it fails with > this error: > > gcc -L../../support/lib -o mountd mountd.o mount_dispatch.o auth.o > rmtab.o cache.o svc_run.o -lexport -lnfs -lmisc -lwrap -lnsl > ../../support/lib/libnfs.a(svc_socket.o)(.text+0xb6): In function > `svc_socket': > : undefined reference to `getrpcbynumber_r' > > I have looked in the source and can see that it includes netdb.h. In > /usr/include/netdb.h it includes rpc/netdb.h if __USE_MISC is defined. > getrpcbynumber_r is defined in rpc/netdb.h. > My first though was that __USE_MISC wasn't defined, so I tried compiling > with CFLAGS="-D__USE_MISC", but that didn't help. > I have also tried altering the netdb.h and rpc/netdb.h to define > getrpcbynumber_r no matter if __USE_MISC is set or not, but that didn't > work either. This is what we know on the subject. http://www.uclibc.org/lists/uclibc/2003-December/007782.html The solution proposed here might work, it's probably just a bad idea. http://www.uclibc.org/lists/uclibc/2004-February/008360.html What would be ideal is for somebody to write a reentrant version of getrpcbynumber_r() for uClibc itself. > This is now beyond my (virtually unexisting) C-skills. > Can anybody help? > > I am using uclibc-0.9.26-r7. -- Ned Ludd Gentoo (hardened,security,infrastructure,embedded) Developer