You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Svavar Örn Eysteinsson <sv...@atom.is> on 2002/11/08 16:28:19 UTC

Trouble building Apache 1.3.27 with mod_perl 1.27 on Solaris 8 x86

Hi all.
I'm having a big trouble on my Solaris 8 x86.

I'm trying to compile Apache v1.3.27 with mod_perl 1.2.27.

As for now i'm running Apache/1.3.19 (Unix) PHP/4.0.4pl1 mod_perl/1.25.
with Perl 5.6.1 and GCC 3.0.3


First off all, i'm using the GNU "ld" in the compilation process.
And as i go into the mod_perl source directory and execute :

perl Makefile.PL APACHE_SRC=../apache_1.3.27/src \
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
&& make

Everything goes fine.. No errors.
And then i do "make test" 

and it results :

../apache_1.3.27/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...[Fri Nov  8 10:38:55 2002] [error] Can't load
'/usr/local/lib/perl5/5.6.1/i86pc-solaris/auto/Socket/Socket.so' for
module Socket: ld.so.1: ../apache_1.3.27/src/httpd: fatal: relocation
error: file
/usr/local/lib/perl5/5.6.1/i86pc-solaris/auto/Socket/Socket.so: symbol
main: referenced symbol not found at
/usr/local/lib/perl5/5.6.1/i86pc-solaris/XSLoader.pm line 75.
 at /usr/local/lib/perl5/5.6.1/i86pc-solaris/Socket.pm line 451
Compilation failed in require at
/export/home/admin/apachebuild/mod_perl-1.27/t//docs/startup.pl line 28.
BEGIN failed--compilation aborted at
/export/home/admin/apachebuild/mod_perl-1.27/t//docs/startup.pl line 28.
Compilation failed in require at (eval 2) line 1.
 
Syntax error on line 62 of
/export/home/admin/apachebuild/mod_perl-1.27/t/conf/httpd.conf:
Can't load
'/usr/local/lib/perl5/5.6.1/i86pc-solaris/auto/Socket/Socket.so' for
module Socket: ld.so.1: ../apache_1.3.27/src/httpd: fatal: relocation
error: file
/usr/local/lib/perl5/5.6.1/i86pc-solaris/auto/Socket/Socket.so: symbol
main: referenced symbol not found at
/usr/local/lib/perl5/5.6.1/i86pc-solaris/XSLoader.pm line 75.
 at /usr/local/lib/perl5/5.6.1/i86pc-solaris/Socket.pm line 451
Compilation failed in require at
/export/home/admin/apachebuild/mod_perl-1.27/t//docs/startup.pl line 28.
BEGIN failed--compilation aborted at
/export/home/admin/apachebuild/mod_perl-1.27/t//docs/startup.pl line 28.
Compilation failed in require at (eval 2) line 1.
 
done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line
95.
make: *** [run_tests] Error 146


No httpd process is running for the test process.


Then i tried to use the built-in-solaris "ld" program for the
compilation process.
Everyting goes fine, until i do the "make test" :

../apache_1.3.27/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line
95.
make: *** [run_tests] Error 9

I see the httpd process running, and then i view the
mod_perl-1.27/t/logs/error.log file
and it contains :

[notice] Destruction->DESTROY called for $global_object
Prototype mismatch: sub Socket::INADDR_ANY vs () at
/usr/local/lib/perl5/5.6.1/i86pc-solaris/Socket.pm line 329.
Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at
/usr/local/lib/perl5/5.6.1/i86pc-solaris/Socket.pm line 330.
Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
/usr/local/lib/perl5/5.6.1/i86pc-solaris/Socket.pm line 331.
Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
/usr/local/lib/perl5/5.6.1/i86pc-solaris/Socket.pm line 332.
[Fri Nov  8 10:41:50 2002] [warn] [notice] child_init for process 27195,
report any problems to [no address given]





Does anybody knows what is going on in my compilation process.
The last time i builded Apache and mod_perl it was 100% sucessfully
compiled(the version running today)

Any help would be very apriciated.

Best regards to all.

Svavar
Reykjavik - Iceland


Re: Trouble building Apache 1.3.27 with mod_perl 1.27 on Solaris 8 x86

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

On Fri, 8 Nov 2002, [iso-8859-1] Svavar �rn Eysteinsson wrote:

> I'm having a big trouble on my Solaris 8 x86.
> 
> I'm trying to compile Apache v1.3.27 with mod_perl 1.2.27.
> 
> As for now i'm running Apache/1.3.19 (Unix) PHP/4.0.4pl1 mod_perl/1.25.
> with Perl 5.6.1 and GCC 3.0.3

Did you compile Perl 5.6.1, Apache 1.3.19 and mod_perl 1.25 with gcc 3.0.3 ?
I ask because gcc 3.0.3 is almost a year younger than Apache 1.3.19.  I'd think
it worth upgrading to 3.2 unless there are reasons not to, but I've no idea
if it's going to fix your problem.  OTOH if you didn't use the same compiler
for *all* the compilations...

Has anyone been using 3.2 with mod_perl-1.27?  I'm just about to give it a whirl...

73,
Ged.