php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3181 PHP4.0b3 doesn't compile with Solid 3.0: "undefined reference"
Submitted: 2000-01-11 16:14 UTC Modified: 2000-07-29 15:19 UTC
From: petri dot edelmann at slk dot fi Assigned: kara (profile)
Status: Closed Package: Solid related
PHP Version: 4.0 Beta 3 OS: Linux 2.2.7 kernel (SuSE)
Private report: No CVE-ID: None
 [2000-01-11 16:14 UTC] petri dot edelmann at slk dot fi
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-16 05:31 UTC] kara at cvs dot php dot net
The libraries for Solid are not correctly detected /added by the configuration scripts
 [2000-07-14 15:28 UTC] kalowsky at cvs dot php dot net
Recent submissions *should* fix this problem.
Unfortunately I do not have a Solid3.0 system, nor a Linux system to test against.  Please test and comment back.
 [2000-07-29 15:19 UTC] waldschrott@php.net
I assume this is outdated, if not reopen.
 [2011-04-05 00:12 UTC] jose dot nobile at gmail dot com
10 years later, I'm using PHP 5.3.6 and ...

ext/odbc/.libs/php_odbc.o: In function `_free_odbc_result':
/root/php-5.3.6/ext/odbc/php_odbc.c:439: undefined reference to `SQLFreeStmt'
ext/odbc/.libs/php_odbc.o: In function `safe_odbc_disconnect':
/root/php-5.3.6/ext/odbc/php_odbc.c:457: undefined reference to `SQLDisconnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:460: undefined reference to `SQLTransact'
/root/php-5.3.6/ext/odbc/php_odbc.c:461: undefined reference to `SQLDisconnect'
ext/odbc/.libs/php_odbc.o: In function `_close_odbc_conn':
/root/php-5.3.6/ext/odbc/php_odbc.c:488: undefined reference to `SQLFreeConnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:489: undefined reference to `SQLFreeEnv'
ext/odbc/.libs/php_odbc.o: In function `_close_odbc_pconn':
/root/php-5.3.6/ext/odbc/php_odbc.c:516: undefined reference to `SQLFreeConnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:517: undefined reference to `SQLFreeEnv'
ext/odbc/.libs/php_odbc.o: In function `odbc_sql_error':
/root/php-5.3.6/ext/odbc/php_odbc.c:889: undefined reference to `SQLError'
ext/odbc/.libs/php_odbc.o: In function `odbc_bindcols':
/root/php-5.3.6/ext/odbc/php_odbc.c:955: undefined reference to 
`SQLColAttributes'
/root/php-5.3.6/ext/odbc/php_odbc.c:957: undefined reference to 
`SQLColAttributes'
/root/php-5.3.6/ext/odbc/php_odbc.c:980: undefined reference to 
`SQLColAttributes'
/root/php-5.3.6/ext/odbc/php_odbc.c:989: undefined reference to `SQLBindCol'
ext/odbc/.libs/php_odbc.o: In function `odbc_transact':
/root/php-5.3.6/ext/odbc/php_odbc.c:1011: undefined reference to `SQLTransact'
ext/odbc/.libs/php_odbc.o: In function `odbc_column_lengths':
/root/php-5.3.6/ext/odbc/php_odbc.c:1071: undefined reference to 
`SQLColAttributes'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_prepare':
/root/php-5.3.6/ext/odbc/php_odbc.c:1161: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1190: undefined reference to `SQLPrepare'
/root/php-5.3.6/ext/odbc/php_odbc.c:1202: undefined reference to `SQLNumParams'
/root/php-5.3.6/ext/odbc/php_odbc.c:1203: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_execute':
/root/php-5.3.6/ext/odbc/php_odbc.c:1272: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1286: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1296: undefined reference to 
`SQLDescribeParam'
/root/php-5.3.6/ext/odbc/php_odbc.c:1301: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1336: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1348: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1363: undefined reference to 
`SQLBindParameter'
/root/php-5.3.6/ext/odbc/php_odbc.c:1375: undefined reference to 
`SQLBindParameter'
/root/php-5.3.6/ext/odbc/php_odbc.c:1382: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1395: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1401: undefined reference to `SQLExecute'
/root/php-5.3.6/ext/odbc/php_odbc.c:1408: undefined reference to `SQLParamData'
/root/php-5.3.6/ext/odbc/php_odbc.c:1411: undefined reference to `SQLPutData'
/root/php-5.3.6/ext/odbc/php_odbc.c:1430: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1444: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_cursor':
/root/php-5.3.6/ext/odbc/php_odbc.c:1475: undefined reference to `SQLGetInfo'
/root/php-5.3.6/ext/odbc/php_odbc.c:1482: undefined reference to 
`SQLGetCursorName'
/root/php-5.3.6/ext/odbc/php_odbc.c:1489: undefined reference to `SQLError'
/root/php-5.3.6/ext/odbc/php_odbc.c:1494: undefined reference to 
`SQLSetCursorName'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_data_source':
/root/php-5.3.6/ext/odbc/php_odbc.c:1540: undefined reference to 
`SQLDataSources'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_exec':
/root/php-5.3.6/ext/odbc/php_odbc.c:1595: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1624: undefined reference to `SQLExecDirect'
/root/php-5.3.6/ext/odbc/php_odbc.c:1630: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:1635: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_fetch_into':
/root/php-5.3.6/ext/odbc/php_odbc.c:1857: undefined reference to `SQLFetch'
/root/php-5.3.6/ext/odbc/php_odbc.c:1894: undefined reference to `SQLGetData'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_fetch_row':
/root/php-5.3.6/ext/odbc/php_odbc.c:1997: undefined reference to `SQLFetch'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_result':
/root/php-5.3.6/ext/odbc/php_odbc.c:2084: undefined reference to `SQLFetch'
/root/php-5.3.6/ext/odbc/php_odbc.c:2111: undefined reference to 
`SQLColAttributes'
/root/php-5.3.6/ext/odbc/php_odbc.c:2123: undefined reference to `SQLGetData'
/root/php-5.3.6/ext/odbc/php_odbc.c:2167: undefined reference to `SQLGetData'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_result_all':
/root/php-5.3.6/ext/odbc/php_odbc.c:2222: undefined reference to `SQLFetch'
/root/php-5.3.6/ext/odbc/php_odbc.c:2267: undefined reference to `SQLGetData'
/root/php-5.3.6/ext/odbc/php_odbc.c:2303: undefined reference to `SQLFetch'
ext/odbc/.libs/php_odbc.o: In function `odbc_sqlconnect':
/root/php-5.3.6/ext/odbc/php_odbc.c:2363: undefined reference to `SQLAllocEnv'
/root/php-5.3.6/ext/odbc/php_odbc.c:2364: undefined reference to 
`SQLAllocConnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:2418: undefined reference to 
`SQLSetConnectOption'
/root/php-5.3.6/ext/odbc/php_odbc.c:2421: undefined reference to 
`SQLFreeConnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:2450: undefined reference to 
`SQLDriverConnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:2452: undefined reference to `SQLConnect'
/root/php-5.3.6/ext/odbc/php_odbc.c:2466: undefined reference to 
`SQLFreeConnect'
ext/odbc/.libs/php_odbc.o: In function `odbc_do_connect':
/root/php-5.3.6/ext/odbc/php_odbc.c:2584: undefined reference to `SQLGetInfo'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_num_rows':
/root/php-5.3.6/ext/odbc/php_odbc.c:2706: undefined reference to `SQLRowCount'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_next_result':
/root/php-5.3.6/ext/odbc/php_odbc.c:2736: undefined reference to 
`SQLMoreResults'
/root/php-5.3.6/ext/odbc/php_odbc.c:2738: undefined reference to `SQLFreeStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:2739: undefined reference to `SQLNumParams'
/root/php-5.3.6/ext/odbc/php_odbc.c:2740: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_field_type':
/root/php-5.3.6/ext/odbc/php_odbc.c:2840: undefined reference to 
`SQLColAttributes'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_autocommit':
/root/php-5.3.6/ext/odbc/php_odbc.c:2912: undefined reference to 
`SQLSetConnectOption'
/root/php-5.3.6/ext/odbc/php_odbc.c:2921: undefined reference to 
`SQLGetConnectOption'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_setoption':
/root/php-5.3.6/ext/odbc/php_odbc.c:3029: undefined reference to 
`SQLSetConnectOption'
/root/php-5.3.6/ext/odbc/php_odbc.c:3038: undefined reference to 
`SQLSetStmtOption'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_tables':
/root/php-5.3.6/ext/odbc/php_odbc.c:3079: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3097: undefined reference to `SQLTables'
/root/php-5.3.6/ext/odbc/php_odbc.c:3110: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_columns':
/root/php-5.3.6/ext/odbc/php_odbc.c:3146: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3166: undefined reference to `SQLColumns'
/root/php-5.3.6/ext/odbc/php_odbc.c:3179: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_columnprivileges':
/root/php-5.3.6/ext/odbc/php_odbc.c:3216: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3229: undefined reference to 
`SQLColumnPrivileges'
/root/php-5.3.6/ext/odbc/php_odbc.c:3242: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_foreignkeys':
/root/php-5.3.6/ext/odbc/php_odbc.c:3292: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3305: undefined reference to 
`SQLForeignKeys'
/root/php-5.3.6/ext/odbc/php_odbc.c:3320: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_gettypeinfo':
/root/php-5.3.6/ext/odbc/php_odbc.c:3358: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3371: undefined reference to 
`SQLGetTypeInfo'
/root/php-5.3.6/ext/odbc/php_odbc.c:3380: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_primarykeys':
/root/php-5.3.6/ext/odbc/php_odbc.c:3415: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3428: undefined reference to 
`SQLPrimaryKeys'
/root/php-5.3.6/ext/odbc/php_odbc.c:3440: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_procedurecolumns':
/root/php-5.3.6/ext/odbc/php_odbc.c:3481: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3494: undefined reference to 
`SQLProcedureColumns'
/root/php-5.3.6/ext/odbc/php_odbc.c:3507: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_procedures':
/root/php-5.3.6/ext/odbc/php_odbc.c:3548: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3561: undefined reference to `SQLProcedures'
/root/php-5.3.6/ext/odbc/php_odbc.c:3573: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_specialcolumns':
/root/php-5.3.6/ext/odbc/php_odbc.c:3616: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3629: undefined reference to 
`SQLSpecialColumns'
/root/php-5.3.6/ext/odbc/php_odbc.c:3644: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_statistics':
/root/php-5.3.6/ext/odbc/php_odbc.c:3685: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3698: undefined reference to `SQLStatistics'
/root/php-5.3.6/ext/odbc/php_odbc.c:3712: undefined reference to 
`SQLNumResultCols'
ext/odbc/.libs/php_odbc.o: In function `zif_odbc_tableprivileges':
/root/php-5.3.6/ext/odbc/php_odbc.c:3748: undefined reference to `SQLAllocStmt'
/root/php-5.3.6/ext/odbc/php_odbc.c:3761: undefined reference to 
`SQLTablePrivileges'
/root/php-5.3.6/ext/odbc/php_odbc.c:3773: undefined reference to 
`SQLNumResultCols'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC