You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Charlie Smith <Sm...@ldschurch.org> on 2003/02/20 20:48:12 UTC

sanity check problem: Help installing mod_perl 1.27 and apache 1.3.27

Am having problems as seen in the 'sanity check' below.
 
Am attempting to install  mod_perl 1.27 and Apache 1.3.27.
I'm also running perl 5.8 on solaris. gcc 2.95.

 
# perl Makefile.PL
Configure mod_perl with ../apache_1.3.27/src ? [y]
Shall I build httpd in ../apache_1.3.27/src for you? [y]
Appending mod_perl to src/Configuration
Using config file: /www/Apache/src/mod_perl-1.27/src/Configuration
Creating Makefile
 + configured for Solaris 280 platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
    o perl_module uses ConfigStart/End
      + mod_perl build type: OBJ
      + setting up mod_perl build environment
      + id: mod_perl/1.27
      + id: Perl/v5.8.0 (solaris) [perl]
      + adjusting Apache build environment
      + enabling Perl support for SSI (mod_include)
 + using builtin Expat
 + checking sizeof various data types
 + doing sanity check on compiler and options
cd ..; gcc  -DSOLARIS2=280 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing
-I/usr/local/include -I/opt/local/include  -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED -fno-strict-aliasing -I/usr/local/include -I/opt/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL -I.
-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE    -o helpers/dummy
helpers/dummy.c  `perl /www/Apache/src/mod_perl-1.27/src/modules/perl/ldopts  `
-lsocket -lnsl -lpthread  -Wl  -L/usr/local/lib -L/opt/local/lib 
/usr/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm
-lc
cc1: Invalid option `-Wl'
cc1: Invalid option `-Wl'
*** Error code 1
make: Fatal error: Command failed for target `dummy'
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
 
======== Error Output for sanity check ========
cd ..; gcc  -DSOLARIS2=280 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing
-I/usr/local/include -I/opt/local/include  -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED -fno-strict-aliasing -I/usr/local/include -I/opt/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL -I.
-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE    -o helpers/dummy
helpers/dummy.c  `perl /www/Apache/src/mod_perl-1.27/src/modules/perl/ldopts  `
-lsocket -lnsl -lpthread  -Wl  -L/usr/local/lib -L/opt/local/lib 
/usr/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm
-lc
cc1: Invalid option `-Wl'
cc1: Invalid option `-Wl'
*** Error code 1
make: Fatal error: Command failed for target `dummy'
============= End of Error Report =============
 
 Aborting!
PerlDispatchHandler.........disabled (enable with PERL_DISPATCH=1)
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..disabled (enable with PERL_POST_READ_REQUEST=1)
PerlTransHandler............disabled (enable with PERL_TRANS=1)
PerlHeaderParserHandler.....disabled (enable with PERL_HEADER_PARSER=1)
PerlAccessHandler...........disabled (enable with PERL_ACCESS=1)
PerlAuthenHandler...........disabled (enable with PERL_AUTHEN=1)
PerlAuthzHandler............disabled (enable with PERL_AUTHZ=1)
PerlTypeHandler.............disabled (enable with PERL_TYPE=1)
PerlFixupHandler............disabled (enable with PERL_FIXUP=1)
PerlHandler.................enabled
PerlLogHandler..............disabled (enable with PERL_LOG=1)
PerlInitHandler.............disabled (enable with PERL_INIT=1)
PerlCleanupHandler..........disabled (enable with PERL_CLEANUP=1)
PerlRestartHandler..........disabled (enable with PERL_RESTART=1)
PerlStackedHandlers.........disabled (enable with PERL_STACKED_HANDLERS=1)
PerlMethodHandlers..........disabled (enable with PERL_METHOD_HANDLERS=1)
PerlDirectiveHandlers.......disabled (enable with PERL_DIRECTIVE_HANDLERS=1)
PerlTableApi................disabled (enable with PERL_TABLE_API=1)
PerlLogApi..................disabled (enable with PERL_LOG_API=1)
PerlUriApi..................disabled (enable with PERL_URI_API=1)
PerlUtilApi.................disabled (enable with PERL_UTIL_API=1)
PerlFileApi.................disabled (enable with PERL_FILE_API=1)
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................disabled (enable with PERL_SECTIONS=1)
 
PerlSSI.....................disabled (enable with PERL_SSI=1)
 
Will run tests as User: 'nobody' Group: 'other'
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl
#

 

------------------------------------------------------------------------------
This message may contain confidential information, and is intended only for the use of the individual(s) to whom it is addressed.


==============================================================================

Re: sanity check problem: Help installing mod_perl 1.27 and apache 1.3.27

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Thu, 20 Feb 2003, Charlie Smith wrote:

> Am having problems as seen in the 'sanity check' below.
[snip]
> -lsocket -lnsl -lpthread  -Wl  -L/usr/local/lib -L/opt/local/lib 
> /usr/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a
> -L/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm
> -lc
> cc1: Invalid option `-Wl'
> cc1: Invalid option `-Wl'

The -Wl argument should be followed by a comma and option(s) which gcc
will pass to the linker.  Your -Wl has no option(s) after it.  This is
not good.  The configuration process does some substitutions on the Wl
argument depending on the platform etc.  Maybe the substitution isn't
working right on your platform.

In an earlier post you said that you'd had to add to your path to get
'make' to run.  That's weird, makes me think your setup is whacky.
Have you used make, gcc etc. to compile anything else on your system?

Have you tried to build Apache stand-alone (without mod_perl)?

Have you read the INSTALL documents for anything that might be mentioned
about your platform?

73,
Ged.