Error compiling DCMTK

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
DICOMNICO
Posts: 12
Joined: Thu, 2008-04-24, 09:22

Error compiling DCMTK

#1 Post by DICOMNICO »

Hi, I'm compiling DCMTK libraries under MAC OS X using fink package.
The library run until this error appear on the screen:

cd config && make ARCH="" DESTDIR="" all)
make[1]: Nothing to be done for `all'.
(cd ofstd && make ARCH="" DESTDIR="" all)
(cd include; make ARCH="" all)
make[2]: Nothing to be done for `all'.
(cd libsrc; make ARCH="" all)
g++-4.0 -DHAVE_CONFIG_H -DNDEBUG -c -I. -I. -I../include -I../../config/include \
-I/sw/include -O -I/sw/include/libxml2 -I/sw/include -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L oflist.cc
g++-4.0 -DHAVE_CONFIG_H -DNDEBUG -c -I. -I. -I../include -I../../config/include \
-I/sw/include -O -I/sw/include/libxml2 -I/sw/include -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L ofstring.cc
/usr/include/bsm/audit.h:224: error: expected ';' before '*' token
/usr/include/bsm/audit.h:234: error: expected ';' before '*' token
/usr/include/sys/ucred.h:90: error: 'u_long' does not name a type
/usr/include/sys/ucred.h:130: error: 'u_int' does not name a type
/usr/include/sys/attr.h:75: error: 'u_short' does not name a type
/usr/include/sys/attr.h:411: error: 'u_long' does not name a type
/usr/include/sys/attr.h:423: error: 'u_char' does not name a type
make[2]: *** [ofstring.o] Error 1
make[1]: *** [libsrc-all] Error 2
make: *** [ofstd-all] Error 2
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-dcmtk-3.5.4-1001
(Lettura del database ... 8667 file e directory attualmente installati.)
Rimozione di fink-buildlock-dcmtk-3.5.4-1001 ...
Failed: phase compiling: dcmtk-3.5.4-1001 failed

What can I do? Thank you for your answers and sorry for my english!!

DICOMNICO
Posts: 12
Joined: Thu, 2008-04-24, 09:22

#2 Post by DICOMNICO »

I red the topic below but I can't solve the problem...someone can help me?

Michael Onken
DCMTK Developer
Posts: 2051
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#3 Post by Michael Onken »

Hi,

add to the C flags and C++ compiler flags in dcmtk/config/Makefile.def the following: -D_DARWIN_C_SOURCE

and DCMTK (current snapshot) compiles fine on Mac OS X 10.5.5 using gcc 4.0.1. I will add a corresponding configure test during the next days.
Regards,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest