LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   libperl.so and apache2 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/libperl-so-and-apache2-413771/)

xpucto 02-15-2006 06:36 AM

Hier ist the exact error message:
Quote:

make && make test && make install
cd "src/modules/perl" && make
cc -I/space/download/mod_perl-2.0.2/src/modules/perl -I/space/download/mod_perl-2.0.2/xs -I/usr/apache2/include -I/usr/apache2/include -I/usr/apache2/include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DMOD_PERL -DMP_COMPAT_1X -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -xO3 -xspace -xildoff -KPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
sh: cc: not found
*** Error code 1
make: Fatal error: Command failed for target `mod_perl.lo'
Current working directory /space/download/mod_perl-2.0.2/src/modules/perl
*** Error code 1
make: Fatal error: Command failed for target `modperl_lib'
Maybe can someone find a reason for this?

bathory 02-15-2006 06:36 AM

It failed becaused it's written for mod_perl-1.99_04. I took a look at the the link where you found the patch and the guys there said that it was fixed in the cvs version, so I guess it's also fixed in mod_perl-2.0.2. So perhaps the problem is in somewhere else.
Sorry I cannot help you further on this, but I never had problems with apache 1.3.x (compiled from source).
[EDIT]
Since you tried to apply the patch with no success in the source tree, you have to delete the mod_perl-2.0.2 directory and untar the sources you have downloaded to re-create it.
[/EDIT]
Quote:

cc: not found
seems you miss a compiler, or it's not in your PATH

xpucto 02-15-2006 06:47 AM

Quote:

Originally Posted by bathory
It failed becaused it's written for mod_perl-1.99_04. I took a look at the the link where you found the patch and the guys there said that it was fixed in the cvs version, so I guess it's also fixed in mod_perl-2.0.2. So perhaps the problem is in somewhere else.
Sorry I cannot help you further on this, but I never had problems with apache 1.3.x (compiled from source).

Thanks for your help anyway. If I can't make apache2 run properly then I guess I'll have to use apache1.3, it is alread pre-installed with perl and this libperl.so. But I'm sure it has to have a way to make this whole thing work.

xpucto 02-21-2006 08:37 AM

I've installed Sun Studio 11 and compiled. It worked this time... till the next error! Here is the end of the output:
Quote:

