Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 79010

Summary: app-emulation/mol-0.9.71_pre1 fails compiling x11.o
Product: Gentoo Linux Reporter: Fernando Usero <fusero>
Component: Current packagesAssignee: PPC Porters <ppc>
Status: VERIFIED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fernando Usero 2005-01-21 15:14:52 UTC
When trying to emerge mol, i have this zlib related problem:

------------------------------
+ Entering disk
    Compiling    blkdev.o
    Compiling    disk_open.o
    Compiling    ablk.o
    Compiling    pseudofs.o
    Compiling    scsi.o
    Compiling    sg-scsi.o
    Compiling    cd-scsi.o
    Compiling    ablk-cd.o
    Linking      libdisk.a
+ Entering video
    Compiling    x11.o
In file included from /usr/include/png.h:359,
                 from x11.c:20:
/usr/include/zlib.h:187: error: syntax error before "const"
/usr/include/zlib.h:187: error: syntax error before "zlibVersion"
/usr/include/zlib.h:217: error: syntax error before "int"
/usr/include/zlib.h:299: error: syntax error before "int"
/usr/include/zlib.h:334: error: syntax error before "int"
/usr/include/zlib.h:433: error: syntax error before "int"
/usr/include/zlib.h:507: error: syntax error before "int"
/usr/include/zlib.h:544: error: syntax error before "int"
/usr/include/zlib.h:562: error: syntax error before "int"
/usr/include/zlib.h:573: error: syntax error before "int"
/usr/include/zlib.h:594: error: syntax error before "uLong"
/usr/include/zlib.h:603: error: syntax error before "int"
/usr/include/zlib.h:662: error: syntax error before "int"
/usr/include/zlib.h:681: error: syntax error before "int"
/usr/include/zlib.h:696: error: syntax error before "int"
/usr/include/zlib.h:712: error: syntax error before "int"
/usr/include/zlib.h:747: error: syntax error before "int"
/usr/include/zlib.h:816: error: syntax error before "int"
/usr/include/zlib.h:824: error: syntax error before "uLong"
/usr/include/zlib.h:876: error: syntax error before "int"
/usr/include/zlib.h:891: error: syntax error before "int"
/usr/include/zlib.h:907: error: syntax error before "uLong"
/usr/include/zlib.h:914: error: syntax error before "int"
/usr/include/zlib.h:935: error: syntax error before "gzFile"
/usr/include/zlib.h:952: error: syntax error before "gzFile"
/usr/include/zlib.h:965: error: syntax error before "int"
/usr/include/zlib.h:973: error: syntax error before "int"
/usr/include/zlib.h:981: error: syntax error before "int"
/usr/include/zlib.h:981: error: syntax error before "voidpc"
/usr/include/zlib.h:989: error: syntax error before "int"
/usr/include/zlib.h:1002: error: syntax error before "int"
/usr/include/zlib.h:1009: error: syntax error before "char"
/usr/include/zlib.h:1009: error: syntax error before "gzgets"
/usr/include/zlib.h:1018: error: syntax error before "int"
/usr/include/zlib.h:1024: error: syntax error before "int"
/usr/include/zlib.h:1030: error: syntax error before "int"
/usr/include/zlib.h:1040: error: syntax error before "int"
/usr/include/zlib.h:1050: error: syntax error before "off_t"
/usr/include/zlib.h:1068: error: syntax error before "int"
/usr/include/zlib.h:1075: error: syntax error before "off_t"
/usr/include/zlib.h:1084: error: syntax error before "int"
/usr/include/zlib.h:1090: error: syntax error before "int"
/usr/include/zlib.h:1097: error: syntax error before "const"
/usr/include/zlib.h:1097: error: syntax error before "gzerror"
/usr/include/zlib.h:1106: error: syntax error before "void"
/usr/include/zlib.h:1121: error: syntax error before "uLong"
/usr/include/zlib.h:1138: error: syntax error before "uLong"
/usr/include/zlib.h:1160: error: syntax error before "int"
/usr/include/zlib.h:1162: error: syntax error before "int"
/usr/include/zlib.h:1164: error: syntax error before "int"
/usr/include/zlib.h:1168: error: syntax error before "int"
/usr/include/zlib.h:1170: error: syntax error before "int"
/usr/include/zlib.h:1192: error: syntax error before "const"
/usr/include/zlib.h:1192: error: syntax error before "zError"
/usr/include/zlib.h:1193: error: syntax error before "int"
/usr/include/zlib.h:1194: error: syntax error before "const"
/usr/include/zlib.h:1194: error: syntax error before "get_crc_table"
make[3]: *** [../../../obj-ppc/build/src/drivers/video/x11.o] Error 1
make[2]: *** [sub-video-all] Error 2
make[1]: *** [sub-drivers-all] Error 2
make: *** [sub-src-all] Error 2

