linker errors for OpenGL functions

Kevin Oberman rkoberman at gmail.com
Mon Mar 6 00:29:55 UTC 2017


On Sat, Mar 4, 2017 at 12:14 PM, Graham Menhennitt <graham at menhennitt.com.au
> wrote:

> G'day all,
>
> I've screwed up something on my system. When I try to build the
> x11/kde4-workspace port, I get a pile of linker errors. I'm guessing that I
> just need to reinstall some other OpenGL port, but I can't find out which
> one. Any clues, please?
>
> Thanks,
>
>     Graham
>
>
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glBegin'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glPopMatrix'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glLoadMatrixd'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glXCreateContext'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glTexCoordPointer'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glDeleteTextures'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glGetError'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glTexImage2D'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glTexGenfv'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glCopyTexImage2D'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glColor4f'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glBlendFunc'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glDrawArrays'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glXDestroyContext'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glXQueryExtension'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glLoadMatrixf'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glIndexi'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glBindTexture'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to `glCullFace'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glPixelTransferi'
> /usr/local/lib/qt4/libQtOpenGL.so.4: undefined reference to
> `glXGetClientString'
> c++: error: linker command failed with exit code 1 (use -v to see
> invocation)
> gmake[4]: *** [ksmserver/screenlocker/greeter/CMakeFiles/kscreenlocker_greet.dir/build.make:283:
> ksmserver/screenlocker/greeter/kscreenlocker_greet] Error 1
> gmake[4]: Leaving directory '/usr/ports_build/usr/data/Fre
> eBSD/ports/x11/kde4-workspace/work/.build'
> gmake[3]: *** [CMakeFiles/Makefile2:8345: ksmserver/screenlocker/greeter
> /CMakeFiles/kscreenlocker_greet.dir/all] Error 2
> gmake[3]: *** Waiting for unfinished jobs....
>

Do you have any older versions of llvm installed? OpenGL has issues if
anything older that llvm38 (maybe llvm39) is installed. "pkg delete -f
llvm3?" for each version prior to 3.9 installed. It is quite unlikely that
you will find any dependencies on the old versions. You can use "pkg info
-d llvm3?" to confirm. It is possible that some port or another might need
a re-install, but I have yet to see a report of this.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-ports mailing list