public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ned Ludd <solar@gentoo.org>
To: Anders Bruun Olsen <anders@bruun-olsen.net>
Cc: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] emerge nfs-utils fails
Date: Sat, 04 Dec 2004 08:53:30 -0500	[thread overview]
Message-ID: <1102168410.17023.20421.camel@simple> (raw)
In-Reply-To: <20041204124850.GM26064@elmer.skumleren.net>

[-- 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 --]

  reply	other threads:[~2004-12-04 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-04 12:48 [gentoo-embedded] emerge nfs-utils fails Anders Bruun Olsen
2004-12-04 13:53 ` Ned Ludd [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1102168410.17023.20421.camel@simple \
    --to=solar@gentoo.org \
    --cc=anders@bruun-olsen.net \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox