when i try to emerge povray 3.50c, i get an error message! Then it aborts the compilation sequence. Reproducible: Always Steps to Reproduce: 1. emerge povray Actual Results: gcc -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\" -DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\" -DUSE_IO_RESTRICTIONS=\"\" -march=k6 -O2 -fomit-frame-pointer -pipe -finline-functions -ffast-math -O3 -mcpu=i586 -march=i586 -finline-functions -ffast-math -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -foptimize-sibling-calls -minline-all-stringops -Wno-multichar -c povxlib.c povxlib.c:30:22: X11/Xlib.h: No such file or directory povxlib.c:31:23: X11/Xutil.h: No such file or directory povxlib.c:33: parse error before '*' token povxlib.c: In function `pclass': povxlib.c:35: `p' undeclared (first use in this function) povxlib.c:35: (Each undeclared identifier is reported only once povxlib.c:35: for each function it appears in.) make: *** [povxlib.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: media-gfx/povray-3.50c failed. !!! Function src_compile, Line 104, Exitcode 2 !!! (no error message) rembrandt root # rembrandt root # uname -a Linux rembrandt 2.4.21-g1 #2 Thu Aug 14 19:59:07 CEST 2003 i586 AMD-K6(tm) 3D processor AuthenticAMD GNU/Linux rembrandt root # lspci 00:00.0 Host bridge: ALi Corporation M1541 (rev 04) 00:01.0 PCI bridge: ALi Corporation M1541 PCI to AGP Controller (rev 04) 00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) 00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV] (rev c3) 00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 00:0f.0 IDE interface: ALi Corporation M5229 IDE (rev c1) 01:00.0 VGA compatible controller: Intel Corp. i740 (rev 21) rembrandt root # gcc -v Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/specs Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i586-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i586-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i586-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i586-pc-linux-gnu/3.2/info --enable-shared --host=i586-pc-linux-gnu --target=i586-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --disable-nls Thread model: posix gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) CFLAGS=-march=k6 -O2 -fomit-frame-pointer -pipe removing the -fomit-frame-pointer part didn't help at recompilation.
rembrandt root # emerge -p povray These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-gfx/povray-3.50c -icc -X +svga rembrandt root # these are my use flags!
pascal, you have xfree installed yes? because it just looks like the include path for the xfree headers is not in your PATH. Please do: env-update && source /etc/profile if you have xfree emerged already, and then try this again.
No, I do not have X installed... That's why I choose the useflag "-X" Anyway, if that should be the case, then the -X useflag should be removed, and X would need to be coded as a hard dependancy, right? Pascal de Bruijn BTW: I cannot try this, my system is too slow to compile X!
I fixed (I hope) the ebuild please try again, the resulted binary does not link against X, I didn't test on a Xless system, but now the ebuild explictly put a without-x in the configure options if -X is present.
Sorry for my late response, but it didn't work this time either... at least I just did emerge sync and then recompiled, or should I have looked in CVS? You might just want to make X a hard dependancy of povray and remove the "X" use flag. Thanks for your time, DrZ
I have this problem too. I too have no X installed and have -X in my use flags. povxlib.c:30:22: X11/Xlib.h: No such file or directory povxlib.c:31:23: X11/Xutil.h: No such file or directory povxlib.c:33: parse error before '*' token povxlib.c: In function `pclass': povxlib.c:35: `p' undeclared (first use in this function) povxlib.c:35: (Each undeclared identifier is reported only once povxlib.c:35: for each function it appears in.) distcc[24746] ERROR: compile on localhost failed with exit code 1 make: *** [povxlib.o] Error 1
eventually found the time to take a look at it closely fixed