php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37058 Building with Informix does not work
Submitted: 2006-04-12 15:19 UTC Modified: 2006-04-13 17:50 UTC
From: gquiring at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.3RC3 OS: Solaris 9
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gquiring at gmail dot com
New email:
PHP Version: OS:

 

 [2006-04-12 15:19 UTC] gquiring at gmail dot com
Description:
------------
Apache 1.3.34  PHP 5.1.4  Informix CSDK 2.9UC4  Solaris 9

When executing apache:

Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp5.so into server: ld.so.1: ./httpd:
fatal: relocation error: file /u/home/garyq/informix/lib/esql/libifsql.so: symbo
l ifx_checkAPI: referenced symbol not found

Env:
INFORMIXSQLHOSTS=/u/home/garyq/informix/etc/sqlhosts
INFORMIXSERVER=dev1
INFORMIXDIR=/u/home/garyq/informix
LD_LIBRARY_PATH=/u/home/garyq/informix/lib:/u/home/garyq/informix/lib/esql:/u/home/garyq/informix/lib/tools:/usr/local/lib:/usr/lib:/var/local/lib:/opt/SUNWspro
/lib:/usr/openwin/lib




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-12 15:21 UTC] gquiring at gmail dot com
Messages during compile:
*** Warning: Linking the shared library libphp5.la against the non-libtool
*** objects  /u/home/garyq/informix/lib/esql/ is not portable!
 [2006-04-12 17:01 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2006-04-12 18:16 UTC] gquiring at gmail dot com
Downloaded and installed php5.1-200604121630 

Same error.
 [2006-04-12 21:43 UTC] tony2001@php.net
I can't reproduce it on Solaris 8 with the same SDK and PHP 5.1 CVS.
Please check that this version of SDK is supposed to work on Solaris 9 ('cause it's name says "for Solaris 8").
Also make sure you have -mimpure-text option in your CFLAGS.
 [2006-04-13 13:45 UTC] gquiring at gmail dot com
I tried the CFLAG option same error.  I simplified my configure line and it runs.  This the line I used when it does not work:

./configure '--with-informix=/u/home/garyq/informix' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--enable-pic' '--enable-inline-optimization' '--with-bz2' '--with-curl' '--enable-soap' '--with-dom' '--with-gettext' '--with-ncurses' '--with-iconv' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-kerberos' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal'
 [2006-04-13 13:55 UTC] tony2001@php.net
What exactly did you remove from the configure line when it worked?
 [2006-04-13 13:58 UTC] gquiring at gmail dot com
I went very simple:

./configure '--with-informix=/u/home/garyq/informix' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/etc'

If you think you know what options might cause it let me know I don't mind compiling a few times to narrow down which option makes it fail.
 [2006-04-13 14:07 UTC] tony2001@php.net
Ok, could you please remove the options one by one and see which specific option affects it?
--enable-pic looks like a good candidate to me.
 [2006-04-13 17:19 UTC] gquiring at gmail dot com
This is what makes it fail:

--enable-versioning
 [2006-04-13 17:37 UTC] sniper@php.net
Do NOT use configure options that you don't know what they are used for! There is no bug here. 
 [2006-04-13 17:47 UTC] gquiring at gmail dot com
I took the stock configure options from a Red Hat server preinstalled with PHP.  I *assumed* that would be a good way to compile PHP on Solaris.  This problem has been seen many times with no answer in the Informix groups.  So now we have the answer.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 02:01:32 2025 UTC