Error compiling vtk 2.4 under Slakware

Miguel Angel Martin Fernandez vtk at helios.tel.uva.es
Thu Mar 9 06:12:08 EST 2000


Hello users,

	I'm trying to compile VTK 2.4 in a rather old distribution of
slakware linux. The kernel is 2.1.122, and I'm having an error during
compilation. My version of gcc is 2.7.2.3. The error is the next:

c++  -g -O2 -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H
-DHAVE_UNISTD_H -I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
-DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib
-DVTK_USE_CONTRIB  -I/usr/local/include -DVTK_USE_OGLR
-I/usr/X11R6/include -I./../common -I/usr/local/tk8.0.5/generic
-I/usr/local/tcl8.0.5/generic   -c vtkMultiThreader.cxx -o
vtkMultiThreader.o
vtkMultiThreader.cxx: In method `void
vtkMultiThreader::SingleMethodExecute()':
vtkMultiThreader.cxx:284: `pthread_attr_t' undeclared (first use this
function)
vtkMultiThreader.cxx:284: (Each undeclared identifier is reported only
once
vtkMultiThreader.cxx:284: for each function it appears in.)
vtkMultiThreader.cxx:284: parse error before `;'
vtkMultiThreader.cxx:289: warning: implicit declaration of function `int
pthread_attr_init(...)'
vtkMultiThreader.cxx:289: `attr' undeclared (first use this function)
vtkMultiThreader.cxx:290: warning: implicit declaration of function `int
pthread_attr_setscope(...)'
vtkMultiThreader.cxx:290: `PTHREAD_SCOPE_PROCESS' undeclared (first use
this function)
vtkMultiThreader.cxx:304: warning: implicit declaration of function `int
pthread_create(...)'
vtkMultiThreader.cxx:323: warning: implicit declaration of function `int
pthread_join(...)'
vtkMultiThreader.cxx: In method `void
vtkMultiThreader::MultipleMethodExecute()':
vtkMultiThreader.cxx:470: `pthread_attr_t' undeclared (first use this
function)
vtkMultiThreader.cxx:470: parse error before `;'
vtkMultiThreader.cxx:475: `attr' undeclared (first use this function)
vtkMultiThreader.cxx:476: `PTHREAD_SCOPE_PROCESS' undeclared (first use
this function)
vtkMultiThreader.cxx: In method `int vtkMultiThreader::SpawnThread(void *
(*)(void *), void *)':
vtkMultiThreader.cxx:583: `pthread_attr_t' undeclared (first use this
function)
vtkMultiThreader.cxx:583: parse error before `;'
vtkMultiThreader.cxx:588: `attr' undeclared (first use this function)
vtkMultiThreader.cxx:589: `PTHREAD_SCOPE_PROCESS' undeclared (first use
this function)
make[1]: *** [vtkMultiThreader.o] Error 1
make[1]: Leaving directory `/usr/local/vtk2.4/common'
make: *** [build_common] Error 2

Do I have to delete the -DVTK_USE_PTHREADS in system.make?

Any help will be wellcome.

T.I.A. Miguel.

            ________________________________________________________
  _________(_                                                      _)_________
  \········(_   Miguel Ángel Martín Fernández                      _)········/
   \·······(_   ETSI Telecomunicación, Universidad de Valladolid   _)·······/
    \······(_   Campus Miguel Delibes, Camino del Cementerio, s/n  _)······/
     )·····(_   e-mail: miguel at atenea.tel.uva.es                   _)·····(
    /······(_   Tfno: +34-983-423000 Ext. 25548                    _)······\
   /·······(________________________________________________________)·······\
  /__________)                                                 (_____________\
                                                        

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list