Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#23982 closed defect (duplicate)

dcmtk 3.5.4_p2 doesn't build

Reported by: dershow Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: guidolorenz@…
Port: dcmtk

Description

I just tried to install dcmtk and it doesn't build. Instead I get errors:

sudo port install dcmtk
Password:
--->  Computing dependencies for dcmtk
--->  Fetching dcmtk
--->  Attempting to fetch dcmtk-3.5.4.tar.gz from http://distfiles.macports.org/dcmtk
--->  Verifying checksum(s) for dcmtk
--->  Extracting dcmtk
--->  Applying patches to dcmtk
--->  Configuring dcmtk
--->  Building dcmtk
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_dcmtk/work/dcmtk-3.5.4" && /usr/bin/make all " returned error 2
Command output: (cd config && /usr/bin/make ARCH="" DESTDIR="" all)
make[1]: Nothing to be done for `all'.
(cd ofstd && /usr/bin/make ARCH="" DESTDIR="" all)
(cd include; /usr/bin/make ARCH="" all)
make[2]: Nothing to be done for `all'.
(cd libsrc; /usr/bin/make ARCH="" all)
/usr/bin/g++-4.2	-DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include   \
		-I/opt/local/include -O -I/opt/local/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 -O2 -arch x86_64 oflist.cc
/usr/bin/g++-4.2	-DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include   \
		-I/opt/local/include -O -I/opt/local/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 -O2 -arch x86_64 ofstring.cc
In file included from /usr/include/sys/attr.h:42,
                 from /usr/include/sys/mount.h:76,
                 from /usr/include/libc.h:45,
                 from ../include/dcmtk/ofstd/ofstdinc.h:320,
                 from ../include/dcmtk/ofstd/ofstring.h:61,
                 from ofstring.cc:47:
/usr/include/sys/ucred.h:91: error: 'u_long' does not name a type
/usr/include/sys/ucred.h:137: error: 'u_int' does not name a type
In file included from /usr/include/sys/mount.h:76,
                 from /usr/include/libc.h:45,
                 from ../include/dcmtk/ofstd/ofstdinc.h:320,
                 from ../include/dcmtk/ofstd/ofstring.h:61,
                 from ofstring.cc:47:
/usr/include/sys/attr.h:77: error: 'u_short' does not name a type
/usr/include/sys/attr.h:430: error: 'u_long' does not name a type
/usr/include/sys/attr.h:442: 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

Error: Status 1 encountered during processing.

I am using the newest macports, on a Macbook Pro running 10.6.2. Any ideas about the cause or a solution?

Change History (3)

comment:1 Changed 14 years ago by guidolorenz@…

This is (most probably) a duplicate of #22840.

I already attached a fix for that ticket, but it has not been committed yet.

comment:2 Changed 14 years ago by raimue (Rainer Müller)

Resolution: duplicate
Status: newclosed

comment:3 Changed 14 years ago by dershow

Yes, your fix worked. I had done a search for dcmtk in tickets and that one didn't show up.

Thanks,

--Adam

Note: See TracTickets for help on using tickets.