FAQ #11: configure error: C compiler cannot create executables [IRIX 6]

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 #11: configure error: C compiler cannot create executables [IRIX 6]

#1 Post by Marco Eichelberg »

:?: I am trying to compile DCMTK on a SGI IRIX 6.x machine with gcc 2.7.2. The configure script terminates with the following error messsage:

Code: Select all

checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem:
C compiler cannot create executables.
The "dcmtk/config/config.log" file contains:

Code: Select all

configure:747: gcc -o conftest    conftest.c  1>&5
collect2: ld returned 1 exit status
ld: Segmentation fault.  Removing output file...
:!: You use a gcc compiled on a SGI IRIX 5.x machine. On IRIX 6.x the "-old_ld" must be specified on all compiler calls which involve linking. The flag must be specified before any "-o" option. We have created a shell script which patches "configure" to allow the -old_ld option to work. In the dcmtk directory, type:

Code: Select all

config/mvldflags config/configure
setenv LDFLAGS -old_ld
After that, configure will create appropriate Makefiles.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest