Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57495 - sdl-perl fails on glext.h
Summary: sdl-perl fails on glext.h
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-18 09:03 UTC by N Addy
Modified: 2004-07-18 16:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description N Addy 2004-07-18 09:03:07 UTC
opengl-update-1.8-r1 forces glext.h to be moved to /usr/lib/opengl/xfree/include/.  sdl-perl-1.20.3 ebuild has not been updated to recognize this move.

[10:42:30][~]# emerge -u sdl-perl
<snip>
cp lib/SDL/Constants.pm blib/lib/SDL/Constants.pm
gcc -c  -I/usr/include/SDL -D_REENTRANT -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/include/smpeg -I/usr/include/SDL -I/usr/include -I/usr/include/smpeg -I/usr/local/include/GL -I/usr/local/include/gl -I/usr/include/GL -I/usr/include/gl -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O3 -pipe   -DVERSION=\"1.20.3\" -DXS_VERSION=\"1.20.3\" -fPIC "-I/usr/lib/perl5/5.8.4/i686-linux/CORE"  -DHAVE_GLU_VERSION=0 -DHAVE_GL -DHAVE_GLU  -DHAVE_SDL_GFX -DHAVE_SDL_IMAGE -DHAVE_SDL_MIXER  -DHAVE_SDL_TTF -DHAVE_JPEG -DHAVE_PNG -DHAVE_SMPEG SFont.c
/usr/bin/perl /usr/lib/perl5/5.8.4/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.4/ExtUtils/typemap -typemap typemap  SDL_perl.xs > SDL_perl.xsc && mv SDL_perl.xsc SDL_perl.c
gcc -c  -I/usr/include/SDL -D_REENTRANT -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/include/smpeg -I/usr/include/SDL -I/usr/include -I/usr/include/smpeg -I/usr/local/include/GL -I/usr/local/include/gl -I/usr/include/GL -I/usr/include/gl -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O3 -pipe   -DVERSION=\"1.20.3\" -DXS_VERSION=\"1.20.3\" -fPIC "-I/usr/lib/perl5/5.8.4/i686-linux/CORE"  -DHAVE_GLU_VERSION=0 -DHAVE_GL -DHAVE_GLU  -DHAVE_SDL_GFX -DHAVE_SDL_IMAGE -DHAVE_SDL_MIXER  -DHAVE_SDL_TTF -DHAVE_JPEG -DHAVE_PNG -DHAVE_SMPEG SDL_perl.c
In file included from SDL_perl.xs:33:
/usr/include/GL/gl.h:2469:22: GL/glext.h: No such file or directory
make: *** [SDL_perl.o] Error 1

!!! ERROR: dev-perl/sdl-perl-1.20.3 failed.
!!! Function perl-module_src_compile, Line 58, Exitcode 2
!!! compilation failed


I copied the file to its expected location and the sdl-perl update completed successfully.

[10:45:41][~]# cp /usr/lib/opengl/xfree/include/glext.h /usr/X11R6/include/GL/




Reproducible: Always
Steps to Reproduce:
1.emerge -u sdl-perl
2.
3.

Actual Results:  
In file included from SDL_perl.xs:33:
/usr/include/GL/gl.h:2469:22: GL/glext.h: No such file or directory

Expected Results:  
ebuild successful

[11:02:13][/var/log]# emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups emacs encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla
mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python
quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex truetype x86
xml2 xmms xv zlib"
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-07-18 15:43:09 UTC
But you should have the symlink /usr/X11R6/include/GL/glext.h,
that gets created when you do "opengl-update xfree" (or
"opengl-update nvidia" ...).

what happens when you run one of those commands?
Comment 2 N Addy 2004-07-18 16:10:34 UTC
Ah... my bad.  I never mess around with opengl (other than keeping it updated) and didn't know that's what this was for.  RTFS, huh?

I'll close this bug as a BUE ("Brainless User Error").

Thanks