Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58156 - Compile fails complaining undefined reference to `glViewport' for digikamplugins 0.6.2
Summary: Compile fails complaining undefined reference to `glViewport' for digikamplug...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-24 02:09 UTC by Duncan Hill
Modified: 2004-11-17 06:44 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 Duncan Hill 2004-07-24 02:09:48 UTC
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -ftracer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common    -o digikamplugin_slideshow.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/X11R6/lib  -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib  plugin_slideshow.lo slideshow.lo slideshowconfig.lo imlibiface.lo slideshowgl.lo plugin_slideshow.moc.lo slideshow.moc.lo slideshowconfig.moc.lo slideshowgl.moc.lo  -lkparts -ldigikam -L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11
.libs/slideshowgl.o(.text+0xd): In function `SlideShowGL::resizeGL(int, int)':
: undefined reference to `glViewport'
.libs/slideshowgl.o(.text+0x17): In function `SlideShowGL::resizeGL(int, int)':
: undefined reference to `glMatrixMode'
.
.
.
collect2: ld returned 1 exit status
make[2]: *** [digikamplugin_slideshow.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/digikamplugins-0.6.2/work/digikamplugins/slideshow'


Reproducible: Always
Steps to Reproduce:
1. emerge digikamplugins

Actual Results:  
 

Expected Results:  
Success. 

Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040605-r0, 
2.6.7-gentoo-r9) 
================================================================= 
System uname: 2.6.7-gentoo-r9 x86_64 4 
Gentoo Base System version 1.5.1 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=k8 -O2 -pipe -ftracer" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/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/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe -ftracer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache" 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/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="X aalib acpi alsa amd64 apache2 apm arts artswrappersuid avi bonobo cddb 
cdr crypt cups dga dvd encode esd ethereal faad flac foomaticdb gd gdbm gif 
gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib innodb jpeg kde libg++ 
libwww mad maildir mikmod motif mozilla moznocompose moznoirc moznomail mozp3p 
mozsvg mpeg msn mysql ncurses nls oggvorbis opengl pam pdflib pear-db perl png 
python qt quicktime readline samba sasl sdl slang spell ssl tcltk tcpd tetex 
theora tiff transparent-proxy truetype usb vim-with-x xml2 xmms xv yahoo zlib" 
 
I suspect I'm missing a GL lib somewhere.
Comment 1 Chris Smith 2004-08-02 10:09:44 UTC
I've had the same problem for some time now on my x86 system. And now I see it on a brand new install. For me it fails first on glEnable.

-o digikamplugin_slideshow.la.closure digikamplugin_slideshow_la_closure.lo -module -avoid-version -module -no-undefined  -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib  -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  plugin_slideshow.lo slideshow.lo slideshowconfig.lo imlibiface.lo slideshowgl.lo slideshowgl.moc.lo slideshow.moc.lo plugin_slideshow.moc.lo slideshowconfig.moc.lo  -lkparts -ldigikam -L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11
.libs/slideshowgl.o(.text+0xd00): In function `SlideShowGL::initializeGL()':
: undefined reference to `glEnable'
.libs/slideshowgl.o(.text+0xd20): In function `SlideShowGL::initializeGL()':
: undefined reference to `glClearColor'
Comment 2 Chris Smith 2004-08-02 12:24:41 UTC
I don't mean to be a pest but just in case it matters I tried remerging qt and then digikamplugins and my error has slightly shifted. I think it matches the reported error now, with glViewport being the first undefined reference instead of glEnable:

-Wl,--allow-shlib-undefined -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib  -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  plugin_slideshow.lo slideshow.lo slideshowconfig.lo imlibiface.lo slideshowgl.lo plugin_slideshow.moc.lo slideshow.moc.lo slideshowconfig.moc.lo slideshowgl.moc.lo  -lkparts -ldigikam -L/usr/lib -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -L/usr/X11R6/lib -lSM -lICE -lXext -lX11
.libs/slideshowgl.o(.text+0x2f): In function `SlideShowGL::resizeGL(int, int)':
: undefined reference to `glViewport'
.libs/slideshowgl.o(.text+0x3b): In function `SlideShowGL::resizeGL(int, int)':
: undefined reference to `glMatrixMode'
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-08-26 17:21:55 UTC
Well, this doesn't only affect amd64. Reassigning to bugwranglers.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-02 06:44:49 UTC
You need to compile Qt with OpenGl support. Welcome to the Gentoo use flag hell...
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-09-09 12:11:57 UTC
For me, glViewport is defined in libGL.so supplied with xfree/xorg.  Are you using the nvidia drivers? They replace the opengl stuff with their own version.
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-09-23 19:33:06 UTC
see above comments.
Comment 7 ra 2004-11-17 06:44:19 UTC
I'm was having the same problem. Qt 3.3.3 did have OpenGL use flag enabled, but I was getting the same message about missing references.

Adding the following to the ebuild solved the problem:

src_compile() {
	econf LIBS=-lGL || die "could not configure"
	emake || die "emake failed"
}