LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2019, 11:40 PM   #1
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 86

Rep: Reputation: Disabled
Glew 2.1.0 (Slackware current), weird unresolved symbol woes.


Got a little GL pet project that used to work just fine, but after a hiatus from it, and some updates to current , this happens:

Code:
|| /usr/bin/ld: CMakeFiles/spacemen.dir/src/renderer_sdl.cpp.o: undefined reference to symbol '__glewDeleteRenderbuffers'
|| /usr/bin/ld: /usr/lib64/libGLEW.so.2.1: error adding symbols: DSO missing from command line
Says the symbol isn't defined.

However:
Code:
readelf -Ws /usr/lib64/libGLEW.so | grep -i deleteren 
    60: 00000000002ab7a0     8 OBJECT  GLOBAL DEFAULT   24 __glewDeleteRenderbuffers
   475: 00000000002a9898     8 OBJECT  GLOBAL DEFAULT   24 __glewDeleteRenderbuffersEXT
Compiler is: gcc-g++-9.2.0_multilib-x86_64-1alien, and all the linker settings *should* be okay.

Am I missing something here? This has me confused enough that I'm not even sure about additional infos I could be giving right now.
 
Old 09-08-2019, 12:50 AM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,903
Blog Entries: 21

Rep: Reputation: 125Reputation: 125
something is referencing (such as a function call) the name "__glewDeleteRenderbuffers". a quick google search suggests it may be a misspelling somewhere. if it isn't your code doing that, it may be hard for you to fix it. google for it yourself and look through those results.
 
Old 09-08-2019, 01:42 AM   #3
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,744

Rep: Reputation: Disabled
Quote:
Originally Posted by Geist View Post
Am I missing something here? This has me confused enough that I'm not even sure about additional infos I could be giving right now.
Its hard to help without seeing some source and being able to reproduce the problem.
 
Old 09-10-2019, 04:11 AM   #4
trite
Member
 
Registered: Feb 2016
Location: Sweden
Distribution: Slackware64-current
Posts: 68

Rep: Reputation: 50
Start thinking about using GLAD instead of GLEW? I think GLEW will become deprecated (?)


target_link_libraries(GLEW GL GLU)

Last edited by trite; 09-10-2019 at 04:13 AM.
 
Old 09-10-2019, 11:01 PM   #5
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by orbea View Post
Its hard to help without seeing some source and being able to reproduce the problem.
I realize this, but the only GLEW code I am calling in that project is its generale "init" procedure.
I recreated the build environment several times, no avail (cmake 3.15), and while I found some 'cmake find' code specific to NVIDIA (their shader sdk had a custom find module for the various GL things, including GLEW and added some remarks in the script about how 3.15 required some workarounds), it doesn't seem to be the source of the problem.

I'm gonna try a bit more and if it won't work then I'm just gonna write up an isolated case for GLEW without as much context as the problematic project (SDL2, CEGUI, etc).
It just all worked before and the GLEW lib does seem to export the function as written, but yeah, I'll try a bit more, thanks for the replies so far.

Also, I'll look into GLAD, too, if things don't improve, thanks.

Last edited by Geist; 09-10-2019 at 11:02 PM.
 
Old 09-11-2019, 04:54 AM   #6
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,156
Blog Entries: 18

Rep: Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849
You can sometimes get that error when objects are passed to the linker in the wrong order. Try reordering them and putting -lGLEW after any objects that use it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
-current probable GLEW problem... NoStressHQ Slackware 1 06-15-2016 06:21 PM
[SOLVED] GLEW won't build? marek3571 Linux - Software 2 08-21-2011 04:47 PM
32-current 2010-08-27 - segfaults - zlib. glew package version 4Strings Slackware 6 08-28-2010 07:59 PM
Glew CentOS x64bit mitchell2345 Red Hat 8 09-23-2008 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration