app-arch/zip-2.3-r2 fails with some errors about undeclared identifiers in ttyio.c. Output see in "Actual Results". Perhaps someone can have a look at it. I did not get it fixed. Reproducible: Always Steps to Reproduce: 1.emerge zip 2. 3. Actual Results: [...] ttyio.c: In function `Echoff': ttyio.c:271: error: storage size of `sg' isn't known ttyio.c:275: error: `ECHO' undeclared (first use in this function) ttyio.c:275: error: (Each undeclared identifier is reported only once ttyio.c:275: error: for each function it appears in.) ttyio.c: In function `Echon': ttyio.c:285: error: storage size of `sg' isn't known ttyio.c:289: error: `ECHO' undeclared (first use in this function) make[2]: *** [ttyio.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/zip-2.3-r2/work/zip-2.3' make[1]: *** [generic] Error 2 make[1]: Leaving directory `/var/tmp/portage/zip-2.3-r2/work/zip-2.3' make: *** [generic_gcc] Error 2 !!! ERROR: app-arch/zip-2.3-r2 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) Expected Results: complete emerging Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r1, 2.4. 21-pfeifer-r1_pre4) ================================================================= System uname: 2.4.21-pfeifer-r1_pre4 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -mmmx" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache distcc userpriv usersandbox cvs" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp: //ftp.fhh.opensource-mirror.de/pub/gentoo.org/ ftp://linux.rz.ruhr-uni-bochum. de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp. tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp. snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo. org/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ ftp://gentoo.linux. no/pub/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo ftp://trumpetti.atm.tut. fi/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://gentoo.inode. at/source/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ucsb. edu/pub/mirrors/linux/gentoo/ ftp://gentoo.noved.org/ ftp://planetmirror. com/pub/gentoo/ http://ftp.gentoo.or.kr/ http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 apm avi crypt cups encode gif jpeg libg++ mad mikmod mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa readline tetex svga tcltk java X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis qt kde motif opengl cdr 3dnow bootsplash dga expat fbcon flash imagemagick imap irmc j-noaim j-nojud j-nomsn j-nomuconf j-noyahoo maildir mldonkeypango mmx moznocompose moznoirc moznomail nocd offensive physfs qtmt socks5 sse usb xml xvid -oss -foomaticdb -gnome -nls -gdbm -berkdb -slang -arts -esd -gtk"
wacha think, brandy?
Boris, can you post the full build log? I'm particularly interested in seeing how gcc is being invoked and what macros are being defined.
Created attachment 20638 [details] Full output of "emerge zip" Of course I can. I made an attachment. I hope it helps you solving the problem.
Thanks for that. It looks like quite a few macros are not being defined correctly. Your output includes gcc being invoked with the macros: -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H On my machine the macros are: -DUNIX -DASMV -DASM_CRC -DNO_STRCHR -DNO_STRRCHR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H Unfortunately the zip configure script doesn't save a log that would tell us what's going wrong. At a guess, it's possible that you may need to reinstall glibc. Alternatively you may like to run the configure script which I'll attach and provide me with the generated log as an attachment. To run the script: # cd ~ && tar -xvzf /usr/portage/distfiles/zip23.tar.gz # cd zip-2.3 && cp /path/to/attachment unix/configure # make -f unix/Makefile generic_gcc There will now be a file config.log in ~/zip-2.3 which should give us a little more indication of what's not working for you.
Created attachment 20766 [details] custom configure script to generate a log file
Created attachment 20774 [details] config.log WITH the error Seems to be my fault. I had a quick look into config.log before submitting and as you can see, there were errors with the Permissions of /usr/bin/cpp (German: "Keine Berechtigung") which were 700. I suppose Portage could not use cpp, because it is not running as root. Had a similar Problem some time ago, where the Permissions for /usr/bin/cc were set back to 700. Don't know why he is doing that. I am just wondering why this does not make Problems with other ebuilds.
Created attachment 20775 [details] config.log after fixing the permissions of /usr/bin/cpp I changed Permissions of /usr/bin/cpp back to normal and emerge zip worked fine. Sorry for making "false alert". From my side you can close the bug, because it clearly seems to be a problem on my side ("the problem was sitting in front of the PC"?! ;)
Nice work! It's good to see that all's well now. :) Closing bug.