HTML-Parser - problems with make on AIX 5.3, perl 5.8.8

Posted on Thu Apr 12 18:43:04 2007 by zahid
problems with make on AIX 5.3, perl 5.8.8
Due to the DBD and DBI::Oracle requirements I had to recompile perl with the 32 bit flags. Here are details of Perl followed by the make error. So what 32 bit code can't be run in 64 bit mode, as you can see perl is compiled in 32 bit mode. Any help is appreciated.
root@server:/syshome/user/HTML-Parser-3.56=> perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=aix, osvers=5.3.0.0, archname=aix uname='aix eagle 3 5 00c96e1d4c00 ' config_args='-Duse32bitall' 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=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='xlc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias +-DUSE_NATIVE_DLOPEN -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong', optimize='-O', cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE +_DLOPEN -I/usr/local/include' ccversion='8.0.0.11', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='ld', ldflags =' -brtl -bdynamic -bmaxdata:0x80000000 -L/usr/local/lib -b32' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/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/local/lib/perl5/5.8.8/aix/COR +E/perl.exp' cccdlflags=' ', lddlflags=' -bhalt:4 -bexpall -G -bnoentry -lc -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under aix Compiled at Mar 21 2007 16:40:22 @INC: /usr/local/lib/perl5/5.8.8/aix /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/aix /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . root@server:/syshome/user/HTML-Parser-3.56=> root@server:/syshome/user/HTML-Parser-3.56=> perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for HTML::Parser root@server:/syshome/user/HTML-Parser-3.56=> make cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm cp Parser.pm blib/lib/HTML/Parser.pm cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm /usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "HTML::Parser", "DL_FUNCS +" => { }, "FUNCLIST" => [], "DL_VARS" => []);' /usr/bin/perl mkhctype >hctype.h /usr/bin/perl mkpfunc >pfunc.h /usr/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8 +.8/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c xlc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_ +NATIVE_DLOPEN -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"3.56\" -DXS_V +ERSION=\"3.56\" "-I/usr/local/lib/perl5/5.8.8/aix/CORE" -DMARKED_SECTION Parser.c Running Mkbootstrap for HTML::Parser () chmod 644 Parser.bs rm -f blib/arch/auto/HTML/Parser/Parser.so ld -bhalt:4 -bexpall -G -bnoentry -lc -L/usr/local/lib Parser.o -o blib/arch/auto/HTML/Pa +rser/Parser.so ld: 0711-738 ERROR: Input file Parser.o: XCOFF32 object files are not allowed in 64-bit mode. make: 1254-004 The error code from the last command is 8. Stop.
Write a response