php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7889 symbol getsesenv: referenced symbol not found
Submitted: 2000-11-20 06:28 UTC Modified: 2001-01-30 04:11 UTC
From: thomas at iconmedialab dot dk Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: SunOS 5.8 Generic_108528-01 sun4
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: thomas at iconmedialab dot dk
New email:
PHP Version: OS:

 

 [2000-11-20 06:28 UTC] thomas at iconmedialab dot dk
Compiling PHP as an Apache DSO. Apache configured with
./configure \
--prefix=/usr/local \
--enable-module=most \
--enable-shared=max.

PHP configured with:
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mcrypt \
--with-mysql=/usr/local/mysql \
--enable-versioning --with-gd \
--with-ttf \
--with-jpeg-dir=/usr/local \
--with-zlib=/usr/local \
--enable-ftp \--with-config-file-path=/usr/local/apache/conf \
--with-informix=/usr/local/bin/informix

When I do apachectl configtest I get:
Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol getsesenv: referenced symbol not found

Where is this getsesenv supposed to be?

ldd says:
# ldd /usr/local/apache/libexec/libphp4.so
libpam.so.1 =>   /usr/lib/libpam.so.1
libdl.so.1 =>    /usr/lib/libdl.so.1
libmcrypt.so.4 => /usr/local/lib/libmcrypt.so.4
libltdl.so.0 =>  /usr/local/lib/libltdl.so.0
libttf.so.2 =>   /usr/local/lib/libttf.so.2
libjpeg.so.62 => /usr/local/lib/libjpeg.so.62
libpng.so.2 =>   /usr/local/lib/libpng.so.2
libresolv.so.2 =>        /usr/lib/libresolv.so.2
libm.so.1 =>     /usr/lib/libm.so.1
libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
libnsl.so.1 =>   /usr/lib/libnsl.so.1
libsocket.so.1 =>        /usr/lib/libsocket.so.1
libc.so.1 =>     /usr/lib/libc.so.1
libintl.so.1 =>  /usr/lib/libintl.so.1
libgen.so.1 =>   /usr/lib/libgen.so.1
libmp.so.2 =>    /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1

Hope you can help me

Regards,

          Thomas Olsen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-20 09:53 UTC] thomas at iconmedialab dot dk
orgot to mention that I had issued the following before configure:

IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
IFX_INCDIR="$INFORMIXDIR/incl/esql"
IFX_LIBS="-lgen -lgls -lm -ldl $INFORMIXDIR/lib/esql/checkapi.o "

export IFX_LIBDIR IFX_INCDIR IFX_LIBS

 [2000-11-20 10:08 UTC] kir@php.net
Supposing that getsesenv symbol relates to Informix,
try this before starting Apache:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql
export LD_LIBRARY_PATH
apachectl configtest

Hope, this helps
KIR
 [2000-11-20 10:58 UTC] kir@php.net
status->feedback
 [2000-11-20 11:04 UTC] thomas at iconmedialab dot dk
I actually allready thought that I had added $INFORMIXDIR/lib to LD_LIBRARY_PATH but it showed out that I only had added esql and the other subdirs.
Meanwhile I found another solution by combining some other bugreports:

Issue before configure:
IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
IFX_INCDIR="$INFORMIXDIR/incl/esql"
IFX_LIBS="-lgen -lgls -lm -ldl -lifsql -lifasf \
-lifgen -lifos -lifgls -lifglx \
$INFORMIXDIR/lib/esql/checkapi.o "
export IFX_LIBDIR IFX_INCDIR IFX_LIBS

create a backup directory in $INFORMIXDIR/lib/esql and move the following files from $INFORMIXDIR/lib/esql to the backup dir:
libifgen.so  libifgls.so  libifglx.so  libifos.so   libifsql.so

This way your sure libtool (or whatever) uses the static .a libs instead.
Maybe an "--enable-informix-static" switch would be great.


Run:
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mcrypt \
--with-mysql=/usr/local/mysql \
--enable-versioning --with-gd \
--with-ttf --with-jpeg-dir=/usr/local \--with-zlib=/usr/local \
--enable-ftp \--with-config-file-path=/usr/local/apache/conf \
--with-informix=/usr/local/bin/informix


 [2000-11-20 11:15 UTC] kir@php.net
Could you please check if setting LD_LIBRARY_PATH as I mentioned solves the problem?
 [2001-01-30 04:11 UTC] sniper@php.net
No feedback. Considered solved by setting LD_LIBRARY_PATH.

--Jani

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