LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-04-2013, 10:44 AM   #16
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Rep: Reputation: Disabled

I gott this from compiling gnash
Code:
 CXXLD  dump-gnash
/usr/lib64/gcc/x86_64-slackware-linux/4.8.0/../../../../x86_64-slackware-linux/bin/ld: dump_gnash-gnash.o: undefined reference to symbol'_ZN5boost6system15system_categoryEv'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.0/../../../../x86_64-slackware-linux/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib64/../lib64/libboost_system.so.1.53.0 so try adding it to the linker command line
/usr/lib64/../lib64/libboost_system.so.1.53.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
what dose DSO mean?
 
Old 04-04-2013, 10:46 AM   #17
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,355

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Dynamic Shared Object
 
1 members found this post helpful.
Old 04-04-2013, 10:50 AM   #18
a4z
Member
 
Registered: Feb 2009
Posts: 277

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by Buumi View Post
Could my problem be related to this?
I'm trying to run Spring RTS 94.1. It compiles fine on slackware64-current, but I can't run it. It crashes with error
Code:
[f=0000000] Error: Segmentation fault (SIGSEGV) in spring 94.1 (OMP)
[f=0000000] Error: Stacktrace:
[f=0000000] Error:   <0> /lib64/libpthread.so.0(+0xf580) [0x7f561c1e5580]
[f=0000000] Error:   <1> "./spring"() [0xa23b50]
[f=0000000] Error:   <2> "./spring"() [0xa297fd]
[f=0000000] Error:   <3> ??:?
[f=0000000] Error:   <4> /lib64/libpthread.so.0(+0x7eaf) [0x7f561c1ddeaf]
[f=0000000] Error:   <5> /lib64/libc.so.6(clone+0x6d) [0x7f5618a2d58d]
terminate called after throwing an instance of 'boost::thread_interrupted'
Aborted
I also tried to compile 94.0 and it has the same problem but that version worked before my upgrade on 27th March. I'm still having this problem, even after upgrade to latest current. I guess I should reinstall current to be sure it's not something I've messed up.

no, seems that someone is calling boost::tread.interupt what throws an exception which should be caught in the tread code but is not caught

code should look like here, taken from there http://www.highscore.de/cpp/boost/multithreading.html

Code:
#include <boost/thread.hpp> 
#include <iostream> 

void wait(int seconds) 
{ 
  boost::this_thread::sleep(boost::posix_time::seconds(seconds)); 
} 

void thread() 
{ 
  try 
  { 
    for (int i = 0; i < 5; ++i) 
    { 
      wait(1); 
      std::cout << i << std::endl; 
    } 
  } 
  catch (boost::thread_interrupted&) 
  { 
  } 
} 

int main() 
{ 
  boost::thread t(thread); 
  wait(3); 
  t.interrupt(); 
  t.join(); 
}
 
Old 04-04-2013, 11:13 AM   #19
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Rep: Reputation: Disabled
Code:
note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib64/../lib64/libboost_system.so.1.53.0 so try adding it to the linker command line
dose this mean I should use -lboost_system to LDFLAGS? how do I know that?
 
Old 04-04-2013, 12:13 PM   #20
a4z
Member
 
Registered: Feb 2009
Posts: 277

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by marbangens View Post
Code:
note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib64/../lib64/libboost_system.so.1.53.0 so try adding it to the linker command line
dose this mean I should use -lboost_system to LDFLAGS? how do I know that?
jes, boost system is required in newer boost versions (if you use for example thread library, asio, ... some more)
 
1 members found this post helpful.
Old 04-10-2013, 05:36 PM   #21
Neil65
LQ Newbie
 
Registered: Jul 2012
Posts: 8

Rep: Reputation: Disabled
Not directly related to the original topic, but I'm encountering another issue with gcc 4.8.0. If I compile the kernel (3.6.x and 3.8.x) then one of my laptops (HP 6715b) with a R300 chipset will oops at radeon_vmap_location+0x14. Roll back to gcc 4.7.2 and everything is fine. I have a newer laptop with an R600 and it is fine with either compiler. Perhaps the new gcc is exposing an issue with the radeon code. Maybe the other way around.
 
Old 04-10-2013, 06:44 PM   #22
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,087

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Quote:
Originally Posted by Neil65 View Post
Not directly related to the original topic, but I'm encountering another issue with gcc 4.8.0. If I compile the kernel (3.6.x and 3.8.x) then one of my laptops (HP 6715b) with a R300 chipset will oops at radeon_vmap_location+0x14. Roll back to gcc 4.7.2 and everything is fine. I have a newer laptop with an R600 and it is fine with either compiler. Perhaps the new gcc is exposing an issue with the radeon code. Maybe the other way around.
You should definitely report that to the radeon driver developers. Mentioning it in #radeon on Freenode is a good start.
 
  


Reply

Tags
error, gcc, linking


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc -linking brmchess Linux - Newbie 3 03-02-2012 01:30 AM
GCC Static linking error CartmanYO Programming 2 06-11-2010 02:28 AM
static linking in gcc lavixu Linux - Newbie 1 11-27-2009 07:07 AM
gcc linking error. ugenn Linux - Software 0 01-22-2003 11:18 PM
Linking without gcc, but with ld gluon Programming 3 05-29-2002 05:11 AM


All times are GMT -5. The time now is 03:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration