You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Scott Phan <sp...@globalsight.com> on 2000/06/12 19:40:55 UTC

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)
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: '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::HeadParser....failed
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 /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 1074.

The HTML-Parser package is needed (by libwww-perl) to run the test suite.
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

Any suggestions is greatly appreciated,

Scott


RE: Problem compiling with HPUX 11 64-bit OS

Posted by Scott Phan <sp...@globalsight.com>.
Gavin,

I still have problems when compiling Apache. However, I managed to retrieve
an Apache 1.3.12 version that works on hpux 11 64-bit OS at this address:
http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/apache-1.3.12/

But when I integrate it with mod_perl version 1.24, the httpd doesn’t
recognize “TypesConfig” and “SetHandler perl-script” directives even though
the required module is compiled.

Here is a list of modules:

# ./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_setenvif.c
  mod_perl.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

I preferred using Apache 1.3.9 since the default directories are set to
“conf” and “logs” instead of “etc” and “adm”

Here’s the compilation error:

gmake[3]: Entering directory `/export/scottp/apache_1.3.9/src/os/unix'
cc -c  -I../../os/unix -I../../include   -DHPUX11 -Aa -D_HPUX_SOURCE -DUSE_H
SREGEX -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` os.c
cc: "/usr/include/dlfcn.h", line 17: error 1681: Must use +e or -Ae for long
long in ANSI mode.
gmake[3]: *** [os.o] Error 1
gmake[3]: Leaving directory `/export/scottp/apache_1.3.9/src/os/unix'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/export/scottp/apache_1.3.9/src'
gmake[1]: *** [build-std] Error 2
gmake[1]: Leaving directory `/export/scottp/apache_1.3.9'
gmake: *** [build] Error 2

Appreciate your comments … Thanks,

Scott

-----Original Message-----
From: Gavin Mathias [mailto:gmathias@live365.com]
Sent: Monday, June 12, 2000 4:14 PM
To: Scott Phan; modperl@apache.org
Subject: RE: Problem compiling with HPUX 11 64-bit OS


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:sphan@globalsight.com]
Sent:	Monday, June 12, 2000 10:41 AM
To:	modperl@apache.org
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)
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: '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::HeadParser....failed
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 /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 1074.

The HTML-Parser package is needed (by libwww-perl) to run the test suite.
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

Any suggestions is greatly appreciated,

Scott


RE: Problem compiling with HPUX 11 64-bit OS

Posted by Gavin Mathias <gm...@live365.com>.
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:sphan@globalsight.com]
Sent:	Monday, June 12, 2000 10:41 AM
To:	modperl@apache.org
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)
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: '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::HeadParser....failed
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 /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 1074.

The HTML-Parser package is needed (by libwww-perl) to run the test suite.
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

Any suggestions is greatly appreciated,

Scott