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

Bug 110585

Summary: Nestra 0.66-7 fails to build due to broken/missing include path in makefile
Product: Gentoo Linux Reporter: Kyle Hokanson <khokanson>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: normal CC: amd64
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: stderr output of emerge when attempting 'emerge nestra'
diff to 'fix' the makefile
output of 'emerge -evp nestra
output of 'emerge -evp nestra'
output of 'ls -l /usr/include/X11'
patch to the ebuild script to make it build correctly

Description Kyle Hokanson 2005-10-26 17:16:23 UTC
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
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-10-26 18:45:10 UTC
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" 
Comment 2 Kyle Hokanson 2005-10-26 20:13:51 UTC
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.
Comment 3 Kyle Hokanson 2005-10-26 20:24:20 UTC
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.
Comment 4 Kyle Hokanson 2005-10-26 20:44:45 UTC
Created attachment 71543 [details]
output of 'emerge -evp nestra
Comment 5 Kyle Hokanson 2005-10-26 20:46:48 UTC
Created attachment 71544 [details]
output of 'emerge -evp nestra'
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2005-10-26 21:09:13 UTC
Does "ls -l /usr/include/X11/Xlib.h" list anything?
Comment 7 Kyle Hokanson 2005-10-27 04:48:10 UTC
Created attachment 71557 [details]
output of 'ls -l /usr/include/X11'

/usr/include/X11 is present and full of header files
Comment 8 Kyle Hokanson 2005-10-27 05:06:19 UTC
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?
Comment 9 Kyle Hokanson 2005-10-27 05:12:47 UTC
Created attachment 71559 [details, diff]
patch to the ebuild script to make it build correctly
Comment 10 Kyle Hokanson 2005-10-27 05:13:56 UTC
Comment on attachment 71559 [details, diff]
patch to the ebuild script to make it build correctly

of course, the amd64 should have be ~amd64
Comment 11 SpanKY gentoo-dev 2005-10-27 05:45:11 UTC
no, forcing '-I /usr/include' doesnt make any sense
Comment 12 Kyle Hokanson 2005-10-27 08:13:32 UTC
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.


Comment 13 SpanKY gentoo-dev 2005-10-27 08:27:19 UTC
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
Comment 14 Kyle Hokanson 2005-10-27 15:51:50 UTC
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...
Comment 15 Mr. Bones. (RETIRED) gentoo-dev 2005-10-27 16:00:06 UTC
ok.  glad you got it figured out.