/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.
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'
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'
Well, this doesn't only affect amd64. Reassigning to bugwranglers.
You need to compile Qt with OpenGl support. Welcome to the Gentoo use flag hell...
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.
see above comments.
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" }