Subject: | Make Fails on AIX 5.1 with xlc_r Compiler |
Upon trying to install XML-Parser Version 2.34 with expat Version 1.95.7, I recieve many "Undefined Symbol" errors.
Here are the details:
OS: AIX
OS Level: 5100-04
Compiler: IBM C for AIX 6.0
xlc_r version (lslpp -l vac.C):
Fileset Level State Description
-------------------------------------------------------------------
Path: /usr/lib/objrepos
vac.C 6.0.0.4 COMMITTED C for AIX Compiler
Path: /etc/objrepos
vac.C 6.0.0.4 COMMITTED C for AIX Compiler
bind_cmds version (lslpp -l bos.rte.bind_cmds):
Fileset Level State Description
-----------------------------------------------------------------
Path: /usr/lib/objrepos
bos.rte.bind_cmds 5.1.0.53 COMMITTED Binder and Loader Commands
LIBPATH=/usr/lib:/lib:/usr/vac/lib
Perl -V Output:
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=aix, osvers=5.1.0.0, archname=aix-64all
uname='aix ganymede 1 5 000c0c6a4c00 '
config_args='-es -Duse64bitall -Dcc=xlc_r -Dprefix=/usr -Dlibpath=/lib /usr/lib /usr/ccs/lib -Dlocincpth=/opt/freeware/include -Ulocincpth =Uinstallusrbinperl'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='xlc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -q64 -DUSE_64_BIT_ALL -q64',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN'
ccversion='6.0.0.0', gccversion='', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld', ldflags ='-brtl -L/usr/local/lib -q64 -b64'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib /usr/vac/lib
libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lc -lbsd
perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lc -lbsd
libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -bE:/usr/lib/perl5/5.8.1/aix-64all/CORE/perl.exp'
cccdlflags=' ', lddlflags='-b64 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lc -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
Built under aix
Compiled at Oct 21 2003 16:09:54
@INC:
/usr/lib/perl5/5.8.1/aix-64all
/usr/lib/perl5/5.8.1
/usr/lib/perl5/site_perl/5.8.1/aix-64all
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl
.
XML-Parser Make Output:
/tmp/XML-Parser-2.34>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
/tmp/XML-Parser-2.34>make
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "XML::Parser", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "XML::Parser::Expat", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
/usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
xlc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -q64 -DUSE_64_BIT_ALL -q64 -O -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" "-I/usr/lib/perl5/5.8.1/aix-64all/CORE" Expat.c
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 Expat.bs
rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
LD_RUN_PATH="" ld -b64 -bhalt:4 -bM:SRE -bI:/usr/lib/perl5/5.8.1/aix-64all/CORE/perl.exp -bE:Expat.exp -bnoentry -lc -L/usr/local/lib Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.so -lexpat
ld: 0711-317 ERROR: Undefined symbol: .XML_Parse
ld: 0711-317 ERROR: Undefined symbol: .XML_SetNamespaceDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetElementHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetUnknownEncodingHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetEndCdataSectionHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetStartCdataSectionHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_GetInputContext
ld: 0711-317 ERROR: Undefined symbol: .XML_GetCurrentByteCount
ld: 0711-317 ERROR: Undefined symbol: .XML_ErrorString
ld: 0711-317 ERROR: Undefined symbol: .XML_GetSpecifiedAttributeCount
ld: 0711-317 ERROR: Undefined symbol: .XML_GetCurrentByteIndex
ld: 0711-317 ERROR: Undefined symbol: .XML_GetCurrentColumnNumber
ld: 0711-317 ERROR: Undefined symbol: .XML_GetCurrentLineNumber
ld: 0711-317 ERROR: Undefined symbol: .XML_GetErrorCode
ld: 0711-317 ERROR: Undefined symbol: .XML_SetDefaultHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetDefaultHandlerExpand
ld: 0711-317 ERROR: Undefined symbol: .XML_DefaultCurrent
ld: 0711-317 ERROR: Undefined symbol: .XML_GetBase
ld: 0711-317 ERROR: Undefined symbol: .XML_SetBase
ld: 0711-317 ERROR: Undefined symbol: .XML_SetXmlDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetEndDoctypeDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetStartDoctypeDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetAttlistDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetElementDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetEntityDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetExternalEntityRefHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetNotationDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetUnparsedEntityDeclHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetCommentHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetProcessingInstructionHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_SetCharacterDataHandler
ld: 0711-317 ERROR: Undefined symbol: .XML_ParserFree
ld: 0711-317 ERROR: Undefined symbol: .XML_ParserCreate_MM
ld: 0711-317 ERROR: Undefined symbol: .XML_SetUserData
ld: 0711-317 ERROR: Undefined symbol: .XML_SetParamEntityParsing
ld: 0711-317 ERROR: Undefined symbol: .XML_ExternalEntityParserCreate
ld: 0711-317 ERROR: Undefined symbol: .XML_GetBuffer
ld: 0711-317 ERROR: Undefined symbol: .XML_ParseBuffer
ld: 0711-317 ERROR: Undefined symbol: .XML_SetCdataSectionHandler
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.