Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130304 - autofs-4.1.3-r4 building fails
Summary: autofs-4.1.3-r4 building fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
: 133884 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-17 15:29 UTC by Nicolas Lalevee
Modified: 2008-02-03 16:25 UTC (History)
6 users (show)

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


Attachments
autofs-4.1.4.ebuild (autofs-4.1.4.ebuild,3.11 KB, text/plain)
2006-05-07 09:19 UTC, Andrej Filipcic
Details
add 'mount.h' to the dependent list of 'listmount.o' target (autofs-4.1.3-lib-Makefile.patch,382 bytes, patch)
2006-06-01 12:10 UTC, Michael Sun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Lalevee 2006-04-17 15:29:31 UTC
I have removed the ldap flag, so I tried to rebuild my packages

i6000 ~ # emerge -DupvN world

These are the packages that I would merge, in order:

Calculating world dependencies
...done!
[ebuild   R   ] net-fs/autofs-4.1.3-r4  -ldap* 0 kB
...

but building autofs fail :

>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-openldap --build=i686-pc-linux-gnu
checking for binaries in... /usr/bin:/bin:/usr/sbin:/sbin
checking for mount... /bin/mount
checking for umount... /bin/umount
checking for fsck.ext2... /sbin/fsck.ext2
checking for fsck.ext3... /sbin/fsck.ext3
checking if mount accepts the -s option... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for yp_match in -lnsl... yes
checking for res_query in -lresolv... yes
checking for hes_resolve in -lhesiod... no
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking rpcsvc/nis.h usability... yes
checking rpcsvc/nis.h presence... yes
checking for rpcsvc/nis.h... yes
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed
checking whether gcc -fPIE works... yes
checking location of the init.d directory... /etc/init.d
configure: creating ./config.status
config.status: creating Makefile.conf
config.status: creating include/config.h
set -e; for i in lib daemon modules man samples; do make -C $i all; done
make[1]: Entering directory `/var/tmp/portage/autofs-4.1.3-r4/work/autofs-4.1.3/lib'
gcc -O2 -march=pentium-m -fomit-frame-pointer -g -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c cache.c
set -e; if [ -d samples ]; then make -C samples all; fi
make[1]: Entering directory `/var/tmp/portage/autofs-4.1.3-r4/work/autofs-4.1.3/samples'
sed -e "s|@@sbindir@@|/usr/sbin|g" \
    -e "s|@@autofslibdir@@|/usr/lib/autofs|g" \
    -e "s|@@initdir@@|/etc/init.d|g" < rc.autofs.in > rc.autofs
