Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: Anders Bruun Olsen <anders@×××××××××××.net>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] emerge nfs-utils fails
Date: Sat, 04 Dec 2004 13:54:00
Message-Id: 1102168410.17023.20421.camel@simple
In Reply to: [gentoo-embedded] emerge nfs-utils fails by Anders Bruun Olsen
1 On Sat, 2004-12-04 at 07:48, Anders Bruun Olsen wrote:
2 > Hi,
3 >
4 > I have installed a stage3-x86-uclibc in a chroot env. in order to make a
5 > firewall on a nice epia-based machine with only a CF card as storage.
6 > What I want to do is share /usr/portage and /usr/portage/distfiles on my
7 > main machine and mount it on my firewall. I already have this working
8 > with two other machines mounting from my workstation.
9 > When I try to compile nfs-utils-1.0.6-r4 in my uclibc environment it fails with
10 > this error:
11 >
12 > gcc -L../../support/lib -o mountd mountd.o mount_dispatch.o auth.o
13 > rmtab.o cache.o svc_run.o -lexport -lnfs -lmisc -lwrap -lnsl
14 > ../../support/lib/libnfs.a(svc_socket.o)(.text+0xb6): In function
15 > `svc_socket':
16 > : undefined reference to `getrpcbynumber_r'
17 >
18 > I have looked in the source and can see that it includes netdb.h. In
19 > /usr/include/netdb.h it includes rpc/netdb.h if __USE_MISC is defined.
20 > getrpcbynumber_r is defined in rpc/netdb.h.
21 > My first though was that __USE_MISC wasn't defined, so I tried compiling
22 > with CFLAGS="-D__USE_MISC", but that didn't help.
23 > I have also tried altering the netdb.h and rpc/netdb.h to define
24 > getrpcbynumber_r no matter if __USE_MISC is set or not, but that didn't
25 > work either.
26
27 This is what we know on the subject.
28 http://www.uclibc.org/lists/uclibc/2003-December/007782.html
29
30 The solution proposed here might work, it's probably just a bad idea.
31 http://www.uclibc.org/lists/uclibc/2004-February/008360.html
32
33 What would be ideal is for somebody to write a reentrant version of
34 getrpcbynumber_r() for uClibc itself.
35
36 > This is now beyond my (virtually unexisting) C-skills.
37 > Can anybody help?
38 >
39 > I am using uclibc-0.9.26-r7.
40 --
41 Ned Ludd <solar@g.o>
42 Gentoo (hardened,security,infrastructure,embedded) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-embedded] emerge nfs-utils fails Anders Bruun Olsen <anders@×××××××××××.net>