public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] emerge nfs-utils fails
@ 2004-12-04 12:48 Anders Bruun Olsen
  2004-12-04 13:53 ` Ned Ludd
  0 siblings, 1 reply; 6+ messages in thread
From: Anders Bruun Olsen @ 2004-12-04 12:48 UTC (permalink / raw
  To: gentoo-embedded

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 now beyond my (virtually unexisting) C-skills.
Can anybody help?

I am using uclibc-0.9.26-r7.

-- 
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41

--
gentoo-embedded@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-06 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-04 12:48 [gentoo-embedded] emerge nfs-utils fails Anders Bruun Olsen
2004-12-04 13:53 ` Ned Ludd
2004-12-05 13:27   ` Anders Bruun Olsen
2004-12-05 17:53     ` Buttchereit, Axel (XLsigned)
2004-12-05 22:03     ` Mike Frysinger
2004-12-06 20:55       ` Anders Bruun Olsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox