linker errors for OpenGL functions

Graham Menhennitt graham at menhennitt.com.au
Mon Mar 6 21:38:43 UTC 2017


On 6/03/2017 11:29 AM, Kevin Oberman wrote:
> On Sat, Mar 4, 2017 at 12:14 PM, Graham Menhennitt <graham at menhennitt.com.au
>
>> 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'
>> 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.
>
Hi Kevin,

Thanks for replying. Unfortunately, no, I only have llvm39 installed. 
That's not to say I haven't had other versions installed in the past. In 
fact, I suspect that cleaning up my system is exactly what broke this.

I'll try reinstalling some more ports.

Thanks again,
     Graham


More information about the freebsd-ports mailing list