[Insight-developers] SGI's thread

Jisung Kim bahrahm at yahoo . com
Wed, 3 Jul 2002 13:02:47 -0700 (PDT)


Hi,

Do I understand it correctly that if there is sproc on
a system, ITK will use sproc instead of pthread? It
looks like ITK_USE_SPROC value is determined by
CMAKE's    cache value, "CMAKE_USE_SPROC". 

The build command line just above the error message
shows the linker tries to link pthread. Is the error
caused by build environment on that SGI machine?

Just curious. :)

Jisung.

--- "Stephen R. Aylward" <aylward@unc.edu> wrote:
> Hi,
> 
> I am getting the following error on the SGI's for 
> Insight/Examples/ITKFilterLib.
> 
> Basically, my CMakeLists.txt file creates a .lib for
> a filter in itk and 
> then creates an executable that links with that
> .lib.   So, it 
> demonstrates a quick way to call itk filters from
> existing packages 
> (avs, matlab, etc).
> 
> BUT, on the SGI's I am getting an underfined symbol
> in ITKCommon for
> the multithread class.   The CMakeLists file really
> only includes the 
> common ITK libs, then does the ADD_LIBRARY call and
> then the 
> ADD_EXECUTABLE call.   Works on other platforms...
> 
> Details are below...I am open to
> suggestions...thanks,
> Stephen
> 
> CC  -n32 -LANG:std -woff 15 -woff 84 -woff 3439
> -woff 1424 -woff 3201 
> -LANG:std -ptused -no_prelink ITKFilterLibTest.o 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Utilities/zlib
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Utilities/png
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Common
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/IO
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Numerics/vxl
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Utilities/stdlib
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/BasicFilters
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Algorithms
> 
>
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Examples/ITKFilterLib
> 
> -lpthread -lVXLNumerics -lITKCommon
> -lITKBasicFilters -lCio -lm 
> -lExample_ITKFilterLib -lpthread -lVXLNumerics
> -lITKCommon 
> -lITKBasicFilters -lCio -lm -lExample_ITKFilterLib 
> -o 
> Example_ITKFilterLibTest
> ld32: ERROR   33 : Unresolved text symbol
> "pthread_attr_setscope" -- 1st 
> referenced by 
>
/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Common/libITKCommon.a(itkMultiThreader.o).
> Use linker option -v to see when and which objects,
> archives and dsos 
> are loaded.
> 
> 
> -- 
> ===============================================
> Dr. Stephen R. Aylward
> Assistant Professor of Radiology
> Adjunct Assistant Professor of Computer Science
> http://caddlab.rad.unc.edu
> aylward@unc.edu
> (919) 966-9695
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
>
http://public.kitware.com/mailman/listinfo/insight-developers


=====
Jisung Kim
bahrahm@yahoo.com
106 Mason Farm Rd.
129 Radiology Research Lab., CB# 7515
Univ. of North Carolina at Chapel Hill
Chapel Hill, NC 27599-7515

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com