Finally results that the version 2.7 of glibc, that i have got intalled, has libpthred included and installed in /usr/lib/libpthread.so and in /lib/libpthread-<a href="http://2.7.so">2.7.so</a>) but ITK-3.4.0 continue without compiling. Any ideas?
<br><br><div><span class="gmail_quote">2007/12/2, Kendra <<a href="mailto:kendracorreo@gmail.com">kendracorreo@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks. The package in Gentoo is called libpthread-stubs and because of this I don't found it.<br><br><div><span class="gmail_quote">2007/12/2, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
luis.ibanez@kitware.com
</a>>:</span><div><span class="e" id="q_1169b203c12a108c_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Kendra<br><br>You seem to be missing the pthreads library in your installation of GNU/Linux.
<br><br>Use your favorite linux package manager and install the libpthread2 package.<br><br>In some systems the package will be "libpthread2";<br>in others it might be "libpthread2".<br><br><br> Regards,
<br><br><br> Luis<br><br><br>----------------------------------------------------------------------<br>On 12/2/07, Kendra <<a href="mailto:kendracorreo@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
kendracorreo@gmail.com</a>> wrote:<br>> I've got a problem compiling
3.4.0 version of ITK in Gentoo Linux with gcc<br>> 4.1.2. The error is the following:<br>><br>> [ 45%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir<br>> /itkMultiThreader.o<br>> /home/kendra/ITK-
3.4.0/Code/Common/itkMultiThreader.cxx: In member function<br>> 'void itk::MultiThreader::MultipleMethodExecute()':<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:568: error:<br>> 'pthread_attr_create' no se declaró en este ámbito
<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:584: error: no se<br>> puede convertir 'pthread_attr_t' a 'const pthread_attr_t*' para el argumento<br>> '2' para 'int pthread_create(pthread_t*, const pthread_attr_t*, void*
<br>> (*)(void*), void*)'<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In member function<br>> 'int itk::MultiThreader::SpawnThread(void* (*)(void*), void*)':<br>> /home/kendra/ITK-
3.4.0/Code/Common/itkMultiThreader.cxx:686: error:<br>> 'pthread_attr_create' no se declaró en este ámbito<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:697: error: no se<br>> puede convertir 'pthread_attr_t' a 'const pthread_attr_t*' para el argumento
<br>> '2' para 'int pthread_create(pthread_t*, const pthread_attr_t*, void*<br>> (*)(void*), void*)'<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In member function<br>> 'itk::ThreadProcessIDType
<br>> itk::MultiThreader::DispatchSingleMethodThread(itk::MultiThreader::ThreadInfoStruct*)':<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:888: error:<br>> 'pthread_attr_create' no se declaró en este ámbito
<br>> /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:899: error: no se<br>> puede convertir 'pthread_attr_t' a 'const pthread_attr_t*' para el argumento<br>> '2' para 'int pthread_create(pthread_t*, const pthread_attr_t*, void*
<br>> (*)(void*), void*)'<br>> make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkMultiThreader.o] Error<br>> 1<br>> make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2<br>> make: *** [all] Error 2
<br>><br>> Thanks.<br>><br>><br>> --<br>> Esther.<br>><br></blockquote></span></div></div><span class="sg"><br><br clear="all"><br>-- <br>Esther.
</span></blockquote></div><br><br clear="all"><br>-- <br>Esther.