/usr/bin/rpcgen -h -o mount.h mount.x
make[1]: Leaving directory `/var/tmp/portage/autofs-4.1.3-r4/work/autofs-4.1.3/samples'
gcc -O2 -march=pentium-m -fomit-frame-pointer -g -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -o listmount.o -c listmount.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -g -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c cat_path.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -g -I../include -fpic -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c rpc_subs.c
listmount.c:22:19: mount.h: No such file or directory
listmount.c:52: error: syntax error before "get_export_list"
listmount.c: In function `get_export_list':
listmount.c:58: error: `exports' undeclared (first use in this function)
listmount.c:58: error: (Each undeclared identifier is reported only once
listmount.c:58: error: for each function it appears in.)
listmount.c:58: error: syntax error before "exportlist"
listmount.c:70: warning: return makes integer from pointer without a cast
listmount.c:82: error: `MOUNTPROG' undeclared (first use in this function)
listmount.c:82: error: `MOUNTVERS' undeclared (first use in this function)
listmount.c:91: warning: return makes integer from pointer without a cast
listmount.c:99: error: `exportlist' undeclared (first use in this function)
listmount.c:100: error: `MOUNTPROC_EXPORT' undeclared (first use in this function)
listmount.c:100: error: `xdr_exports' undeclared (first use in this function)
listmount.c:106: warning: return makes integer from pointer without a cast
listmount.c: At top level:
listmount.c:112: error: syntax error before "item"
listmount.c: In function `exports_free':
listmount.c:114: error: `groups' undeclared (first use in this function)
listmount.c:114: error: syntax error before "grp"
listmount.c:116: error: `item' undeclared (first use in this function)
listmount.c:119: error: `grp' undeclared (first use in this function)
listmount.c:123: error: `tmp' undeclared (first use in this function)
listmount.c: At top level:
listmount.c:131: error: syntax error before "list"
listmount.c: In function `export_list_free':
listmount.c:133: error: `exports' undeclared (first use in this function)
listmount.c:133: error: syntax error before "tmp"
listmount.c:135: error: `list' undeclared (first use in this function)
listmount.c:136: error: `tmp' undeclared (first use in this function)
listmount.c: At top level:
listmount.c:221: error: syntax error before "prune_export_list"
listmount.c:221: error: syntax error before "list"
listmount.c: In function `prune_export_list':
listmount.c:223: error: `exports' undeclared (first use in this function)
listmount.c:223: error: syntax error before "exl"
listmount.c:227: error: `exl' undeclared (first use in this function)
listmount.c:227: error: `list' undeclared (first use in this function)
listmount.c:228: error: `prev' undeclared (first use in this function)
listmount.c:231: error: `spec' undeclared (first use in this function)
listmount.c:236: error: `head' undeclared (first use in this function)
make[1]: *** [listmount.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/autofs-4.1.3-r4/work/autofs-4.1.3/lib'
make: *** [daemon] Error 2

!!! ERROR: net-fs/autofs-4.1.3-r4 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


i6000 ~ # emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://194.117.143.72 http://194.117.143.71 ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://194.117.143.69"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j5"
PKGDIR="/home/save/packages/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/chewi-overlay /usr/local/overlays/java-experimental /usr/local/portage-xgl"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl acpi alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cdparanoia cdr crypt cups curl dba dbus dga directfb doc dri dts dv dvb dvd dvdr dvdread emboss encode esd examples exif expat fam fbcon ffmpeg flac flash foomaticdb fortran fpx freetype ftp gd gdbm gif glut gmp gpm graphviz gstreamer gtk gtk2 hal icq idn ieee1394 imagemagick imlib ipv6 isdnlog java javascript jbig jikes jpeg junit kde kdexdeltas kerberos lcms libcaca libg++ libwww mad maildir matroska mbox mhash mikmod ming mmx mng motif mp3 mpeg musepack mysql nas ncurses network nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl php png portaudio posix ppds pppd python qt quicktime readline samba sasl scanner sdl session source speex spell sse sse2 ssl svg svga sysfs tcltk tcpd tetex theora threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vhosts videos vorbis win32codecs wmf xine xinerama xml xml2 xprint xv xvid xvmc zlib video_cards_ati video_cards_vesa input_devices_keyboard input_devices_mouse linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS
Comment 1 Andrej Filipcic 2006-05-07 09:19:54 UTC
Created attachment 86369 [details]
autofs-4.1.4.ebuild
Comment 2 Andrej Filipcic 2006-05-07 09:20:52 UTC
I have prepared a new ebuild for autofs 4.1.4. I have included all the official patches and checked that the patches from autofs-4.1.3-miscfixes.patch.gz are already included there.

The new ebuild compiles fine and at works with autp.net. I have also changed the sort line in auto.net to be compatible with newer coreutils:
from 
$SHOWMOUNT | LC_ALL=C sort +0 | \
to
$SHOWMOUNT | LC_ALL=C sort -k 1 | \


Would it be possible to prepare an official release based on that?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-05-20 08:54:05 UTC
*** Bug 133884 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Lalevee 2006-05-27 02:42:19 UTC
I have retried an emerge of autofs. The last available version is now autofs-4.1.3-r5.
Now it compiles correctly. I haven't changed my USE, but I have upgraded my profile from 2005.0 to 2006.0 as it was recently set as deprecated. I had also a locale problem, as you can see in my first comment : the LANG should not be "fr_FR.UTF-8" but "fr_FR.utf8".

here is my new emerge --info:
i6000 ~ # emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo          http://gentoo.modulix.net/gentoo/                 http://pandemonium.tiscali.de/pub/gentoo/             http://gentoo.intergenia.de             http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr"
MAKEOPTS="-j5"
PKGDIR="/home/save/packages/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/chewi-overlay /usr/local/overlays/java-experimental /usr/local/portage-xgl"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl acpi alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cdparanoia cdr cli crypt cups curl dba dbus dga directfb doc dri dts dv dvb dvd dvdr dvdread emboss encode esd ethereal examples exif expat fam fbcon ffmpeg flac flash foomaticdb fortran fpx freetype ftp gcj gd gdbm geoip gif glut gmp gpm graphviz gstreamer gtk gtk2 hal icq idn ieee1394 imagemagick imlib ipv6 isdnlog java javascript jbig jikes jpeg junit kde kdexdeltas kerberos lcms libcaca libg++ libwww mad maildir matroska mbox mhash mikmod ming mmx mng motif mp3 mpeg musepack mysql nas ncurses network nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl php png portaudio posix ppds pppd python qt quicktime readline reflection samba sasl scanner sdl session source speex spell spl sse sse2 ssl svg svga sysfs tcltk tcpd tetex theora threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vhosts videos vorbis win32codecs wmf xine xinerama xml xml2 xorg xprint xv xvid xvmc zlib video_cards_ati video_cards_vesa input_devices_keyboard input_devices_mouse linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 5 Michael Sun 2006-06-01 11:36:52 UTC
I tried the net-fs/autofs-4.1.3-r7

I got the same error if the MAKEOPTS="-j5"

if MAKEOPTS="-j1", then it won't fail.
Comment 6 Michael Sun 2006-06-01 12:10:23 UTC
Created attachment 88124 [details, diff]
add 'mount.h' to the dependent list of 'listmount.o' target
Comment 7 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 11:39:53 UTC
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  
Comment 8 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 16:25:56 UTC
This fix (the patch in comment #6) seems to be in autofs-4.1.3-r7 already.  Marking as fixed.  Please reopen if the problem still occurs.