gcc -c -march=i586 -O3 -pipe -ansi -pedantic -I. - I../../../../exports/include/X11 -I../../../../include/fonts - I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi - I../../include -I../../os -I../../../../.. -Wall -I../../../.. - I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L - D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE - DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV - DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK - DDDXOSFATALERROR -DDDXTIME -DPART_NET hextile.c rm -f zrle.o c++ -c -march=1 -O3 -pipe -Wall -I. -I../../../../exports/include/X11 - I../../../../include/fonts -I../../../../exports/include/X11 -I../../cfb - I../../mfb -I../../mi -I../../include -I../../os -I../../../../.. - Wall -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ - D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE - D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT - DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK - DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc cc1plus: bad value (1) for -march= switch make[5]: *** [zrle.o] Error 1 make[5]: Target `all' not remade because of errors. make[5]: Target `all' not remade because of errors. make[5]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5- unixsrc/Xvnc/programs/Xserver/hw/vnc' make[4]: *** [hw/vnc] Error 2 make[4]: *** No rule to make target `hw/vnc/libvnc.a', needed by `Xvnc'. make[4]: Target `all' not remade because of errors. make[4]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5- unixsrc/Xvnc/programs/Xserver' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5- unixsrc/Xvnc/programs' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5- unixsrc/Xvnc' make[1]: *** [World] Error 2 make[1]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5- unixsrc/Xvnc' make: *** [World] Error 2 !!! ERROR: net-misc/vnc-3.3.5 failed. !!! Function src_compile, Line 24, Exitcode 2 !!! (no error message) gentoo usr # gentoo usr # emerge info Portage 2.0.44 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r9 i586 Pentium MMX USE="x86 oss 3dnow apm avi crypt cups encode jpeg kde libg++ mikmod mmx mpeg ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv aalib arts berkdb bonobo cdr directfb esd gdbm gif gnome gnome-libs gpm gtk gtkhtml guile imlib java ldap libwww motif mozilla mysql nls oggvorbis opengl pam perl png python qt readline sdl slang snmp ssl svga tcltk tcpd tiff X" ARCH="x86" COMPILER="" CHOST="i586-pc-linux-gnu" CFLAGS="-march=i586 -O3 -pipe" CXXFLAGS="-march=i586 -O3 -pipe" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="" JAVA_HOME="/opt/ibm-jre-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" gentoo usr #
almost the same, except mine is -mcpu=1 whereas Martins is -march=1 - definately a misread of CFLAGS/CXXFLAGS in there - we both have gcc-2.95.3 so perhaps that is the common factor if the testers were all 1.4 profile / gcc-3.2 folk? C. -- gcc -c -mcpu=i686 -O3 -pipe -ansi -pedantic -I. -I../../../../exports/include/X11 -I../../../../include/fonts -I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../../.. -Wall -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET hextile.c rm -f zrle.o c++ -c -mcpu=1 -O3 -pipe -Wall -I. -I../../../../exports/include/X11 -I../../../../include/fonts -I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../../.. -Wall -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc cc1plus: bad value (1) for -mcpu= switch make[5]: *** [zrle.o] Error 1 make[5]: Target `all' not remade because of errors. make[5]: Target `all' not remade because of errors. make[5]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc/programs/Xserver/hw/vnc' make[4]: *** [hw/vnc] Error 2 make[4]: *** No rule to make target `hw/vnc/libvnc.a', needed by `Xvnc'. make[4]: Target `all' not remade because of errors. make[4]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc/programs/Xserver' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc/programs' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc' make[1]: *** [World] Error 2 make[1]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc' make: *** [World] Error 2 !!! ERROR: net-misc/vnc-3.3.5 failed. !!! Function src_compile, Line 24, Exitcode 2 !!! (no error message) tremor root # emerge info Portage 2.0.44 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r9 i686 Celeron (Mendocino) USE="x86 oss avi crypt cups encode jpeg libg++ libwww mikmod mmx mpeg ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv arts berkdb gdbm gif gnome-libs gpm gtk guile imlib java kde motif nas nls oggvorbis opengl pam png python qt readline scanner sdl slang ssl svga tcpd X -3dnow aalib alsa -apm bonobo cdr dvd esd evo gb gd ggi gnome gtkhtml imap lcms libgda maildir mozilla pda perl tcltk tiff zlib" ARCH="x86" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O3 -pipe" CXXFLAGS="-mcpu=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j3" JDK_HOME="/opt/sun-jdk-1.4.1.01" JAVA_HOME="/opt/sun-jdk-1.4.1.01" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://ftp.citylink.co.nz/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
The error happens in the vncviewer directory. The Makefile.in in that directory has nothing that would cause this problem. The problem seems to occur when changing from compiling the c code to compiling the 2 c++ files in that directory. It doesn't appear to happen on gcc3 systems. I will test this on a gcc2 system asap. My first guess is that something screws up during configure on gcc2 system and cxxflags don't get set correctly?
as you can see, configure shows it right gentoo usr # emerge -u vnc Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/vnc-3.3.5 to / >>> md5 ;-) vnc-3.3.5-unixsrc.tar.gz >>> Unpacking source... >>> Unpacking vnc-3.3.5-unixsrc.tar.gz >>> Source unpacked. creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc -march=i586 -O3 -pipe ) works... yes checking whether the C compiler (gcc -march=i586 -O3 -pipe ) is a cross- compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... (cached) no checking for c++... c++ checking whether the C++ compiler (c++ -march=i586 -O3 -pipe ) works... yes checking whether the C++ compiler (c++ -march=i586 -O3 -pipe ) is a cross- compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... (cached) no checking for ranlib... ranlib checking whether make sets ${MAKE}... yes checking how to run the C++ preprocessor... c++ -E checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes configuring zlib... Checking for gcc... Building static library libz.a version 1.1.4 with gcc. Checking for unistd.h... Yes. Checking for errno.h... Yes. Checking for mmap support... Yes. ...done configuring zlib checking for socklen_t... yes updating cache ./config.cache creating ./config.status creating Makefile creating rdr/Makefile creating rfb/Makefile creating vncconnect/Makefile creating vncpasswd/Makefile creating vncviewer/Makefile creating Xvnc/config/cf/vnclibs.def
if you're willing to go a bit deeper... Let configure finish up... when it starts compiling... hit ctrl+c... check out the Makefile in /var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5/vncviewer See what the CXXFLAGS are set to in that file...
from /var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/vncviewer/Makefile : CC = gcc CFLAGS = -march=i586 -O3 -pipe -Wall $(DIR_CFLAGS) CCLD = $(CC) CXX = c++ CXXFLAGS = -march=i586 -O3 -pipe -Wall CXXLD = $(CXX) CPPFLAGS = DEFS = ALL_CPPFLAGS = $(CPPFLAGS) $(DEFS) $(DIR_CPPFLAGS) LIBS = LDFLAGS = RANLIB = ranlib AR = ar cq
think i got the problem change the emake to make || die in .ebuild file now it works
Changed from emake to make.
sorry, i was wrong when i manually run make in the work dir, it compiles successfuly
make works too in ebuild src_compile() { econf || die "./configure failed" -> this works emake || die cd Xvnc if use tcpd then -> this fails make \ EXTRA_LIBRARIES="-lwrap -lnss_nis" \ CDEBUGFLAGS="${CFLAGS}" \ World || die else make \ CDEBUGFLAGS="${CFLAGS}" \ World || die fi }
no i've the problem located. diff to the .ebuild this works for me -r1 should be done, do you do it ? :) *** vnc-3.3.5.ebuild.org Wed Nov 27 09:49:37 2002 --- vnc-3.3.5.ebuild Wed Nov 27 09:48:49 2002 *************** *** 32,41 **** --- 32,43 ---- make \ EXTRA_LIBRARIES="-lwrap -lnss_nis" \ CDEBUGFLAGS="${CFLAGS}" \ + CXXFLAGS="${CFLAGS}" \ World || die else make \ CDEBUGFLAGS="${CFLAGS}" \ + CXXFLAGS="${CFLAGS}" \ World || die fi
just checked in -r1 could any 1.4 try this if it compiled ?
-r1 works just fine in gcc3 land.