[PHP-DEV] Re: PHP 4.0 Bug #6163 Updated: Unable to compile with INFORMIX From: Paul Gardiner (Paul.Gardiner <email protected>)
Date: 12/18/00

Hi Jani,

I can now compile with Informix if I expliicitly list the libraries by doing
a esql -libs and then specifying them in LIBS when buildin apache. Just got
the latest snapshot down so I'll give it a whirl tomorrow to see if the
configure script does any better now without all this hassle and let you
know.

Best regards,
- Paul -

----- Original Message -----
From: "Bug Database" <php-dev <email protected>>
To: <paulg <email protected>>
Sent: Monday, December 18, 2000 3:58 PM
Subject: PHP 4.0 Bug #6163 Updated: Unable to compile with INFORMIX

> ID: 6163
> Updated by: sniper
> Reported By: paulg <email protected>
> Old-Status: Open
> Status: Feedback
> Bug Type: Compile Failure
> Assigned To:
> Comments:
>
> Please try the latest snapshot from http://snaps.php.net/
> to verify if this bug still exists.
>
> --Jani
>
> Previous Comments:
> --------------------------------------------------------------------------
-
>
> [2000-08-15 07:57:26] paulg <email protected>
> Hi team,
>
> I'm getting the error listed below and 'ATTENTION - this may mess up ....'
when trying to compile Informix support into PHP4 as an Apache module. I've
done it many times with PHP3 but can't get it to work with version 4. PHP4
with Apache will build no trouble but as soon as the --with-informix is
added it breaks. I know everything on the machine works because of having
version 3 fully working.
>
> It seems it's something to do with the libraries. When I add an
IFX_LIBS="$INFORMIXDIR/lib/esql/libgen.a" just for testing for the configure
stage the conftest seems to pass ok and no debug.log is produced but it
still won't compile though. Must be something in this area.
>
> I'll give any help I can to resolve this. It's either something silly or
more likely because my os is SCO :o(
>
> BTW, which supporting build programs(bison,flex ranlib etc) and versions
are required to install version 4. I think some trouble with especially
non-gnu platforms(like mine) is that not all the required programs are
installed and this causes people trouble. Perhaps a list in the INSTALL
file? Just a thought.
>
> Thanks for you help,
>
> - Paul -
>
> System:
> SCO Openserver (5.0.4)
> PHP4 (4.0.1pl2) and a latest CVS(200008140245)
> Apache (1.3.12)
> gcc (2.95.2)
>
> ./configure --with-apache=../1.3.12
> --without-mysql
> --with-informix=yes
> --enable-track-vars
>
> Debug.log
> CONFIGURE: './configure' '--with-apache=../apache_1.3.12'
'--without-mysql' '--with-informix' '--enable-track-vars'
> CC: gcc
> CFLAGS: -g -O2 -I/usr/informix/incl/esql
> CPPFLAGS:
> CXX:
> CXXFLAGS:
>
INCLUDES: -I/usr/src/apache_1.3.12/src/include -I/usr/src/apache_1.3.12/s
rc/os/unix -I$(top_builddir)/Zend -I$(top_srcdir) -I/usr/informix/incl/esq
l
>
LDFLAGS: -L/usr/informix/lib -L/usr/informix/lib -L/usr/informix/lib/esq
l -L/usr/informix/lib/esql -L/usr/src/php4-200008140245/ext/informix -L/usr
/src/php4-200008140245/ext/informix
>
LIBS: -lm -lcrypt -lsocket -lsocket -lifsql -lifasf -lifgen -lifos -l
ifgls -lnsl_s -lcrypt_i -lsocket -lnsl -lsuds -ltinfo -lprot -lx -ltinfo -lp
hp_ifx -lifglx
> DLIBS:
> SAPI: apache
> PHP_RPATHS: /usr/informix/lib /usr/informix/lib/esql
/usr/src/php4-200008140245/ext/informix
> uname -a: SCO_SV barley 3.2 2 i386
>
> gcc -o
conftest -g -O2 -I/usr/informix/incl/esql -L/usr/informix/lib -L/usr/infor
mix/lib -L/usr/informix/lib/esql -L/usr/informix/lib/esql -L/usr/src/php4-2
00008140245/ext/informix -L/usr/src/php4-200008140245/ext/informix
conftest.c -lm -lcrypt -lsocket -lsocket -lifsql -lifasf -lifgen -lifos -li
fgls -lnsl_s -lcrypt_i -lsocket -lnsl -lsuds -ltinfo -lprot -lx -ltinfo -lph
p_ifx -lifglx 1>&5
> Undefined first referenced
> symbol in file
> ceil /usr/informix/lib/esql/libifsql.so
> getspnam /usr/informix/lib/esql/libifos.so
> log /lib/libprot.so
> fabs /usr/informix/lib/esql/libifgen.so
> conftest: fatal error: Symbol referencing errors. No output written to
conftest
> collect2: ld returned 1 exit status
>
>
> Error Ouput:
>
gcc -DHAVE_CONFIG_H -I. -I/usr/src/php-4.0.1pl2/ext/informix -I/usr/src/php-
> 4.0.
>
1pl2 -I/usr/src/php-4.0.1pl2/main -I/usr/src/apache_1.3.12/src/include -I/us
> r/sr
>
c/apache_1.3.12/src/os/unix -I/usr/src/php-4.0.1pl2/Zend -I/usr/src/php-4.0.
> 1pl2
> -I/usr/informix/incl/esql -I/usr/src/php-4.0.1pl2/ext/xml/expat/xmltok -I
/u
> sr/s
>
rc/php-4.0.1pl2/ext/xml/expat/xmlparse -DXML_BYTE_ORDER=21 -I/usr/informix/
> incl
> /esql -I/usr/informix/incl/esql -c ifx.c && touch ifx.lo
> /bin/sh /usr/src/php-4.0.1pl2/libtool --silent --mode=link
> gcc -I/usr/informix/i
> ncl/esql -I/usr/informix/incl/esql -o libinformix.la ifx.lo
> /usr/lib/libgen.a
>
> libtool: link: cannot build libtool library `libinformix.la' from
> non-libtool ob
> jects: /usr/lib/libgen.a
>
> gmake[3]: *** [libinformix.la] Error 1
> gmake[3]: Leaving directory `/usr/src/php-4.0.1pl2/ext/informix'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/src/php-4.0.1pl2/ext/informix'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/src/php-4.0.1pl2/ext'
> gmake: *** [all-recursive] Error 1
>
>
>
> --------------------------------------------------------------------------
-
>
>
> Full Bug description available at: http://bugs.php.net/?id=6163
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>