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.