!!! ERROR: app-emulation/mol-0.9.71_pre1 failed.
!!! Function src_compile, Line 75, Exitcode 2
!!! Build mol with: FEATURES="-userpriv -usersandbox" emerge mol
!!! If you need support, post the topmost build error, NOT this status message.
-------------------------


If I remove that file (/usr/include/zlib.h) from my filesystem, mol compiles with success. For me, it is quite a weird thing. The file belongs to sys-libs/zlib.

Any solution for compiling mol without this problem?

The output of "emerge info" is:

Portage 2.0.51-r14 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 7455, altivec supported
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Dec  9 2004, 02:10:08)]
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.6.3, 1.5, 1.4_p6, 1.9.4, 1.7.9, 1.8.5-r2
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/tomcat /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.inode.at/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acl autofs berkdb bonobo cdr crypt dedicated dga directfb dnd doc dv dvb dvd dvdr eds emacs encode esd evo f77 fax fbcon ffmpeg foreign-package fortran freetds ftp gb gd gdbm gif gnome gnome-libs gnomedb gpg gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb java javascript jikes jpeg junit kde kerberos krb4 ladcca lcms ldap libwww maildir motif mozilla mpeg msn mysql nls offensive oggvorbis opengl pam pcmcia pdflib perl png postgres ppc python qt quicktime readline samba sdl slang spell ssl tcltk tcpd tetex tiff truetype wxwindows xml xml2 xv xvid video_cards_radeon"
Unset:  LDFLAGS
Comment 1 Luca Barbato gentoo-dev 2005-01-21 17:51:16 UTC
xorg version installed?
Comment 2 Fernando Usero 2005-01-22 08:01:23 UTC
Hi Luca, here is the requested info:

# etcat versions xorg-x11
[ Results for search key           : xorg-x11 ]
[ Candidate applications found : 5 ]

 Only printing found installed programs.

*  x11-base/xorg-x11 :
        [   ] 6.7.0-r3 (0)
        [ ~ ] 6.8.0-r3 (0)
        [M  ] 6.8.0-r4 (0)
        [ ~ ] 6.8.1.901-r1 (0)
        [  I] 6.8.1.902 (0)


Comment 3 Lars Weiler (RETIRED) gentoo-dev 2005-01-22 13:13:32 UTC
Quite interesting.  I have the same X.Org-version installed and can compile mol with either version of zlib in portage.

In comparision to mol-0.9.70.ebuild I took out --disable-png from ./configure.  Can you just add it in the ebuild itself and try to compile?
Comment 4 Fernando Usero 2005-01-22 17:25:51 UTC
Hi Lars, I added --disable-png to the ebuild:

    ./configure --prefix="/usr" --disable-png || die "configure failed"

and it compiled and merged! (and zlib.h is in /usr/include)

Is there any possibility to compile with png support?
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2005-01-27 15:29:45 UTC
Which version of zlib do you have installed?
Comment 6 Fernando Usero 2005-02-01 04:19:25 UTC
etcat versions zlib
[ Results for search key           : zlib ]
[ Candidate applications found : 2 ]

 Only printing found installed programs.

*  sys-libs/zlib :
        [   ] 1.2.1-r3 (0)
        [  I] 1.2.2 (0)
Comment 7 Joe Jezak (RETIRED) gentoo-dev 2005-02-19 00:39:39 UTC
Ah, I've just noticed that you're using GCC 3.3.3, you should upgrade to the latest stable GCC and try again, GCC 3.3.3 is known to have issues on ppc.  Please close the bug if using GCC 3.4 fixes the problem.
Comment 8 Joe Jezak (RETIRED) gentoo-dev 2005-03-23 20:45:23 UTC
Can't replicate this here, closing with NEEDINFO, if you're still having problems, please reopen the bug.
Comment 9 Lars Weiler (RETIRED) gentoo-dev 2005-04-02 07:20:21 UTC
Just closing, as no further info has been given.