* [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
* Re: [gentoo-embedded] emerge nfs-utils fails
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
0 siblings, 1 reply; 6+ messages in thread
From: Ned Ludd @ 2004-12-04 13:53 UTC (permalink / raw
To: Anders Bruun Olsen; +Cc: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 1839 bytes --]
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 <solar@gentoo.org>
Gentoo (hardened,security,infrastructure,embedded) Developer
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] emerge nfs-utils fails
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
0 siblings, 2 replies; 6+ messages in thread
From: Anders Bruun Olsen @ 2004-12-05 13:27 UTC (permalink / raw
To: Ned Ludd; +Cc: gentoo-embedded
On Sat, Dec 04, 2004 at 08:53:30AM -0500, Ned Ludd wrote:
> 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
Okay, so I am guessing nobody has a uclibc-based nfs-client up and
running then?
> What would be ideal is for somebody to write a reentrant version of
> getrpcbynumber_r() for uClibc itself.
Wish I was adept enough in C to write it myself :-/
Anyway, thanks for your reply.
--
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
* Re: [gentoo-embedded] emerge nfs-utils fails
2004-12-05 13:27 ` Anders Bruun Olsen
@ 2004-12-05 17:53 ` Buttchereit, Axel (XLsigned)
2004-12-05 22:03 ` Mike Frysinger
1 sibling, 0 replies; 6+ messages in thread
From: Buttchereit, Axel (XLsigned) @ 2004-12-05 17:53 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anders Bruun Olsen wrote:
| On Sat, Dec 04, 2004 at 08:53:30AM -0500, Ned Ludd wrote:
|
|>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
|
|
| Okay, so I am guessing nobody has a uclibc-based nfs-client up and
| running then?
"busybox" supports nfs-client (Version 2).
If "portmap" isn't running on your target/client system
(as in my case), the following (nolock) should work:
mount -t nfs -o nfsvers=2,nolock server:/directory /mountpoint
I'm getting a warning message, because the kernel (2.6.9-gentoo-r4)
that I'm using on the client is configured for NFS 3.
If "full" (V3-client/server) nfs support is required,
building "nfsutils" with "uClibc" seems to be necessary...
...but I haven't tried that.
- -Axel
P. S.: Are there any links between "gentoo-installer" and "gentoo-embedded"?
~ I'm working on PXE-Booting/Installing "gentoo-linux"
~ and/or "Win32-systems". Installation/Setup should start after booting into a
~ "gentoo-micro-linux" (2.6.X-Network&Storage + uClibc + busybox + nfs/smb-client
~ + xfsutils/ntfsutils/parted/...). So I'm interested in both projects.
~ At the moment I'm building kernel+modules from gentoo-sources (2.6.9-r4)
~ and "rootfs" from a customized "uClibc-buildroot"-package.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBs0sBWr3rpUlTqH4RAnu3AJ9ds54kyaqlDejDfbxNNkhxnde3zACg2Mfo
rv0vc00STBWCD2WFpxRZGvk=
=J/5t
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] emerge nfs-utils fails
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
1 sibling, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2004-12-05 22:03 UTC (permalink / raw
To: gentoo-embedded
On Sunday 05 December 2004 08:27 am, Anders Bruun Olsen wrote:
> Okay, so I am guessing nobody has a uclibc-based nfs-client up and
> running then?
you only need portmap and nfs support in the kernel to mount nfs partitions
(be a nfs-client)
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] emerge nfs-utils fails
2004-12-05 22:03 ` Mike Frysinger
@ 2004-12-06 20:55 ` Anders Bruun Olsen
0 siblings, 0 replies; 6+ messages in thread
From: Anders Bruun Olsen @ 2004-12-06 20:55 UTC (permalink / raw
To: gentoo-embedded
On Sun, Dec 05, 2004 at 05:03:34PM -0500, Mike Frysinger wrote:
> > Okay, so I am guessing nobody has a uclibc-based nfs-client up and
> > running then?
> you only need portmap and nfs support in the kernel to mount nfs partitions
> (be a nfs-client)
Then the description for nfs-utils is somewhat confusing:
* net-fs/nfs-utils
Latest version available: 1.0.6-r5
Latest version installed: 1.0.5-r1
Size of downloaded files: 259 kB
Homepage: http://nfs.sourceforge.net/
Description: NFS client and server daemons
License: GPL-2
But since I only need nfs-client capabilities, I guess my problems have
been solved (until the next one ;)
Thanks!
--
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