Having trouble with getting Apache::Request to build on AIX-5.2, gcc-3.3.3 mod_perl-1.29, looks like the Makemaker is passing the a -b argument without the required -Wl in front of it inside of the Request directory. (Also looks like there are symbols in a library being linked that aren't correct.)
modperl-1.29, libapreq-1.3, gcc-3.3.3, perl -V below [snip] ------------------------------------------- Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=aix, osvers=5.2.0.0, archname=aix uname='aix wiletl2-admin 2 5 0020685b4c00 ' config_args='-de -Dcc=gcc -Ubincompat5005 -Dprefix=/opt/omni/software/external/perl-5.8.3 -Dscriptdir=/opt/omni/software/external/perl-5.8.3/bin' hint=previous, 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='gcc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include -D_LARGE_FILES', optimize='-O', cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include -D_LARGE_FILES' ccversion='', gccversion='3.3.3', gccosandvers='aix5.2.0.0' 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='gcc', ldflags =' -Wl,-brtl -L/usr/local/lib -Wl,-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='-Xlinker -bE:/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp' cccdlflags=' ', lddlflags=' -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bI:$(PERL_INC)/perl.exp -Wl,-bE:$(BASEEXT).exp -Wl,-bnoentry -lc -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under aix Compiled at Mar 16 2004 15:45:22 @INC: /opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix /opt/omni/software/external/perl-5.8.3/lib/5.8.3 /opt/omni/software/external/perl-5.8.3/lib/site_perl/5.8.3/aix /opt/omni/software/external/perl-5.8.3/lib/site_perl/5.8.3 /opt/omni/software/external/perl-5.8.3/lib/site_perl --------------------------- perl Makefile.PL make all goes well until... ... (From the ./libapreq-1.3/Request Makefile invocation) gcc -c -I../c -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/modules/perl -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/include -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/regex -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/os/unix -I/opt/omni/software/external/openssl/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include -D_LARGE_FILES -O -DVERSION=\"1.3\" -DXS_VERSION=\"1.3\" "-I/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE" Request.c In file included from /opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.h:1807, from /omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/modules/perl/mod_perl.h:80, from Request.xs:41: /opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/handy.h:259:1: warning: "strEQ" redefined In file included from Request.xs:1: ../c/apache_request.h:63:1: warning: this is the location of the previous definition Running Mkbootstrap for Apache::Request () chmod 644 Request.bs rm -f ../blib/arch/auto/Apache/Request/Request.so LD_RUN_PATH="" gcc -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bI:/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp -Wl,-bE:Request.exp -Wl,-bnoentry -lc -L/usr/local/lib Request.o -bI:/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/mod_perl.exp -o ../blib/arch/auto/Apache/Request/Request.so -L/home/sysaat/.cpan/build/libapreq-1.3/Request/../blib/arch/auto/libapreq -lapreq gcc: `-b' must come at the start of the command line make: 1254-004 The error code from the last command is 1. ---------------------------------------------------- I deduce the -bI:/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/mod_perl.exp in ./Request/Makefile Is really a linker argument, and like a good guesser, changed -bI:/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/mod_perl.exp to -Wl,-bI:/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/mod_perl.exp now I get in ./Request, and restart my make [EMAIL PROTECTED]/home/sysaat/.cpan/build/libapreq-1.3/Request$make gcc -c -I../c -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/modules/perl -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/include -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/regex -I/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/os/unix -I/opt/omni/software/external/openssl/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include -D_LARGE_FILES -O -DVERSION=\"1.3\" -DXS_VERSION=\"1.3\" "-I/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE" Request.c In file included from /opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.h:1807, from /omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/include/modules/perl/mod_perl.h:80, from Request.xs:41: /opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/handy.h:259:1: warning: "strEQ" redefined In file included from Request.xs:1: ../c/apache_request.h:63:1: warning: this is the location of the previous definition Running Mkbootstrap for Apache::Request () chmod 644 Request.bs rm -f ../blib/arch/auto/Apache/Request/Request.so LD_RUN_PATH="" gcc -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bI:/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp -Wl,-bE:Request.exp -Wl,-bnoentry -lc -L/usr/local/lib Request.o -Wl,-bI:/omnitest/external/perl-5.8.3/lib/site_perl/5.8.3/aix/auto/Apache/mod_perl.exp -o ../blib/arch/auto/Apache/Request/Request.so -L/home/sysaat/.cpan/build/libapreq-1.3/Request/../blib/arch/auto/libapreq -lapreq ld: 0711-317 ERROR: Undefined symbol: .ap_setup_client_block ld: 0711-317 ERROR: Undefined symbol: .ap_should_client_block ld: 0711-317 ERROR: Undefined symbol: .ap_log_rerror ld: 0711-317 ERROR: Undefined symbol: .ap_pcalloc ld: 0711-317 ERROR: Undefined symbol: .ap_hard_timeout ld: 0711-317 ERROR: Undefined symbol: .ap_get_client_block ld: 0711-317 ERROR: Undefined symbol: .ap_kill_timeout ld: 0711-317 ERROR: Undefined symbol: .ap_find_path_info ld: 0711-317 ERROR: Undefined symbol: .ap_pstrndup ld: 0711-317 ERROR: Undefined symbol: .ap_make_dirstr_parent ld: 0711-317 ERROR: Undefined symbol: .ap_table_get ld: 0711-317 ERROR: Undefined symbol: .ap_push_array ld: 0711-317 ERROR: Undefined symbol: .ap_make_array ld: 0711-317 ERROR: Undefined symbol: .ap_table_do ld: 0711-317 ERROR: Undefined symbol: .ap_pstrcat ld: 0711-317 ERROR: Undefined symbol: .ap_palloc ld: 0711-317 ERROR: Undefined symbol: .ap_make_table ld: 0711-317 ERROR: Undefined symbol: .ap_getword ld: 0711-317 ERROR: Undefined symbol: .ap_table_add ld: 0711-317 ERROR: Undefined symbol: .ap_pfclose ld: 0711-317 ERROR: Undefined symbol: .ap_popenf ld: 0711-317 ERROR: Undefined symbol: .ap_pfdopen ld: 0711-317 ERROR: Undefined symbol: ap_null_cleanup ld: 0711-317 ERROR: Undefined symbol: .ap_register_cleanup ld: 0711-317 ERROR: Undefined symbol: .ap_getword_conf ld: 0711-317 ERROR: Undefined symbol: .ap_ind ld: 0711-317 ERROR: Undefined symbol: .ap_pstrdup ld: 0711-317 ERROR: Undefined symbol: ap_day_snames ld: 0711-317 ERROR: Undefined symbol: ap_month_snames ld: 0711-317 ERROR: Undefined symbol: .ap_psprintf ld: 0711-317 ERROR: Undefined symbol: .ap_table_unset ld: 0711-317 ERROR: Undefined symbol: .ap_table_set ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. --------------------------------------------- these look like apache symbols, and I'm missing a -L to an apache library, but I have no clue where. Any ideas? --Adrian ********************************************************************** This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you ********************************************************************** -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html