in reply to make fails during XML::Parser installation

Sage advice from 0711-317 ERROR: Undefined symbol: .XML_Parse
You're going to have to be more specific if you want help. In particular, I need the exact commands you use to build both expat and XML-Parser, and anything else you're doing to the filesystem (ie moving/copying files around, etc).

Also include version numbers for your working configuration, and whether or not there's a pre-existing system expat installation lying around (it looks like it).

  • Comment on Re: make fails during XML::Parser installation

Replies are listed 'Best First'.
Re^2: make fails during XML::Parser installation
by Anonymous Monk on Apr 28, 2009 at 13:06 UTC
    Here's some more information
  • Expat version 2.0.1
  • Commands used for expat installation
  • ./configure CFLAGS="+DD64"
  • make install
  • For Installting XML Parser
  • perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
  • make ---- fails with undefined symbol
  • # perl -V Summary of my perl5 (revision 5.0 version 8 subversion 2) configuratio +n: Platform: osname=aix, osvers=5.2.0.0, archname=aix-thread-multi-64all uname='aix animals 2 5 000709cf4c00 ' config_args='' hint=previous, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=de fine useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURC +E -qmaxmem =-1 -qnoansialias -DUSE_NATIVE_DLOPEN - +DNEED_PTHREAD_INIT -q64 -DUSE_64_BIT_ALL -q64', optimize='-O', cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem= +-1 -qnoans ialias -DUSE_NATIVE_DLOPEN -DNEED_PTHRE +AD_INIT' ccversion='5.0.2.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', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize =8 alignbytes=8, prototype=define Linker and Libraries: ld='ld', ldflags ='-brtl -b64' libpth=/lib /usr/lib /usr/ccs/lib libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc_r -lb +sd perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc_r -lbsd libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:/usr/op +t/perl5/li b64/5.8.2/aix-thread-multi-64all/CORE/p +erl.exp' cccdlflags=' ', lddlflags='-b64 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/p +erl.exp -b E:$(BASEEXT).exp -bnoentry -lpthreads - +lc_r' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT USE_6 +4_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156) SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 REGCOMP0 - buffer overflow in regexp engine for UTF8 (CVE-2007 +-5116) Built under aix Compiled at Dec 6 2007 09:57:38 @INC: /usr/opt/perl5/lib64/5.8.2/aix-thread-multi-64all /usr/opt/perl5/lib64/5.8.2 /usr/opt/perl5/lib64/site_perl/5.8.2/aix-thread-multi-64all /usr/opt/perl5/lib64/site_perl/5.8.2 /usr/opt/perl5/lib64/site_perl .
      Please also show complete output from perl Makefile.PL ... and make
      • Output of make install for expat 2.0.1
      • # make install /bin/sh ./conftools/mkinstalldirs /usr/local/lib /usr/local/in +clude mkdir /usr/local/lib mkdir /usr/local/include /bin/sh ./libtool --mode=install conftools/install-sh -c libex +pat.la /usr/local/lib/libexpat.la conftools/install-sh -c .libs/libexpat.a /usr/local/lib/libexpat.a conftools/install-sh -c .libs/libexpat.lai /usr/local/lib/libexpat.la ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LIBPATH' environment variable during execution - use the `-Wl,-blibpath:LIBDIR:/usr/vac/lib:/usr/lib:/lib ' linker + flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- for FN in ./lib/expat.h ./lib/expat_external.h ; do conftools/ +install-sh -c -m 644 $FN /usr/local/include ; done /bin/sh ./conftools/mkinstalldirs /usr/local/bin /usr/local/ma +n/man1 mkdir /usr/local/man mkdir /usr/local/man/man1 /bin/sh ./libtool --mode=install conftools/install-sh -c xmlwf +/xmlwf /usr/local/bin/xmlwf conftools/install-sh -c xmlwf/.libs/xmlwf /usr/local/bin/xmlwf conftools/install-sh -c -m 644 ./doc/xmlwf.1 /usr/local/man/ma +n1
      • Output of Perl Makefile
      • # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local +/include Warning: prerequisite LWP 0 not found. Writing Makefile for XML::Parser::Expat Writing Makefile for XML::Parser