php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4260 configure script appears to correctly build for --with-ldap or --with-mysql
Submitted: 2000-04-27 09:42 UTC Modified: 2002-10-01 14:48 UTC
From: steve dot lewis at iname dot com Assigned:
Status: Wont fix Package: Installation problem
PHP Version: 3.0.16 OS: Solaris 2.8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: steve dot lewis at iname dot com
New email:
PHP Version: OS:

 

 [2000-04-27 09:42 UTC] steve dot lewis at iname dot com
configure appears to fail to put correct -l options in APXS_LDFLAGS for 
--with-ldap and --with-mysql, details below;

apache 1.3.12 with DSO
php-3.0.16
openldap 1.2.9
mysql 3.22.32

built php-3.0.16 with
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml \
 --with-ldap=/usr/local --with-config-file-path=/usr/local/apache

build and install appears to complete successfully, however apache (1.3.12) 
will not start, error message is

Cannot load /usr/local/apache/libexec/libphp3.so into server: ld.so.1: /usr/loca
l/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libp
hp3.so: symbol ber_free: referenced symbol not found

workaround appears to be to add -llber to APXS_LDFLAGS in Makefile after configure.

A similar problem occurs for mysql, adding -lmysqlclient to APXS_LDFLAGS appears
to fix it.

a quick look at configure.in suggests these should be added automatically, beyond
my knowledge to see why they are not.

a copy of my environment below;

$ set
HOME=/export/home/slewis
HZ=100
IFS=
 
LC_COLLATE=en_GB.ISO8859-1
LC_CTYPE=en_GB.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-1
LC_NUMERIC=en_GB.ISO8859-1
LC_TIME=en_GB.ISO8859-1
LOGNAME=slewis
MAIL=/var/mail/slewis
MAILCHECK=600
MANPATH=/usr/local/man:
OPTIND=1
PATH=/usr/local/bin:/usr/bin:/usr/ucb:/etc:.:/usr/ccs/bin
PS1=$
PS2=>
SHELL=/bin/sh
TERM=vt220
TZ=GB
_INIT_NET_STRATEGY=none
_INIT_PREV_LEVEL=S
_INIT_RUN_LEVEL=3
_INIT_RUN_NPREV=0
_INIT_UTS_ISA=i386
_INIT_UTS_MACHINE=i86pc
_INIT_UTS_NODENAME=calvin
_INIT_UTS_PLATFORM=i86pc
_INIT_UTS_RELEASE=5.8
_INIT_UTS_SYSNAME=SunOS
_INIT_UTS_VERSION=Generic

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-27 10:38 UTC] steve dot lewis at iname dot com
of course, that should read 
"configure script appears to incorrectly build...."

 [2002-10-01 14:48 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC