Summary: | Compile fails complaining undefined reference to `glViewport' for digikamplugins 0.6.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Duncan Hill <gentoo-bugs> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | carlo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Duncan Hill
2004-07-24 02:09:48 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' 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" } |