Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-13 Thread Mathias Fröhlich
Hi, On Friday 10 October 2008 17:27, Björn Blissing wrote: I have dug down on this problem during the day. The problem is that the code that checks if ATOMIC should use GCC BUILTIN fails. I have traced this failure to the combination of the XEON processor and GCC version. But if I forces

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-10 Thread Björn Blissing
Line 4: U OpenThreads::Atomic::operator--() display.cpp:0 Tells that the symbol is referenced from dispay.cpp. This is one of the offending symbols. Find out why this display.cpp is compiled with this code non inline? There seems to be some problem during the preprocessor step

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-10 Thread Björn Blissing
I have dug down on this problem during the day. The problem is that the code that checks if ATOMIC should use GCC BUILTIN fails. I have traced this failure to the combination of the XEON processor and GCC version. But if I forces it to use GCC_BUILTINS and compiles OSG and my code with the

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-09 Thread Mathias Fröhlich
Hi Björn, Hmm, did you change the OpenThreads config file by hand? Looking at the code I can think of hating that effect ... Also, can you tell, if OpenThreads.so includes that symbol? nm -C is your friend. Greetings Mathias -- Dr. Mathias Fröhlich, science + computing ag, Software

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-09 Thread Björn Blissing
Hi Björn, Hmm, did you change the OpenThreads config file by hand? Looking at the code I can think of hating that effect ... No. I did not. I let cmake generate it for me. Also, can you tell, if OpenThreads.so includes that symbol? nm -C is your friend. Below is the complete output of

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-09 Thread Björn Blissing
No. I did not. I let cmake generate it for me. Hmm, strange. Indeed... Where are the Atomic operators referenced from? I am not sure actually. My code is based on the CompositeViewer example. And contains nothing unusual to my knowledge. Are there any objrct files from previous builds

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-09 Thread Mathias Fröhlich
Hi, On Thursday 09 October 2008 15:43, Björn Blissing wrote: Indeed... My problem is that I do not see from the defines in the code how this can happen. May be I miss something ... Where are the Atomic operators referenced from? I am not sure actually. My code is based on the

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-09 Thread Björn Blissing
Where are the Atomic operators referenced from? I am not sure actually. My code is based on the CompositeViewer example. And contains nothing unusual to my knowledge. So, one of the libs/objects you link must contain that unresolved reference. So which one? nm can tell you which

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-09 Thread Mathias Fröhlich
Hi, On Thursday 09 October 2008 10:27, Björn Blissing wrote: No. I did not. I let cmake generate it for me. Hmm, strange. Where are the Atomic operators referenced from? Are there any objrct files from previous builds of your application left, that were built using an other OpenThreads/Config

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-08 Thread Jean-Sébastien Guay
Hi Björn, The application that fails linking has been successfully compiled and linked against the following computers. Intel Core 2 Duo running Windows XP sp3, Visual Studio 2005 sp1. Intel Pentium 4 running Ubuntu 8.04, GCC version 4.2.3-2ubuntu7 Both have OSG 2.6.0 built from source. Can

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-08 Thread Björn Blissing
-Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jean-Sébastien Guay Skickat: den 8 oktober 2008 16:20 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2 Hi

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-08 Thread Jean-Sébastien Guay
Hello Björn, Just as you we put OSG under source control, although only the include files. But the OpenThreads/Config file is NOT under source control. Ok, just as I suspected. I have built OSG with CMAKE out of source and if I check the OpenThreads/Config file on each computer I can

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-08 Thread Björn Blissing
Just as you we put OSG under source control, although only the include files. But the OpenThreads/Config file is NOT under source control. Ok, just as I suspected. I have built OSG with CMAKE out of source and if I check the OpenThreads/Config file on each computer I can clearly

Re: [osg-users] Problem with OpenThreads::Atomic when buildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-08 Thread Jean-Sébastien Guay
Hello Björn, We actually build OSG out-of-source on each machine. So the OpenTreads/Config file is generated and used on each computer. So the problem seems to be something else... Hmmm, yes in that case it seems to be something else. Sorry, I was under the impression that you were not