when compiling x11.c, gcc fails with the a bunch of errors, for example: "x11.c:4:22: X11/Xlib.h: No such file or directory" and "x11.c:631: error: `plane2' undeclared (first use in this function)" Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~amd64" emerge nestra Actual Results: emerge failed due to GCC errors from not being able to find the header files for X11 Expected Results: build correctly `emerge info` Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r10 x86_64) ================================================================= System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://130.207.108.135/pub/gentoo ftp://130.207.108.134/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi aim alsa apm arts avi bash-completion berkdb bitmap-fonts browserplugin cdparanoia cdr crypt cups curl directfb dvdread eds emboss encode esd fam flac foomaticdb fortran gdbm gif gimpprint glut gpm gstreamer gtk gtk2 icq imagemagick imap imlib ipv6 java joystick jpeg junit kde locales lzw lzw-tiff mad mozilla mp3 mpeg msn mysql ncurses nls offensive ogg oggvorbis opengl oscar pam pdflib perl png python qt quicktime radeon readline ruby samba scanner sdl spell ssl tcltk tcpd theora tiff truetype-fonts type1-fonts udev usb user userlocales vorbis xml2 xmms xpm xscreensaver xv yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
No idea what "Nestra 0.66-7" means. nestra-0.66-r1 builds fine for me. Please attach the full output from the attempted merge. Also, please attach the output from "emerge -evp nestra"
Created attachment 71541 [details] stderr output of emerge when attempting 'emerge nestra' sorry about the previous version confusion. this is the output i get when attempting to merge nestra on my box.
Created attachment 71542 [details, diff] diff to 'fix' the makefile if I change the makefile to have "-I /usr/include" in the target for x11.o it builds fine.
Created attachment 71543 [details] output of 'emerge -evp nestra
Created attachment 71544 [details] output of 'emerge -evp nestra'
Does "ls -l /usr/include/X11/Xlib.h" list anything?
Created attachment 71557 [details] output of 'ls -l /usr/include/X11' /usr/include/X11 is present and full of header files
the ebuild does a lot of patching to the Makefile by itself to do the configuration (it doesnt use a configure script). perhaps 'sed -i -e 's:x11.c:x11.c -I /usr/include:' need to be in the ebuild too? if so, why does it build fine elsewhere?
Created attachment 71559 [details, diff] patch to the ebuild script to make it build correctly
Comment on attachment 71559 [details, diff] patch to the ebuild script to make it build correctly of course, the amd64 should have be ~amd64
no, forcing '-I /usr/include' doesnt make any sense
is this a problem with my environment? there is no CPATH variable defined anywhere in the files in /etc/. ('grep -iR ^cpath /etc' returns nothing) but that doesn't explain why all the other files complie normally.
not sure ... it emerges fine on my amd64 2005.1 :/ try putting '-v' into your CFLAGS and see what the include search paths gcc uses
Ah crap. It was my system after all. there was a broken cross compiler that I had installed for some experimentation that I forgot about. got rid of that, and it works fine now. probably also why the cross compiler didnt work either... Sorry bout that...
ok. glad you got it figured out.