Can you upgrade your httpd past 2.2.8? Looks like this was a problem with Apache that was fixed in a later release.
http://mail-archives.apache.org/mod_mbox/httpd-dev/200906.mbox/%3ca8a7bdaf385ba518e3d8de420ac1458d.squir...@webmail.envitory.se%3E http://svn.apache.org/viewvc?revision=779472&view=revision On Tue, Jul 10, 2012 at 5:39 PM, Froyland, Todd <todd.froyl...@ellucian.com> wrote: > Fred, > > Great! That seems to have worked. At least, it got through the Makefile.PL > portion. > > Now, the make is failing with the error: > > "modperl_config.c", line 525: error #2020: identifier "OPT_INCNOEXEC" > is undefined > parms.override_opts = MP_HTTPD_OVERRIDE_OPTS_DEFAULT; > > In doing more searches, it seems there were some issues with changes in this > area, but I am uncertain as to what exactly I can do about this. There seems > to be some defines that affect this, but whether or not it will work for me, > I don't know. If you, or anyone on the list, have more familiarity with this, > and can provide a work-around, that would be great. > > > > Here is the complete Makefile.PL and make output: > > % perl Makefile.PL MP_APXS=/opt/hpws22/apache/bin/apxs > Reading Makefile.PL args from @ARGV > MP_APXS = /opt/hpws22/apache/bin/apxs > no conflicting prior mod_perl version found - good. > Configuring Apache/2.2.*/ mod_perl/2.0.7 Perl/v5.8.8 > Writing Makefile for Apache2::Reload > Writing Makefile for Apache2::SizeLimit > Subroutine MY::test redefined at ./Makefile.PL line 168. > [ info] generating script t/TEST > [ info] generating script ./t/cgi-bin/cookies.pl > [ info] generating script ./t/cgi-bin/next_available_port.pl > Writing Makefile for Apache::Test > Checking for File::Spec...ok > Checking for Cwd...ok > [ info] generating script t/TEST > Writing Makefile for ModPerl::Registry > Writing Makefile for APR::Base64 > Writing Makefile for APR::Brigade > Writing Makefile for APR::Bucket > Writing Makefile for APR::BucketAlloc > Writing Makefile for APR::BucketType > Writing Makefile for APR::Date > Writing Makefile for APR::Error > Writing Makefile for APR::Finfo > Writing Makefile for APR::IpSubnet > Writing Makefile for APR::OS > Writing Makefile for APR::Pool > Writing Makefile for APR::SockAddr > Writing Makefile for APR::Socket > Writing Makefile for APR::Status > Writing Makefile for APR::String > Writing Makefile for APR::Table > Writing Makefile for APR::ThreadMutex > Writing Makefile for APR::ThreadRWLock > Writing Makefile for APR::URI > Writing Makefile for APR::UUID > Writing Makefile for APR::Util > Writing Makefile for APR > Writing Makefile for Apache2::Access > Writing Makefile for Apache2::CmdParms > Writing Makefile for Apache2::Command > Writing Makefile for Apache2::Connection > Writing Makefile for Apache2::ConnectionUtil > Writing Makefile for Apache2::Directive > Writing Makefile for Apache2::Filter > Writing Makefile for Apache2::FilterRec > Writing Makefile for Apache2::HookRun > Writing Makefile for Apache2::Log > Writing Makefile for Apache2::MPM > Writing Makefile for Apache2::Module > Writing Makefile for Apache2::Process > Writing Makefile for Apache2::RequestIO > Writing Makefile for Apache2::RequestRec > Writing Makefile for Apache2::RequestUtil > Writing Makefile for Apache2::Response > Writing Makefile for Apache2::ServerRec > Writing Makefile for Apache2::ServerUtil > Writing Makefile for Apache2::SubProcess > Writing Makefile for Apache2::SubRequest > Writing Makefile for Apache2::URI > Writing Makefile for Apache2::Util > Writing Makefile for Apache2 > Writing Makefile for ModPerl::Global > Writing Makefile for ModPerl::Util > Writing Makefile for ModPerl > Writing Makefile for ModPerl::WrapXS > Unrecognized argument in LIBS ignored: '-uldap_compare_s' > Unrecognized argument in LIBS ignored: '-uldap_simple_bind_s' > Unrecognized argument in LIBS ignored: '-uldap_err2string' > Note (probably harmless): No library found for -l:liblber-2.4.so > Note (probably harmless): No library found for -l:libldap-2.4.so > Note (probably harmless): No library found for -l:libsasl2.a > Note (probably harmless): No library found for -l:libssl.so > Note (probably harmless): No library found for -l:libcrypto.so > Note (probably harmless): No library found for -ldb > Unrecognized argument in LIBS ignored: '-Wl,+b,/opt/hpws22/apache/lib' > Writing Makefile for APR > Writing Makefile for APR::Const > Writing Makefile for APR::PerlIO > Writing Makefile for libaprext > Writing Makefile for APR_build > Writing Makefile for Apache2::Const > Writing Makefile for Apache2_build > Writing Makefile for ModPerl::Const > Writing Makefile for ModPerl > Writing Makefile for ModPerl::XS > Writing Makefile for mod_perl2 > [warning] mod_perl dso library will be built as mod_perl.so > [warning] You'll need to add the following to httpd.conf: > [warning] > [warning] LoadModule perl_module modules/mod_perl.so > [warning] > [warning] depending on your build, mod_perl might not live in > [warning] the modules/ directory. > > [warning] Check the results of > [warning] > [warning] $ /opt/hpws22/apache/bin/apxs -q LIBEXECDIR > [warning] > [warning] and adjust the LoadModule directive accordingly > > % make > cd "src/modules/perl" && make > cc -I/opt/mod_perl-2.0.7/src/modules/perl -I/opt/mod_perl-2.0.7/xs > -I/op > t/hpws22/apache/include -I/opt/hpws22/apache/include > -I/opt/iexpress/openldap/in > clude -I/opt/hpws22/apache/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT > -Ae - > D_HPUX_SOURCE -Wl,+vnocompatwarnings +DSitanium2 +Z -DUSE_SITECUSTOMIZE > -DNO_HAS > H_SEED -I/opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/CORE -DMOD_PERL > -DMP > _COMPAT_1X -DHPUX11 -D_HPUX_SOURCE -fast +Ofltacc=strict +Z \ > -c modperl_config.c && mv modperl_config.o modperl_config.lo > "modperl_config.c", line 525: error #2020: identifier "OPT_INCNOEXEC" is > undefined > parms.override_opts = MP_HTTPD_OVERRIDE_OPTS_DEFAULT; > ^ > > "modperl_config.c", line 644: warning #2068-D: integer conversion resulted in > a change of sign > if ((flag = modperl_flags_lookup_dir(name)) != -1) { > ^ > > "modperl_config.c", line 653: warning #2068-D: integer conversion resulted in > a change of sign > if ((flag = modperl_flags_lookup_srv(name)) != -1) { > ^ > > "modperl_config.c", line 662: warning #2940-D: missing return statement at end > of non-void function "modperl_config_is_perl_option_enabled" > } > ^ > > 1 error detected in the compilation of "modperl_config.c". > *** Error exit code 2 > > Stop. > *** Error exit code 1 > > > > > -Todd > > Todd Froyland > > > -----Original Message----- > From: Fred Moyer [mailto:f...@redhotpenguin.com] > Sent: Tuesday, July 10, 2012 4:27 PM > To: Froyland, Todd > Subject: Re: [mp2] Install error with Makefile.PL - uninitialized value at > TestRun.pm > > Can you try this? > > perl Makefile.PL MP_APXS=/opt/hpws22/apache/bin/apxs > > > On Tue, Jul 10, 2012 at 4:18 PM, Froyland, Todd > <todd.froyl...@ellucian.com> wrote: >> Fred, >> >> Thanks for the quick response! Here is the results of your test: >> >> >> >> >> % perl Makefile.PL MP_AP_PREFIX=/opt/hpws22/apache >> Reading Makefile.PL args from @ARGV >> MP_AP_PREFIX = /opt/hpws22/apache >> no conflicting prior mod_perl version found - good. >> Configuring Apache/2.2.*/ mod_perl/2.0.7 Perl/v5.8.8 >> Checking if your kit is complete... >> Looks good >> ERROR from evaluation of /opt/mod_perl-2.0.7/Apache-Reload/Makefile.PL: key >> apxs >> has no value at Apache-Test/lib/Apache/TestRun.pm line 1101. >> >> >> >> I seem to have apxs on my machine: >> >> % which apxs >> /opt/hpws22/apache/bin/apxs >> >> Although, I noticed on the bug report that it says that the httpd binary was >> not found, even though it is on my path. Is the script using some other >> configuration for that? >> >> -Todd >> >> >> >> -----Original Message----- >> From: Fred Moyer [mailto:f...@redhotpenguin.com] >> Sent: Tuesday, July 10, 2012 4:06 PM >> To: Froyland, Todd >> Cc: modperl@perl.apache.org >> Subject: Re: [mp2] Install error with Makefile.PL - uninitialized value at >> TestRun.pm >> >> Can you try this patch in Apache-Test and report back the output? >> Looks like the eval fails because of fatal warnings from the undef >> value. >> >> Index: lib/Apache/TestRun.pm >> =================================================================== >> --- lib/Apache/TestRun.pm (revision 1359945) >> +++ lib/Apache/TestRun.pm (working copy) >> @@ -1097,6 +1097,9 @@ >> >> my %args = @Apache::TestMM::Argv; >> while (my($k, $v) = each %args) { >> + unless (defined $v) { >> + die "key $k has no value"; >> + } >> $v =~ s/\|/\\|/g; >> $body .= "\n\$Apache::TestConfig::Argv{'$k'} = q|$v|;\n"; >> } >> >> >> On Tue, Jul 10, 2012 at 3:52 PM, Froyland, Todd >> <todd.froyl...@ellucian.com> wrote: >>> 1. Problem Description: >>> >>> Installing mod_perl2, latest version(2.0.7), on hp-ux machine(B.11.31). >>> The "perl Makefile.PL" command returns the following error: >>> >>> % perl Makefile.PL MP_AP_PREFIX=/opt/hpws22/apache >>> Reading Makefile.PL args from @ARGV >>> MP_AP_PREFIX = /opt/hpws22/apache >>> no conflicting prior mod_perl version found - good. >>> Configuring Apache/2.2.*/ mod_perl/2.0.7 Perl/v5.8.8 >>> Checking if your kit is complete... >>> Looks good >>> ERROR from evaluation of /opt/mod_perl-2.0.7/Apache-Reload/Makefile.PL: >>> Use of >>> uninitialized value in substitution (s///) at >>> Apache-Test/lib/Apache/TestRun.pm >>> line 1100. >>> >>> A few other details: >>> >>> % httpd -v >>> Server version: Apache/2.2.8 HP-UX_Apache-based_Web_Server (Unix) >>> Server built: May 7 2010 12:11:23 >>> >>> % perl -v >>> This is perl, v5.8.8 built for IA64.ARCHREV_0-thread-multi >>> >>> There is no apr-config or apu-config on my machine, but there is an >>> apr-1-config and apu-1-config, so I created symlinks to both of those. >>> >>> There is a previously existing mod_perl installation (1.99), but it >>> is in an obscure directory that is not in @INC. >>> >>> I have searched the mail archives and internets for anything related to >>> this problem, but could not find anything useful. I am neither a Perl >>> nor sysadmin guru, and I don't understand enough of what the TestRun.pm >>> program is doing to figure out what might be wrong. >>> Any suggestions would be helpful. >>> >>> Thanks! >>> >>> 2. Used Components and their Configuration: >>> >>> *** mod_perl version 2.000007 >>> >>> *** using /opt/mod_perl-2.0.7/lib/Apache2/BuildConfig.pm >>> >>> *** Makefile.PL options: >>> MP_APR_LIB => aprext >>> MP_AP_PREFIX => /opt/hpws22/apache >>> MP_COMPAT_1X => 1 >>> MP_GENERATE_XS => 1 >>> MP_LIBNAME => mod_perl >>> MP_USE_DSO => 1 >>> >>> >>> *** The httpd binary was not found >>> >>> >>> *** (apr|apu)-config linking info >>> >>> -L/opt/hpws22/apache/lib -laprutil-1 -lldap -lexpat >>> -L/opt/hpws22/apache/lib >>> -L/opt/hpws22/apache/lib -lapr-1 -lrt -lm -lgss -L/opt/hpws22/apache/lib >>> -uldap >>> _compare_s -uldap_simple_bind_s -uldap_err2string -l:liblber-2.4.so >>> -l:libldap-2 >>> .4.so -l:libsasl2.a -L/opt/openssl/0.9.8/lib/hpux64 -l:libssl.so >>> -l:libcrypto.so >>> -L/user/apinteg/BerkelyDBIA64/lib -ldb -Wl,+b,/opt/hpws22/apache/lib >>> -lpthread >>> >>> >>> *** -V >>> >>> *** Packages of interest status: >>> >>> Apache2 : - >>> Apache2::Request : - >>> CGI : 3.59 >>> ExtUtils::MakeMaker: 6.30 >>> LWP : 6.04 >>> mod_perl : - >>> mod_perl2 : - >>> >>> >>> 3. This is the core dump trace: (if you get a core dump): >>> >>> [CORE TRACE COMES HERE] >>> >>> This report was generated by t/REPORT on Tue Jul 10 22:36:48 2012 GMT.