On Mon, May 22, 2000 at 05:13:08PM -0500, Scott Thomason wrote:
> Greetings. I'm running into trouble compiling Connection.c under AIX4.3.2 using gcc.
>I get this output:
>
> cc -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
>-I/usr/opt/perl5/lib/5.00503/aix/CORE -DMOD_PERL_VERSION=\"1.24\"
>-DMOD_PERL_STRING_VERSION=\"mod_perl/1.24\" -I../..
>-I/usr/opt/perl5/lib/5.00503/aix/CORE -I../../os/unix -I../../include -DAIX=43
>-U__STR__ -DAIX_BIND_PROCESSOR -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE
>-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -DNO_DL_NEEDED
>-I/gcc/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/include -O2 -DUSE_STAT_CACHE
>-DSTAT_CACHE_SIZE=256 -DFAST_TIME -DBUFFERED_LOGS -DLOG_BUFSIZE=4000 -DNO_GRACEFUL
>`../../apaci` -c Connection.c
> cc: unrecognized option `-qmaxmem=16384'
> cc: unrecognized option `-qmaxmem=16384'
> Connection.xs: In function `XS_Apache__Connection_remote_ip':
> Connection.xs:107: incompatible types in assignment
>
> Anyone know how to fix this? I've been having a devil of a time compiling stuff
>under AIX, and I thought I was done slaying this dragon...
>
> As a secondary item, any idea how to get rid of that annoying "cc: unrecognized
>option `-qmaxmem=16384'" message?
You appear to have compiled part of your sources using xlc, and the
-qmaxmem flag is picked up from there and gcc barfs as it does not know
that flag. You will need to compile everything using he same compiler,
e.g. all with gcc or all with xlc. Especially perl modules need to use
the exactly same compiler and flags as used in compiling the main perl.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: [EMAIL PROTECTED]