php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28560 Error compile with option --with-custom-odbc
Submitted: 2004-05-28 17:17 UTC Modified: 2004-12-15 01:30 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: sergio dot ramon at yucatan dot gob dot mx Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: Irrelevant OS: Solaris 8
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: sergio dot ramon at yucatan dot gob dot mx
New email:
PHP Version: OS:

 

 [2004-05-28 17:17 UTC] sergio dot ramon at yucatan dot gob dot mx
Description:
------------
When compile with option --with-custom-odbc the compilation isn't. them message Undefined                       first referenced
 symbol                             in file
SQLTransact                         ext/odbc/php_odbc.lo
The include odbc.h are in the include dir
CUSTOM_ODBC_LIBS="-L/usr/wsrt/odbc/lib -lodbc -lodbcinst";export CUSTOM_ODBC_LIBS
LDFLAGS=; export LDFLAGS
CFLAGS="-I/usr/wsrt/odbc/include -I/usr/local/apache2/include -L/usr/wsrt/odbc/lib -lodbc";export CFLAGS


Reproduce code:
---------------
/bin/sh libtool --silent --mode=compile gcc  -Isapi/cli/ -I/export/home/vbalcaza/php-4.3.1/sapi/cli/ -DPHP_ATOM_INC -I/export/home/vbalcaza/php-4.3.1/include -I/export/home/vbalcaza/php-4.3.1/main -I/export/home/vbalcaza/php-4.3.1 -I/usr/local/apache2/include -I/export/home/vbalcaza/php-4.3.1/Zend -I/usr/local/include -I/include -I/export/home/vbalcaza/php-4.3.1/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/export/home/vbalcaza/php-4.3.1/TSRM  -g -O2  -prefer-pic -c /export/home/vbalcaza/php-4.3.1/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo 
/bin/sh libtool --silent --mode=compile gcc  -Isapi/cli/ -I/export/home/vbalcaza/php-4.3.1/sapi/cli/ -DPHP_ATOM_INC -I/export/home/vbalcaza/php-4.3.1/include -I/export/home/vbalcaza/php-4.3.1/main -I/export/home/vbalcaza/php-4.3.1 -I/usr/local/apache2/include -I/export/home/vbalcaza/php-4.3.1/Zend -I/usr/local/include -I/include -I/export/home/vbalcaza/php-4.3.1/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/export/home/vbalcaza/php-4.3.1/TSRM  -g -O2  -prefer-pic -c /export/home/vbalcaza/php-4.3.1/sapi/cli/getopt.c -o sapi/cli/getopt.lo 
/bin/sh libtool --silent --mode=compile gcc  -Imain/ -I/export/home/vbalcaza/php-4.3.1/main/ -DPHP_ATOM_INC -I/export/home/vbalcaza/php-4.3.1/include -I/export/home/vbalcaza/php-4.3.1/main -I/export/home/vbalcaza/php-4.3.1 -I/usr/local/apache2/include -I/export/home/vbalcaza/php-4.3.1/Zend -I/usr/local/include -I/include -I/export/home/vbalcaza/php-4.3.1/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/export/home/vbalcaza/php-4.3.1/TSRM  -g -O2  -prefer-pic -c main/internal_functions_cli.c -o main/internal_functions_cli.lo 
/bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2  -L/usr/wsrt/odbc/lib -avoid-version -module -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2 -L/usr/local/lib  -R /usr/ucblib -R /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2 -R /usr/local/lib ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/ctype/ctype.lo ext/gd/gd.lo ext/gd/gdttf.lo ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo ext/gd/libgd/gd_gif_in.lo ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.lo ext/mysql/libmysql/int2str.lo ext/mysql/libmysql/str2int.lo ext/mysql/libmysql/strinstr.lo ext/mysql/libmysql/strcont.lo ext/mysql/libmysql/strcend.lo ext/mysql/libmysql/bchange.lo ext/mysql/libmysql/bmove.lo ext/mysql/libmysql/bmove_upp.lo ext/mysql/libmysql/longlong2str.lo ext/mysql/libmysql/strtoull.lo ext/mysql/libmysql/strtoll.lo ext/mysql/libmysql/charset.lo ext/mysql/libmysql/ctype.lo ext/odbc/php_odbc.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lpng -lz -lz -lcrypt -lresolv -lm -ldl -lnsl -lsocket -lgcc -lcrypt  -o sapi/cli/php
Undefined                       first referenced
 symbol                             in file
SQLTransact                         ext/odbc/php_odbc.lo
SQLExecute                          ext/odbc/php_odbc.lo
SQLProcedures                       ext/odbc/php_odbc.lo
SQLSetStmtOption                    ext/odbc/php_odbc.lo
SQLConnect                          ext/odbc/php_odbc.lo
SQLExecDirect                       ext/odbc/php_odbc.lo
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-15 01:30 UTC] sniper@php.net
User error. (setting any LDFLAGS, LIBS etc. prior to configure  is fatal)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 15:00:01 2025 UTC