I am having problems when trying to compile DCMTK on a new machine. I have compiled previously on several other machines with no (or almost no) problems, but this time, there are a lot of new things, and I am unable to solve the problem.
My environment:
OS: Linux Fedora Core 4 - x86_64
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8 )
Linux kernel verion: 2.6.11-1.1369_FC4
Hardware platform: AMD Opteron 250 (HP Proliant DL385)
I download, untar and do the simplest compile (.configure, make, ...) without additional parameters.
When the system starts compiling, I obtain the following error:
Code: Select all
c++ -DHAVE_CONFIG_H -DNDEBUG -c -I. -I. -I../include -I../../config/include \
-O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall ofthread.cc
ofthread.cc: In member function ‘int OFThread::start()’:
ofthread.cc:148: error: invalid cast from type ‘pthread_t’ to type ‘long unsigned int’
ofthread.cc: In member function ‘int OFThread::join()’:
ofthread.cc:167: error: invalid cast from type ‘long unsigned int’ to type ‘pthread_t’
ofthread.cc: In member function ‘bool OFThread::equal(long unsigned int)’:
ofthread.cc:191: error: invalid cast from type ‘long unsigned int’ to type ‘pthread_t’
ofthread.cc:191: error: invalid cast from type ‘long unsigned int’ to type ‘pthread_t’
ofthread.cc: In static member function ‘static long unsigned int OFThread::self()’:
ofthread.cc:217: error: invalid cast from type ‘pthread_t’ to type ‘long unsigned int’
ofthread.cc: In member function ‘bool OFThread::equal(long unsigned int)’:
ofthread.cc:197: warning: control reaches end of non-void function
make[2]: *** [ofthread.o] Error 1
make[2]: Leaving directory `/usr/local/src/dcmtk-3.5.3/ofstd/libsrc'
make[1]: *** [libsrc-all] Error 2
make[1]: Leaving directory `/usr/local/src/dcmtk-3.5.3/ofstd'
make: *** [ofstd-all] Error 2
Thanks in advance,
José Antonio Pérez