I wanted to evaluate xfmail. xforms is a dependency of xforms. The emerge of xforms aborts with errors in glcanvas.c Reproducible: Always Steps to Reproduce: 1. # emerge xfmail Actual Results: make[1]: Entering directory `/var/tmp/portage/xforms-1.0/work/xforms-1.0-release/gl' rm -f glcanvas.o unshared/glcanvas.o gcc -m32 -c -I../exports/include -I../lib -I../lib/private -I. -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DMAKING_FORMS -DHAVE_STRERROR -mcpu=athlon-xp -O3 -pipe glcanvas.c -o unshared/glcanvas.o glcanvas.c:47:20: GL/glx.h: No such file or directory glcanvas.c:48:19: GL/gl.h: No such file or directory glcanvas.c:57: parse error before "GLXContext" glcanvas.c:57: warning: no semicolon at end of struct or union glcanvas.c:60: parse error before '}' token glcanvas.c:61: warning: data definition has no type or storage class glcanvas.c:69: conflicting declarations of `glconfig' glcanvas.c:59: `glconfig' previously declared here glcanvas.c:69: warning: `glconfig' was declared `extern' and later `static' glcanvas.c:71: `GLX_RGBA' undeclared here (not in a function) glcanvas.c:71: initializer element is not constant glcanvas.c:71: (near initialization for `glconfig[0]') glcanvas.c:71: `GLX_DEPTH_SIZE' undeclared here (not in a function) glcanvas.c:71: initializer element is not constant glcanvas.c:71: (near initialization for `glconfig[1]') glcanvas.c:72: `GLX_RED_SIZE' undeclared here (not in a function) glcanvas.c:72: initializer element is not constant glcanvas.c:72: (near initialization for `glconfig[3]') glcanvas.c:72: `GLX_GREEN_SIZE' undeclared here (not in a function) glcanvas.c:72: initializer element is not constant glcanvas.c:72: (near initialization for `glconfig[5]') glcanvas.c:72: `GLX_BLUE_SIZE' undeclared here (not in a function) glcanvas.c:72: initializer element is not constant glcanvas.c:72: (near initialization for `glconfig[7]') glcanvas.c:73: `GLX_DOUBLEBUFFER' undeclared here (not in a function) glcanvas.c:73: initializer element is not constant glcanvas.c:73: (near initialization for `glconfig[9]') glcanvas.c: In function `fl_add_glcanvas': glcanvas.c:90: warning: initialization makes pointer from integer without a cast glcanvas.c: In function `fl_set_glcanvas_attributes': glcanvas.c:115: parse error before ')' token glcanvas.c: In function `fl_get_glcanvas_attributes': glcanvas.c:127: parse error before ')' token glcanvas.c: In function `fl_set_glcanvas_direct': glcanvas.c:133: parse error before ')' token glcanvas.c:135: parse error before ')' token glcanvas.c:135: `GL_TRUE' undeclared (first use in this function) glcanvas.c:135: (Each undeclared identifier is reported only once glcanvas.c:135: for each function it appears in.) glcanvas.c:135: `GL_FALSE' undeclared (first use in this function) glcanvas.c: At top level: glcanvas.c:145: parse error before "fl_get_glcanvas_context" glcanvas.c: In function `fl_get_glcanvas_context': glcanvas.c:147: parse error before ')' token glcanvas.c: In function `fl_get_glcanvas_xvisualinfo': glcanvas.c:153: parse error before ')' token glcanvas.c: At top level: glcanvas.c:167: warning: type mismatch with previous implicit declaration glcanvas.c:90: warning: previous implicit declaration of `fl_create_glcanvas' glcanvas.c:167: warning: `fl_create_glcanvas' was previously implicitly declared to return `int' glcanvas.c: In function `fl_create_glcanvas': glcanvas.c:175: parse error before ')' token glcanvas.c:176: parse error before ')' token glcanvas.c:176: `GL_TRUE' undeclared (first use in this function) glcanvas.c: In function `glx_init': glcanvas.c:186: `GLXContext' undeclared (first use in this function) glcanvas.c:186: parse error before "context" glcanvas.c:195: parse error before ')' token glcanvas.c:195: warning: assignment makes pointer from integer without a cast glcanvas.c:207: `context' undeclared (first use in this function) glcanvas.c:207: parse error before ')' token glcanvas.c:219: parse error before ')' token glcanvas.c:220: parse error before ')' token glcanvas.c: In function `glx_activate': glcanvas.c:230: parse error before ')' token glcanvas.c: In function `glx_cleanup': glcanvas.c:241: parse error before ')' token glcanvas.c:243: parse error before ')' token glcanvas.c:244: parse error before ')' token glcanvas.c:245: parse error before ')' token glcanvas.c:246: parse error before ')' token glcanvas.c: At top level: glcanvas.c:267: parse error before "GLXContext" glcanvas.c: In function `fl_glwincreate': glcanvas.c:278: `config' undeclared (first use in this function) glcanvas.c:278: warning: assignment makes pointer from integer without a glcanvas.c:281: `context' undeclared (first use in this function) glcanvas.c:281: `GL_TRUE' undeclared (first use in this function) glcanvas.c:291: `w' undeclared (first use in this function) glcanvas.c:291: `h' undeclared (first use in this function) glcanvas.c: At top level: glcanvas.c:301: parse error before "GLXContext" glcanvas.c: In function `fl_glwinopen': glcanvas.c:304: `config' undeclared (first use in this function) glcanvas.c:304: `context' undeclared (first use in this function) glcanvas.c:304: `w' undeclared (first use in this function) glcanvas.c:304: `h' undeclared (first use in this function) make[1]: *** [glcanvas.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/xforms-1.0/work/xforms-1.0-release/gl' make: *** [all] Error 2 !!! ERROR: x11-libs/xforms-1.0 failed. !!! Function src_compile, Line 39, Exitcode 2 !!! (no error message) dragon root # dragon root # emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20 i686 AMD Athlon(TM) XP1500+ GENTOO_MIRRORS=" ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://212.219.56.162/sites/www.ibiblio.org/gentoo/ http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga ggi tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" dragon root #
what happens if you do: opengl-update xfree and then emerge xforms?
It emerges to completion with no errors. What does opengl-update do? :-)
what kind of video card do you have?
This machine has an ATI Radeon 8500.
well, the GL headers on a gentoo box are not in a standard place, because of the fact that nvidia provides its own gl headers. So, our opengl-update utility creates symlinks in the expected location to the real location. Seems like your symlinks were dead, that's all.
Thanx for the quick response and the info. It's much appreciated. :-)