Add these lines to the apache Configuration file in the src directory
EXTRA_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts`
and recompile.
Regards,
Gavin
-Original Message-
From: Scott Phan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 12, 2000 10:41 AM
To: [EMAIL PROTECTED]
Subject:Problem compiling with HPUX 11 64-bit OS
Help,
I'm trying to compile mod_perl on 64-bit HPUX 11. The following error
occurs during the make process:
cc -c -I./os/unix -I./include -DHPUX11 -Aa -D_HPUX_SOURCE -DUSE_HSREGEX -
DUSE_EXPAT -I./lib/expat-lite -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFI
LE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -DMOD_PERL modules.c
cc -c -I./os/unix -I./include -DHPUX11 -Aa -D_HPUX_SOURCE -DUSE_HSREGEX -
DUSE_EXPAT -I./lib/expat-lite -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFI
LE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae -DMOD_PERL buildmark.c
cc -DHPUX11 -Aa -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
-D_HPUX_SOURCE -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64 -Ae -DMOD_PERL\
-o httpd buildmark.o modules.o modules/perl/libperl.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a lib/expat-lite/libexpat.a `perl
/export/scottp/mod_perl-1.24/src/modules/perl/ldopts ` -lm -lpthread
/usr/ccs/bin/ld: Unsatisfied symbols:
dlclose (code)
dlopen (code)
dlerror (code)
dlsym (code)
gmake[1]: *** [target_static] Error 1
gmake[1]: Leaving directory `/export/scottp/apache_1.3.9/src'
gmake: *** [apache_httpd] Error 2
I have Apache 1.3.9 source code and 1.24 for mod_perl
The configuration flags are:
# perl Makefile.PL
Configure mod_perl with ../apache_1.3.9/src ? [y]
Shall I build httpd in ../apache_1.3.9/src for you? [y]
Appending mod_perl to src/Configuration
Using config file: /export/scottp/mod_perl-1.24/src/Configuration
Creating Makefile
+ configured for HP-UX 11 platform
+ setting C compiler to cc
+ setting C pre-processor to cc -E
+ checking for system header files
+ adding selected modules
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in support
Creating Makefile in regex
Creating Makefile in os/unix
Creating Makefile in ap
Creating Makefile in main
Creating Makefile in lib/expat-lite
Creating Makefile in modules/standard
EXTRA_CFLAGS: -DHPUX11 -Aa -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT -I$(SRCD
IR)/lib/expat-lite
PerlDispatchHandler.disabled (enable with PERL_DISPATCH=1)
PerlChildInitHandlerenabled
PerlChildExitHandlerenabled
PerlPostReadRequestHandler..disabled (enable with PERL_POST_READ_REQUEST=1)
PerlTransHandlerdisabled (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)
PerlAuthzHandlerdisabled (enable with PERL_AUTHZ=1)
PerlTypeHandler.disabled (enable with PERL_TYPE=1)
PerlFixupHandlerdisabled (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)
PerlTableApidisabled (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
PerlSectionsdisabled (enable with PERL_SECTIONS=1)
PerlSSI.disabled (enable with PERL_SSI=1)
Will run tests as User: 'nobody' Group: 'sys'
Checking CGI.pm VERSION..ok
Checking for LWP::UserAgent..failed
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./lib
/opt/perl5/lib/5.6.0/PA-RISC2.0 /opt/perl5/lib/5.6.0
/opt/perl5/lib/site_perl/5.6.0/PA-RISC2.0 /opt/perl5/lib/site_perl/5.6.0
/opt/perl5/lib/site_perl/5.005/PA-RISC2.0 /opt/perl5/lib/site_perl/5.005
/opt/perl5/lib/site_perl .) at Makefile.PL line 1056.
The libwww-perl library is needed to run the test suite.
Installation of this library is recommended, but not required.
Checking for HTML::HeadParserfailed
Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib
/opt/perl5/lib/5.6.0/PA-RISC2.0 /opt/perl5/lib/5.6.0
/opt/perl5/lib/site_perl/5.6.0/PA-RISC2.0