Hello all,
unfortunately due to time constraints I can not check if this fix is OK.
Cheers,
Bernd
Abe, Sumiko wrote:
> Hi,
>
> Thank you so much for all of your help. The following is the feedback of
> DCMTK compiling error.
>
> I checked some include files of system that looks like they are
> requesting the compile option of _DARWIN_C_SOURCE. The configure file in
> config directory has no this option. I modified the configure file as
> following:
>
> Original configuration:
> if test "${CXXFLAGS}set" = set ; then
> case "$CXX" in
> c++|g++|gcc)
> CXXFLAGS="-Wall $pedantic"
> CFLAGS="-Wall $pedantic"
> ;;
> cc++)
> CXXFLAGS="-Wall"
> CFLAGS="-Wall"
> ;;
> *)
> CXXFLAGS=""
> CFLAGS=""
> ;;
> esac
> fi
>
>
> Revised configuration:
> if test "${CXXFLAGS}set" = set ; then
> case "$CXX" in
> c++|g++|gcc)
> CXXFLAGS="-D_DARWIN_C_SOURCE -Wall $pedantic"
> CFLAGS="-D_DARWIN_C_SOURCE -Wall $pedantic"
> ;;
> cc++)
> CXXFLAGS="-D_DARWIN_C_SOURCE -Wall"
> CFLAGS="-D_DARWIN_C_SOURCE -Wall"
> ;;
> *)
> CXXFLAGS="-D_DARWIN_C_SOURCE"
> CFLAGS="-D_DARWIN_C_SOURCE"
> ;;
> esac
> fi
>
> After the modification as above, I can build the package successfully.
> Hope the feedback could be useful.
>
> Thank you again for all of your help!
>
> Sumiko
>
> -----Original Message-----
> From: Alexander Hansen [mailto:[email protected]]
> Sent: Friday, August 13, 2010 4:48 AM
> To: Abe, Sumiko
> Cc: Bernd Kuemmerlen; fink-users mailing list
> Subject: Re: [fink-core] DCMTK and xmedcon unstable package install...
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 8/12/10 5:32 PM, Abe, Sumiko wrote:
> > Sorry, I forgot to attach the log file.
> >
> >
> >
> > -----Original Message-----
> > From: Abe, Sumiko
> > Sent: Thursday, August 12, 2010 2:31 PM
> > To: 'Martin Costabel'
> > Cc: Fink Core Group; 'Bernd Kuemmerlen'
> > Subject: RE: [fink-core] DCMTK and xmedcon unstable package install...
> >
> > Hi Martin,
> >
> > Thank you so much for all of your great help.
> > The gzip package are built successfully. Also, I have built xmedcon
> too, it works on my macbook now, very happy, :-)
> >
> > But for DCMTK, not happy, :. It still could not be built...
> >
> > The following is the output error, and the attached if is the
> config.log from dcmtk.
> >
> > ................
> > c++ -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 -Wall oflist.cc
> > c++ -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 -Wall 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
> > ### 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-1002
> > (Reading database ... 25650 files and directories currently installed.)
> > Removing fink-buildlock-dcmtk-3.5.4-1002 ...
> > Failed: phase compiling: dcmtk-3.5.4-1002 failed
> >
> > Before reporting any errors, please run "fink selfupdate" and
> > try again. If you continue to have issues, please check to see if the
> > FAQ on fink's website solves the problem. If not, ask on the fink-users
> > or fink-beginners mailing lists, with a carbon copy to the maintainer:
> >
> > Bernd Kuemmerlen <[email protected]>
> >
> > Note that this is preferable to emailing the maintainer directly, since
> > most fink package maintainers do not have access to all possible
> > hardware and software configurations.
> >
> >
> > Sorry for interrupt you again,
> >
> > Sumiko
> >
>
> (moving from fink-core to fink-users, since the issue is not with a core
> package)
>
> (removing Martin, since this isn't his package, and it's a separate
> issue from all of the prior discussion)
>
> (for the maintainer's benefit, OS version is 10.6.3--we haven't heard
> yet whether 32-bit or 64-bit).
>
> (We generally prefer that people don't send log files to the list, but
> rather to individuals who specifically ask for them)
>
> I believe that one of the source header files (probably
> include/dcmtk/ofstd/ofstdinc.h) needs to be patched to have
>
> #include <sys/types.h>
>
> though I'm not sure, since normally such errors have shown up in 10.5 as
> well as 10.6, and in this case the package builds on 10.5.
> - --
> Alexander Hansen
> Fink User Liaison
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkxlMOcACgkQB8UpO3rKjQ+2NACfeU7HLKblJFu07Ni/Naoe5Qrn
> yPgAoKJls4HarAJCchMahr5YXNv5tPh5
> =K5hE
> -----END PGP SIGNATURE-----
>
> This message contains confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> contain viruses. The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a
> result of e-mail transmission.
>
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users