Hi Mike, I think the error you have is down to RedHat shipping sched_setaffinity with the a non standard number of parameters for a while. There is a code path in OpenThreads to cope with this, but I can't recall if this is picked out by CMake. Have a root through the code.
Robert. On 9/11/07, Mike Logan <[EMAIL PROTECTED]> wrote: > > Hi, > > just updated my copy.. > > My redhat WS-5 64-bit linux box seems ok. > > My redhat WS-3(taroon update 9) 32-bit linux box can't even compile > OpenThreads.. > > This is my first time on this 32-bit box, and couldn't find anything on the > list about this.. > Guess I should upgrade to ws5? > > ml > > [EMAIL PROTECTED] osg-linux32]$ cmake .. -DCMAKE_BUILD_TYPE=Release > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Check size of void* > -- Check size of void* - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Looking for pthread.h > -- Looking for pthread.h - found > -- Looking for pthread_create in pthreads > -- Looking for pthread_create in pthreads - not found > -- Looking for pthread_create in pthread > -- Looking for pthread_create in pthread - found > -- Looking for XOpenDisplay in > /usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so > -- Looking for XOpenDisplay in > /usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for connect > -- Looking for connect - found > -- Looking for remove > -- Looking for remove - found > -- Looking for shmat > -- Looking for shmat - found > -- Looking for IceConnectionNumber in ICE > -- Looking for IceConnectionNumber in ICE - found > -- ERROR: wxWidgets was not found. > -- Found JPEG: /usr/lib/libjpeg.so > -- Found PNG: /usr/lib/libpng.so > -- Configuring done > -- Generating done > -- Build files have been written to: > /hosts/swamp/viz/OpenSceneGraph/osg-linux32 > [EMAIL PROTECTED] osg-linux32]$ make > Scanning dependencies of target OpenThreads > [ 0%] Building CXX object > src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThread.o > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++: > In static > member function `static void* > OpenThreads::ThreadPrivateActions::StartThread(void*)': > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:130: > invalid > conversion from `unsigned int' to `const cpu_set_t*' > /usr/include/sched.h:77: too many arguments to function `int > sched_setaffinity(int, const cpu_set_t*)' > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:130: > at > this point in file > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++: > In member > function `int > OpenThreads::Thread::setProcessorAffinity(unsigned int)': > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:538: > invalid > conversion from `unsigned int' to `const cpu_set_t*' > /usr/include/sched.h:77: too many arguments to function `int > sched_setaffinity(int, const cpu_set_t*)' > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:538: > at > this point in file > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++: > In > function `int > OpenThreads::SetProcessorAffinityOfCurrentThread(unsigned > int)': > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:942: > invalid > conversion from `unsigned int' to `const cpu_set_t*' > /usr/include/sched.h:77: too many arguments to function `int > sched_setaffinity(int, const cpu_set_t*)' > /hosts/swamp/viz/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:942: > at > this point in file > make[2]: *** > [src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThread.o] > Error 1 > make[1]: *** > [src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/all] > Error 2 > make: *** [all] Error 2 > > > > On Sep 11, 2007, at 6:51 AM, Robert Osfield wrote: > > Hi All, > > I have merged quite a few changes to the OSG over the last few days, > these could break the build, so I'd like some feedback on how the OSG > is build and running on various platforms before I go ahead the weekly > dev release (2.1.10). > > Thanks in advance, > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > Michael Logan > > Perot Systems Govt. Services / NASA Ames Res. Ctr. > > Task Lead / Visual Cueing & Simulation > > Visualization Engineer / Adaptive Control Technologies > > MS 269-1, Moffett Field, CA, 94035 (650)-604-4494 > "If you want to start a revolution, don't pick up a gun. > Do it with science and technology." - Stanford R. Ovshinsky > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

