Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33038 - app-arch/zip-2.3-r2 fails to compile because of undeclared identifiers
Summary: app-arch/zip-2.3-r2 fails to compile because of undeclared identifiers
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Brandy Westcott (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-08 14:28 UTC by Boris
Modified: 2003-11-15 20:58 UTC (History)
0 users

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


Attachments
Full output of "emerge zip" (emerge_zip_log.txt.txt,6.25 KB, text/plain)
2003-11-12 03:57 UTC, Boris
Details
custom configure script to generate a log file (configure,8.36 KB, text/plain)
2003-11-14 19:54 UTC, Brandy Westcott (RETIRED)
Details
config.log WITH the error (config.log.old,1.57 KB, application/octet-stream)
2003-11-15 00:45 UTC, Boris
Details
config.log after fixing the permissions of /usr/bin/cpp (config.log,906 bytes, application/octet-stream)
2003-11-15 00:49 UTC, Boris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris 2003-11-08 14:28:46 UTC
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"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-11 10:02:13 UTC
wacha think, brandy?
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-11-11 17:32:18 UTC
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.
Comment 3 Boris 2003-11-12 03:57:18 UTC
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.
Comment 4 Brandy Westcott (RETIRED) gentoo-dev 2003-11-14 19:53:07 UTC
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.
Comment 5 Brandy Westcott (RETIRED) gentoo-dev 2003-11-14 19:54:20 UTC
Created attachment 20766 [details]
custom configure script to generate a log file
Comment 6 Boris 2003-11-15 00:45:19 UTC
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.
Comment 7 Boris 2003-11-15 00:49:14 UTC
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"?! ;)
Comment 8 Brandy Westcott (RETIRED) gentoo-dev 2003-11-15 20:58:35 UTC
Nice work! It's good to see that all's well now. :)

Closing bug.