FAQ #15: Compiling DCMTK on Unixware

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Message
Author
Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1435
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

FAQ #15: Compiling DCMTK on Unixware

#1 Post by Marco Eichelberg »

:?: I want to use DCMTK on Unixware. Is there anything I should know about?

:!: Yes, we received many useful remarks about compiling DCMTK on Unixware from Wolfgang Rapp <w1 dot rapp at von dot ulm dot de>.
  1. If you want your Unixware binaries to run on all Unixware 2.x systems, you should compile on Unixware 2.0.x. Compiling on 2.1.x will result in binaries that are not backwards compatible with 2.0.x.
  2. The following lines will configure DCMTK for Unixware and the standard CC (the examples are for csh, change appropriately for use with sh):

    Code: Select all

    setenv LD_RUN_PATH /opt/lib
    setenv CFLAGS   -I/usr/include -I/opt/include -I/usr/X/include -I/usr/ucbinclude
    setenv CPPFLAGS -I/usr/include -I/opt/include -I/usr/X/include -I/usr/ucbinclude
    setenv LIBS -L/opt/lib -lsocket -lnsl -L/usr/ucblib -lucb
    ./configure
  3. Configure may be unable to find the system functions memcmp, memcpy and memset. You should make sure that the file "config/include/config.h", which is created during the configure process, contains:

    Code: Select all

    #define HAVE_MEMCMP 1
    #define HAVE_MEMCPY 1
    #define HAVE_MEMSET 1
  4. The Makefiles generated by configure require GNU Make. This is available for Unixware in pkgadd format at ftp://ftp.freebird.org/
And here some comments for more advanced users:
  • DCMTK on Unixware requires some BSD functions from "/usr/ucblib/libucb.a" and some include files from /usr/ucbinclude. At least on Unixware 2.0.3 you should be careful because readdir() in libucb.a is known to be defective and there are conflicts between the /usr/include and /usr/ucbinclude versions of stdio.h, unistd.h and strings.h
  • All versions of libtool for Unixware (at least up to version 1.2) are unable to generate shared libraries. A patch for libtool is available on request from Wolfgang Rapp <w1 dot rapp at von dot ulm dot de>.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest