You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "William R. Mattil" <wr...@newton.irngtx.tel.gte.com> on 2000/12/05 22:50:00 UTC
Problem Building Mod_Perl 1.24_01 under AIX and gcc
Hello,
If anyone could help with this it would be greatly appreciated.
Email response would be preferred. Thanks
IBM RISC 6000 gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
apache_1.3.14
mod_perl-1.24_01
perl is perl-5.6.0
mod_perl -
$ cd mod_perl-1.XX
$ perl Makefile.PL \
APACHE_SRC=../apache_1.3.X/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1 \
[...]
$ make
$ make test
$ make install
$ cd apache_1.3.X
$ ./configure \
--prefix=/path/to/install/of/apache \
--activate-module=src/modules/perl/libperl.a \
[...]
$ make
results in:
cd ..; gcc -DAIX=42 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-fno-strict-aliasing -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -I.
-I/usr/local/lib/perl5/5.6.0/aix/CORE -lm -o helpers/dummy
helpers/dummy.c -Xlinker
-bE:/usr/local/lib/perl5/5.6.0/aix/CORE/perl.exp -L/usr/local/lib
/usr/local/lib/perl5/5.6.0/aix/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.6.0/aix/CORE -lperl -lnsl -ldbm -ldl -lld -lm
-lc -lbsd -lPW -liconv -bE:./modules/perl/mod_perl.exp
gcc: installation problem, cannot exec `cpp': No such file or directory
gcc: file path prefix
`/usr/local/lib/gcc-lib/E:./modules/perl/mod_perl.exp/egcs-2.91.60/'
never used
make: The error code from the last command is 1.
Stop.
======== Error Output for sanity check ========
============= End of Error Report =============
Aborting!
Regards
Bill
--
William R. Mattil | Failure is not an Option ... It's bundled
Sr. System Aministrator | with all Microsoft Products
(972) 399-4106 |
Re: Problem Building Mod_Perl 1.24_01 under AIX and gcc
Posted by Jens-Uwe Mager <ju...@helios.de>.
On Tue, Dec 05, 2000 at 03:50:00PM -0600, William R. Mattil wrote:
> IBM RISC 6000 gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
> apache_1.3.14
> mod_perl-1.24_01
>
> perl is perl-5.6.0
>
>
> mod_perl -
>
> $ cd mod_perl-1.XX
> $ perl Makefile.PL \
> APACHE_SRC=../apache_1.3.X/src \
> DO_HTTPD=1 \
> USE_APACI=1 \
> PREP_HTTPD=1 \
> EVERYTHING=1 \
> [...]
> $ make
> $ make test
> $ make install
> $ cd apache_1.3.X
> $ ./configure \
> --prefix=/path/to/install/of/apache \
> --activate-module=src/modules/perl/libperl.a \
> [...]
> $ make
>
> results in:
>
>
> cd ..; gcc -DAIX=42 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_PERL
> -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -fno-strict-aliasing -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT
> -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -I.
> -I/usr/local/lib/perl5/5.6.0/aix/CORE -lm -o helpers/dummy
> helpers/dummy.c -Xlinker
> -bE:/usr/local/lib/perl5/5.6.0/aix/CORE/perl.exp -L/usr/local/lib
> /usr/local/lib/perl5/5.6.0/aix/auto/DynaLoader/DynaLoader.a
> -L/usr/local/lib/perl5/5.6.0/aix/CORE -lperl -lnsl -ldbm -ldl -lld -lm
> -lc -lbsd -lPW -liconv -bE:./modules/perl/mod_perl.exp
> gcc: installation problem, cannot exec `cpp': No such file or directory
> gcc: file path prefix
> `/usr/local/lib/gcc-lib/E:./modules/perl/mod_perl.exp/egcs-2.91.60/'
> never used
> make: The error code from the last command is 1.
You must compile all of perl, mod_perl and apache using the same
compiler. In your case perl was compiled using the IBM C compiler, and
the perl build procedure introduces compiler flags needed for mod_perl
that are doing something completely different with gcc, causing the
confusing error message.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: jum@helios.de