terry
Alan Burlison wrote:
However, having said that this is Sybase brokenness, this still obviously needs a fix. The reason I added '-z ignore' in the first place was to make perl load a little faster - when building perl we use the same set of libraries on the link line for both the perl executable and libperl.so, but they have different dependencies
:
As a short-term workaround, you can edit Config.pm and remove '-z ignore' from ccdlflags and lddlflags
The attached patch should do the trick, it just removes the section that does the '-z ...' checking from the Solaris hints file. I've tested this with 5.8.1 & Sybase and it works, I assume it will fix the Informix problem as well.
It would be really helpful if anyone who has seen this problem checks the patch works for them, and then it can be given the all-clear to be integrated into 5.8.2-to-be. Thanks!
------------------------------------------------------------------------
*** hints/solaris_2.sh.orig Tue Oct 21 12:17:27 2003
--- hints/solaris_2.sh Tue Oct 21 12:17:48 2003
***************
*** 334,353 ****
fi
fi
- # Check to see if the selected compiler and linker
- # support the -z ignore, -z lazyload and -z combreloc flags.
- echo "int main() { return(0); } " > try.c
- zflgs=''
- for zf in ignore lazyload combreloc; do
- if ${cc:-cc} -o try try.c -z $zf > /dev/null 2>&1; then
- zflgs="$zflgs -z $zf"
- fi
- done
- if test -n "$zflgs"; then
- ccdlflags="$ccdlflags $zflgs"
- lddlflags="$lddlflags -G $zflgs"
- fi
- # as --version or ld --version might dump core.
rm -f try try.c core
EOCBU
--- 334,339 ----
