Linking Error: hidden symbol ... is referenced by DSO

The following error was reported when I was trying to install the k-correction and photo-z package from http://cosmo.nyu.edu/~mb144/kcorrect/

on a sgi altix 64-bit server with gnu-linux system:

/usr/bin/ld: /opt/kcorrect/bin/k_test_filter: hidden symbol `__modsi3' in /usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/libgcc.a(__modsi3.oS) is referenced by DSO
collect2: ld returned 1 exit status
make[1]: *** [/opt/kcorrect/bin/k_test_filter] Error 1

while it passes without problem on my local ubuntu 8.10 system.

It seems to be a problem with the linker or gcc library version. Simply modifying the makefile to use gcc as the linker solves the problem.

For example, modify $KCORRECT_DIR/bin/kevilmake to add the following line at the beggining:

             LD=gcc

and then follow the standard steps on the website.