PHP 4.0 Bug #3181: PHP4.0b3 doesn't compile with Solid 3.0: "undefined reference"
| From: | petri dot edelmann at slk dot fi | Date: | Tue, 11 Jan 2000 21:14:04 +0000 |
| Subject: | PHP 4.0 Bug #3181: PHP4.0b3 doesn't compile with Solid 3.0: "undefined reference" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14510@lists.php.net to get a copy of this message | ||
From: petri.edelmann@slk.fi
Operating system: Linux 2.2.7 kernel (SuSE)
PHP version: 4.0 Beta 3
PHP Bug Type: Compile Failure
Bug description: PHP4.0b3 doesn't compile with Solid 3.0: "undefined reference"
Could you please help? Im desperately trying to get PHP4.0 work with Solid Server.
But the final linking phase stops after many "undefined reference" errors.
I have Solid 3.0 libraries that have following symlinks:
lrwxrwxrwx 1 170 users 10 Dec 11 19:59 libsolcli.a -> scllux30.a*
lrwxrwxrwx 1 170 users 11 Dec 11 19:59 libsolcli.so -> scllux30.so*
lrwxrwxrwx 1 170 users 10 Dec 11 19:59 libsolcliw.a -> scwlux30.a*
lrwxrwxrwx 1 170 users 11 Dec 11 19:59 libsolcliw.so -> scwlux30.so*
-rwxr--r-- 1 170 users 1098774 Mar 31 1999 scllux30.a*
-rwxr-xr-x 1 170 users 751732 Mar 31 1999 scllux30.so*
-rwxr--r-- 1 170 users 1098250 Mar 31 1999 scwlux30.a*
-rwxr-xr-x 1 170 users 751268 Mar 31 1999 scwlux30.so*
And I changed the ext/odbc/php_odbc.h include lines as suggested at
the some support messages to reflect the new include files:
#ifdef HAVE_SOLID /* Solid Server */
#define ODBC_TYPE "Solid"
#include <cli0cli.h>
#include <cli0defs.h>
#include <cli0env.h>
#undef HAVE_SQL_EXTENDED_FETCH
(instead of <cli0core.h>, <cli0ext1.h>)
Trying to install the php with:
./configure --with-solid=/usr/local/solidSDK30/Linux_libc5
produces the following lines:
/bin/sh ./libtool --silent --mode=link gcc -g -O2 -g -O2 -o libphp4.la -rpath
/usr/local/src/apache/php-4.0b3/libs main.lo internal_functi
ons.lo snprintf.lo php3_sprintf.lo configuration-parser.lo configuration-scanner
.lo request_info.lo safe_mode.lo fopen-wrappers.lo php3_realpath.lo alloca.lo ph
p_ini.lo SAPI.lo rfc1867.lo dlist.lo php_content_types.lo strlcpy.lo strlcat.lo
mergesort.lo libzend/libzend.la sapi/cgi/libphpsapi_cgi.la regex/libregex.la ext
/db/libphpext_db.la ext/odbc/libphpext_odbc.la ext/pcre/libphpext_pcre.la ext/se
ssion/libphpext_session.la ext/standard/libphpext_standard.la -ldl -lm -lresol
v -lnsl -lcrypt -lgdbm /usr/local/solidSDK30/Linux_libc5/lib/scllux30.so
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./libzend -I. -I./libzend -I/usr/local/sol
idSDK30/Linux_libc5/include -g -O2 -g -O2 -c stub.c
/bin/sh ./libtool --silent --mode=link gcc -g -O2 -g -O2 -o php -export-dynam
ic stub.o libphp4.la
.libs/libphp4.a(php_odbc.o): In function `_free_odbc_result':
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:151: undefined reference to
`SQLTransact'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:154: undefined reference to
`SQLFreeStmt'
.libs/libphp4.a(php_odbc.o): In function `_close_odbc_conn':
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:172: undefined reference to
`SQLDisconnect'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:173: undefined reference to
`SQLFreeConnect'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:174: undefined reference to
`SQLFreeEnv'
.libs/libphp4.a(php_odbc.o): In function `_close_odbc_pconn':
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:184: undefined reference to
`SQLDisconnect'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:185: undefined reference to
`SQLFreeConnect'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:186: undefined reference to
`SQLFreeEnv'
.libs/libphp4.a(php_odbc.o): In function `odbc_sql_error':
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:460: undefined reference to
`SQLError'
.libs/libphp4.a(php_odbc.o): In function `odbc_bindcols':
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:511: undefined reference to
`SQLFreeStmt'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:519: undefined reference to
`SQLColAttributes'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:524: undefined reference to
`SQLColAttributes'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:547: undefined reference to
`SQLColAttributes'
/usr/local/src/apache/php-4.0b3/ext/odbc/php_odbc.c:550: undefined reference to
`SQLBindCol'
.... and so on ....
Petri