Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157968 - net-fs/autofs-4.1.3-r7 fails to build on uclibc due to nfs/nfs.h missing
Summary: net-fs/autofs-4.1.3-r7 fails to build on uclibc due to nfs/nfs.h missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-12 14:21 UTC by Deadpan110
Modified: 2008-04-28 13:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deadpan110 2006-12-12 14:21:02 UTC
[snip]
/usr/bin/rpcgen -c -o mount_xdr.c mount.x
gcc -Os -pipe -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c
strip --strip-debug mount_xdr.o
gcc -Os -pipe -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -o listmount.o -c listmount.c
strip --strip-debug listmount.o
gcc -Os -pipe -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c cat_path.c
gcc -Os -pipe -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c rpc_subs.c
rpc_subs.c:18:21: error: nfs/nfs.h: No such file or directory
rpc_subs.c: In function 'rpc_ping_proto':
rpc_subs.c:252: error: 'NFS_PROGRAM' undeclared (first use in this function)
rpc_subs.c:252: error: (Each undeclared identifier is reported only once
rpc_subs.c:252: error: for each function it appears in.)
make[1]: *** [rpc_subs.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/autofs-4.1.3-r7/work/autofs-4.1.3/lib'
make: *** [daemon] Error 2

!!! ERROR: net-fs/autofs-4.1.3-r7 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  autofs-4.1.3-r7.ebuild, line 53:   Called die
[snip]

emerge --info
Portage 2.1.1-r2 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r1, 2.6.17-om i686)
=================================================================
System uname: 2.6.17-om i686 unknown
Gentoo Base System version 1.12.6
Last Sync: Sat, 09 Dec 2006 13:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/mnt/auto/work/gentoo/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/mnt/auto/work/gentoo/binaries/i386-gentoo-linux-uclibc"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/auto/work/gentoo/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="elibc_uclibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux minimal ncurses nonfsv4 savedconfig uclibc userland_GNU video_cards_dummy video_cards_fbdev video_cards_v4l x86"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

NOTE: USE="nonfsv4" as this chroot is used to compile uclibc packages.

I have tried every unmasked version back to net-fs/autofs-3.1.7-r5 which compiles sucessfully but I have not yet tested the resulting build.

Also, I have used net-fs/nfs-utils-1.0.7-r2 as this appears to fix problems related to uClibc and rpcgen that glibc would usually provide. USE="nonfsv4" was used for the nfs-utils ebuild as nfsv4 does not meet my requirements with users and groups without kerberos (not sure if this information is necessary, but i included it to give a better picture of the problem)

I hope this info helps and as usual, any further information can be supplied upon request.

Many thanks
Comment 1 SpanKY gentoo-dev 2006-12-12 19:17:07 UTC
uClibc does not provide nfs/nfs.h ... glibc provides it only as a lame header to include linux/nfs.h

the package should check to see if nfs/nfs.h exists and if not, fall back to linux/nfs.h
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 11:40:02 UTC
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-04 09:07:12 UTC
fixing in next revision
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2008-04-28 13:33:29 UTC
Should be fixed in net-fs/autofs-5.0.3-r3.