Skip to main content.
home | support | download

Back to List Archive

compile 2.2.3 perl module on Mac OS X

From: Peter Karman <karman(at)not-real.cray.com>
Date: Mon Sep 29 2003 - 22:45:23 GMT
Hello.

I am trying to compile the Perl module for 2.2.3 on Mac OS X. Yes, 
before you ask, I know that the 2.4 version is preferred. For production 
reasons, I am still using 2.2.3 on all my OSes at present.

swish-e and zlib compile just fine under Mac OS 10.2.8 with the latest 
Dev tools, including the gcc 3.3 update from August.

However, the perl make fails. It appears to be a ld problem. Even when I 
set LD_RUN_PATH explicitly to find the zlib library, I get the same 
error about Undefined symbols. I'm guessing it's just not finding the 
libz.a file, but I just don't know how to specify that more explicitly.

(FYI, I was just able to compile this with no problems on FreeBSD 5.1).

[mh-dhcp-172-31-20-95:swishe_compile/swish-e-2.2.3/perl] root# make
LD_RUN_PATH="/tmp/swishe_compile/lib:/private/tmp/swishe_compile/swish-e-2.2.3/perl/../src" 
cc -o blib/arch/auto/SWISHE/SWISHE.bundle  -L/tmp/swishe_compile/lib 
SWISHE.o    -L/private/tmp/swishe_compile/swish-e-2.2.3/perl/../src 
-lswish-e -lz
ld: Undefined symbols:
_main
_PL_curpad
_PL_markstack_max
_PL_markstack_ptr
_PL_na
_PL_op
_PL_stack_base
_PL_stack_max
_PL_stack_sp
_PL_sv_undef
_PL_sv_yes
_Perl_av_push
_Perl_croak
_Perl_form
_Perl_hv_store
_Perl_markstack_grow
_Perl_mg_set
_Perl_newAV
_Perl_newHV
_Perl_newRV_noinc
_Perl_newSViv
_Perl_newSVpv
_Perl_newXS
_Perl_stack_grow
_Perl_sv_2iv
_Perl_sv_2mortal
_Perl_sv_2pv
_Perl_sv_newmortal
_Perl_sv_setiv
_Perl_sv_setpv
_perl_get_sv
make: *** [blib/arch/auto/SWISHE/SWISHE.bundle] Error 1

-- 
Peter Karman - Software Publications Programmer - Cray Inc
phone: 651-605-9009 - mailto:karman@cray.com
Received on Mon Sep 29 22:45:41 2003