php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34718 cannot compile PHP as an Apache2 module
Submitted: 2005-10-03 15:53 UTC Modified: 2005-10-03 16:06 UTC
From: ionut dot aivanesei at amdocs dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.0.5 OS: HP-UX B.11.11
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ionut dot aivanesei at amdocs dot com
New email:
PHP Version: OS:

 

 [2005-10-03 15:53 UTC] ionut dot aivanesei at amdocs dot com
Description:
------------
Hi,

I am trying to compile PHP 5.0.5 on HP-UX B.11.11 and I am not succeeding.
I have already compiled httpd-2.0.54 with --enable-so --enable-rewrite.
I have MySQL binaries mysql-standard-4.1.14-hp-hpux11.11-hppa2.0w.

I am using the following: ./configure --prefix=${BUILD_DIR}/php --with-apxs2=${BUILD_DIR}/httpd/bin/apxs --with-mysql=${BUILD_DIR}/mysql

./configure is finished OK.

make is finished OK, but with the following warnings:
--------------------------------------------------------------------------------------------------------------
*** Warning: linker path does not have real file for library -lmysqlclient.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libmysqlclient and none of the candidates passed a file format test
*** using a file magic. Last file checked: /elsuser11.p802a/els/crm/ionuta/web/mysql/lib/libmysqlclient.a

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp5.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.

--------------------------------------------------------------------------------------------------------------



Then, when I run make install I have the following error:
--------------------------------------------------------------------------------------------------------------
Installing PHP SAPI module:       apache2handler
/elsuser11.p802a/els/crm/ionuta/web/httpd/build/instdso.sh SH_LIBTOOL='/elsuser11.p802a/els/crm/ionuta/web/httpd/build/libtool' libphp5.la /elsuser11.p802a/els/crm/ionuta/web/httpd/modules
/elsuser11.p802a/els/crm/ionuta/web/httpd/build/libtool --mode=install cp libphp5.la /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/
cp .libs/libphp5.lai /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.la
cp .libs/libphp5.a /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.a
ranlib /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.a
chmod 644 /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /elsuser11.p802a/els/crm/ionuta/web/_sources/php/php-5.0.5/libs'
Warning!  dlname not found in /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.so
chmod: can't access /elsuser11.p802a/els/crm/ionuta/web/httpd/modules/libphp5.so
apxs:Error: Command failed with rc=65536
.
*** Error exit code 1

Stop.
--------------------------------------------------------------------------------------------------------------

I get this only when compiling with mysql support. Otherwise everything is ok.

Thank you,
Ionut

Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-03 15:58 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.


 [2005-10-03 16:06 UTC] ionut dot aivanesei at amdocs dot com
One more thing to mention is that the make and make install are successful if I run configure without --with-apxs2, and it works ok in CGI mode (with mysql also).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 16:01:36 2024 UTC