So of course you make me READ!!! Hmm, looks like the args are identical, but looks 
like the calls to the loader aren't getting thru, and somehow gcc is getting ahold of 
a -b opt....

so I went down the apaci path and found this

[snip]
[EMAIL PROTECTED]/omnitest/ext-tools/sources/src/mod_perl-1.29/apaci$make libperl.so
        rm -f libperl.so
        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:mod_perl.exp -Wl,-bnoentry -lc -L/usr/local/lib -Xlinker 
-bI:/tmp/apache/libexec/httpd.exp -o libperl.so mod_perl.lo perlxsi.lo perl_config.lo 
perl_util.lo perlio.lo mod_perl_opmask.lo  Apache.lo Constants.lo Connection.lo 
Server.lo -Xlinker 
-bE:/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp 
-bE:/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp  -Wl,-brtl 
-L/usr/local/lib -Wl,-b32 
/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/auto/DynaLoader/DynaLoader.a 
-L/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE -lperl -lbind -lnsl -ldl 
-lld -lm -lcrypt -lc -lbsd
gcc: `-b' must come at the start of the command line
make: 1254-004 The error code from the last command is 1.


looks like the 

-bE:/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp

line is getting passed twice to -Xlinker (in the apaci/libperl.so build attempt, and 
below), gonna try to see if I can figure out how to hack that out in the apaci 
instance and see what happens.

--Adrian

> -----Original Message-----
> From: Stas Bekman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 24, 2004 6:12 PM
> To: Terranova, Adrian (Card Services)
> Cc: [EMAIL PROTECTED]
> Subject: Re: compiling woes on aix-5.2 with gcc-3.3.3
> 
> 
> [EMAIL PROTECTED] wrote:
> > BTW - Was just reading support... sorry I didn't include my 
> official perl snippets.
> 
> Looks like you have used the same gcc version to compile 
> apache/perl/mod_perl, 
> which is good.
> 
> mod_perl uses whatever flags perl has used to compile itself, 
> you can see 
> below that those flags in the output of perl -V
> 
> >   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-stric
> > t-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 
> -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'
> 
> [...]
> 
> >>======== Error Output for sanity check ========
> >>        cd ..; gcc  -DAIX=520 -U__STR__ -DAIX_BIND_PROCESSOR 
> >>-DMOD_PERL -DUSE_PE
> >>RL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
> >>-DUSE_NATIVE_DLOPEN -fno-s
> >>trict-aliasing -I/usr/local/include -D_LARGE_FILES 
> >>-DUSE_HSREGEX -DUSE_EXPAT -I.
> >>/lib/expat-lite -DNO_DL_NEEDED -D_ALL_SOURCE -D_ANSI_C_SOURCE 
> >>-D_POSIX_SOURCE -D
> >>USE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include 
> >>-D_LARGE_FILES -DMOD
> >>_PERL -I. 
> >>-I/opt/omni/software/external/perl-5.8.3/lib/5.8.3/aix/CORE 
>  -lm -lpth
> >>read  -o helpers/dummy helpers/dummy.c  `perl 
> >>/omnitest/ext-tools/sources/src/mo
> >>d_perl-1.29/src/modules/perl/ldopts  ` -Xlinker 
> >>-bE:/opt/omni/software/external/
> >>perl-5.8.3/lib/5.8.3/aix/CORE/perl.exp 
> >>-bE:/opt/omni/software/external/perl-5.8.
> >>3/lib/5.8.3/aix/CORE/perl.exp  -Wl,-brtl -L/usr/local/lib 
> >>-Wl,-b32 /opt/omni/sof
> >>tware/external/perl-5.8.3/lib/5.8.3/aix/auto/DynaLoader/DynaLo
> >>ader.a -L/opt/omni
> >>/software/external/perl-5.8.3/lib/5.8.3/aix/CORE -lperl 
> >>-lbind -lnsl -ldl -lld -
> >>lm -lcrypt -lc -lbsd -Xlinker -bE:./modules/perl/mod_perl.exp
> >>gcc: `-b' must come at the start of the command line
> >>make: The error code from the last command is 1.
> 
> or do you see some extra flags that were added?
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 


**********************************************************************
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

Reply via email to