LD_RUN_PATH="" cc -G Const.o modperl_const.o modperl_constants.o -o ../../../blib/arch/auto/ModPerl/Const/Const.so
chmod 755 ../../../blib/arch/auto/ModPerl/Const/Const.so
cp Const.bs ../../../blib/arch/auto/ModPerl/Const/Const.bs
chmod 644 ../../../blib/arch/auto/ModPerl/Const/Const.bs
cp bin/mp2bug blib/script/mp2bug
/usr/perl5/5.8.4/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/mp2bug
Manifying blib/man3/mod_perl2.3
Manifying blib/man3/ModPerl::Config.3
Manifying blib/man3/Bundle::Apache2.3
Manifying blib/man3/Apache2::Build.3
Manifying blib/man3/ModPerl::Code.3
Manifying blib/man3/ModPerl::CScan.3
cd "src/modules/perl" && make
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] root mode: changing the files ownership to 'nobody' (60001:60001)
[warning] testing whether 'nobody' is able to -rwx /space/download/mod_perl-2.0.2/t
"/usr/bin/perl" -Mlib=/space/download/mod_perl-2.0.2/Apache-Test/lib -MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(60001, 60001, q[/space/download/mod_perl-2.0.2/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/usr/apache2/bin/httpd -d /space/download/mod_perl-2.0.2/t -f /space/download/mod_perl-2.0.2/t/conf/httpd.conf -D APACHE2
using Apache/2.0.52 (prefork MPM)

waiting 120 seconds for server to start: .[Tue Feb 21 15:09:38 2006] [info] 6 Apache2:: modules loaded
[Tue Feb 21 15:09:38 2006] [info] 0 APR:: modules loaded
[Tue Feb 21 15:09:38 2006] [info] base server + 27 vhosts ready to run tests
[ error] Failed to find a config file to save the custom configuration in
.....
waiting 120 seconds for server to start: ok (waited 5 secs)
server localhost:8529 started
server localhost:8530 listening (filter_out_apache)
server localhost:8531 listening (TestModules::proxy)
server localhost:8532 listening (TestModperl::merge)
server localhost:8533 listening (TestModperl::perl_options)
server localhost:8534 listening (TestModperl::setupenv)
server localhost:8535 listening (TestUser::rewrite)
server localhost:8536 listening (TestVhost::log)
server localhost:8537 listening (TestVhost::config)
server localhost:8538 listening (TestProtocol::pseudo_http)
server localhost:8539 listening (TestProtocol::echo_bbs)
server localhost:8540 listening (TestProtocol::echo_filter)
server localhost:8541 listening (TestProtocol::echo_bbs2)
server localhost:8542 listening (TestProtocol::echo_timeout)
server localhost:8543 listening (TestProtocol::echo_block)
server localhost:8544 listening (TestProtocol::echo_nonblock)
server localhost:8545 listening (TestPreConnection::note)
server localhost:8546 listening (TestHooks::hookrun)
server localhost:8547 listening (TestHooks::init)
server localhost:8548 listening (TestHooks::trans)
server localhost:8549 listening (TestHooks::stacked_handlers2)
server localhost:8550 listening (TestHooks::startup)
server localhost:8551 listening (TestFilter::in_bbs_inject_header)
server localhost:8552 listening (TestFilter::in_str_msg)
server localhost:8553 listening (TestFilter::both_str_con_add)
server localhost:8554 listening (TestFilter::in_bbs_msg)
server localhost:8555 listening (TestDirective::perlmodule)
server localhost:8556 listening (TestDirective::perlrequire)
server localhost:8557 listening (TestDirective::perlloadmodule4)
server localhost:8558 listening (TestDirective::perlloadmodule5)
server localhost:8559 listening (TestDirective::perlloadmodule3)
server localhost:8560 listening (TestDirective::perlloadmodule6)
server localhost:8561 listening (TestHooks::push_handlers_anon)

still waiting for server to warm up: ..............................................................................................
the server is down, giving up after 121 secs
[ error] failed to start server! (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
*** Error code 1
make: Fatal error: Command failed for target `run_tests'
I couldn't find anything that looks like an error in the log file:
Quote:

[Tue Feb 21 15:09:39 2006] [info] mod_unique_id: using ip addr 131.130.93.58
[Tue Feb 21 15:09:40 2006] [info] Init: Initializing OpenSSL library
[Tue Feb 21 15:09:40 2006] [info] Init: Seeding PRNG with 0 bytes of entropy
[Tue Feb 21 15:09:40 2006] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Feb 21 15:09:40 2006] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Feb 21 15:09:40 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 21 15:09:40 2006] [info] Init: Initializing (virtual) servers for SSL
[Tue Feb 21 15:09:40 2006] [info] Server: Apache/2.0.52, Interface: mod_ssl/2.0.52, Library: OpenSSL/0.9.7d
END in modperl_extra.pl, pid=12634
[Tue Feb 21 15:09:41 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 21 15:09:41 2006] [notice] Digest: done
[Tue Feb 21 15:09:41 2006] [info] mod_unique_id: using ip addr 131.130.93.58
[Tue Feb 21 15:09:42 2006] [info] Init: Initializing OpenSSL library
[Tue Feb 21 15:09:42 2006] [info] Init: Seeding PRNG with 0 bytes of entropy
[Tue Feb 21 15:09:42 2006] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Feb 21 15:09:43 2006] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Feb 21 15:09:43 2006] [info] Init: Initializing (virtual) servers for SSL
[Tue Feb 21 15:09:43 2006] [info] Server: Apache/2.0.52, Interface: mod_ssl/2.0.52, Library: OpenSSL/0.9.7d
[Tue Feb 21 15:09:43 2006] [notice] Apache/2.0.52 (Unix) world domination series/2.0 DAV/2 mod_ssl/2.0.52 OpenSSL/0.9.7d mod_perl/2.0.2 Perl/v5.8.4 configured -- resuming normal operations
[Tue Feb 21 15:09:43 2006] [info] Server built: Jan 8 2005 01:51:11
[Tue Feb 21 15:09:43 2006] [debug] prefork.c(955): AcceptMutex: fcntl (default: fcntl)
Does anyone understand what went wrong?
Apache still runs though. Is there a way to check if the mod_perl works?
Thanks.

lennoguard 03-03-2006 09:36 PM

I installed apache2 and php5, type command in /usr/local/apache2/bin
Code:

#apachectl start
the error message is:
Code:

httpd: Syntax error on line 110 of
/usr/local/apache2/conf/httpd.conf:
API module structure `php5_module' in file
/usr/local/apache2/modules/libphp5.so is garbled -
perhaps this is not an Apache module DSO?

Tell me what to do, pls

lennoguard 03-04-2006 02:27 AM

Anyones khows why?


All times are GMT -5. The time now is 04:41 PM.