Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > Database Drivers and APIs
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2009-01-29   #1 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default Errors while compiling Ingres support PHP 4.3.8

Dear All,

I am running into problems while compiling ingres support for PHP 4.3.8. PHP compile works fine but 'make' throws the following error. Could someone please help?

Platform is Solaris 10 SPARC.

#gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)


During my php config i use
--with-ingres=/opt/IngresII/ingres
(/opt/IngreII/ingres is where my ingres libraries are)

#ls /opt/IngresII/ingres
abf bin files install Local PATCH.ING plist sig vdba version.rel
admin demo ice lib patch.doc patch7077 release.doc utility version.dat


Make throws errors below. I am absolutely stuck with this so any help would be much appreciated.

Make errors.
/bin/sh /usr/local/src/php/php-4.3.8-apache2/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -O3 -mcpu=ultrasparc -mtune=ultrasparc -DSHORT=SHORT -L/usr/ucblib -L/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3 -L/usr/local/lib -L/usr/openwin/lib -L/opt/pkg/IngresII-2.0-dunham-gen/ingres/lib -L/usr/local/ldapcsdk/lib -L/usr/local/mysql/mysql-3.23.39-sun-solaris2.7-sparc/lib -L/opt/pkg/oracle/lib -L/usr/local/pgsql/7.4.2/lib -L/usr/local/freetds/0.62/lib -R /usr/ucblib -R /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3 -R /usr/local/lib -R /usr/openwin/lib -R /opt/pkg/IngresII-2.0-dunham-gen/ingres/lib -R /usr/local/ldapcsdk/lib -R /usr/local/mysql/mysql-3.23.39-sun-solaris2.7-sparc/lib -R /opt/pkg/oracle/lib -R /usr/local/pgsql/7.4.2/lib -R /usr/local/freetds/0.62/lib ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/ctype/ctype.lo ext/curl/curl.lo ext/curl/curlstreams.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/gd/libgd/xbm.lo ext/ingres_ii/ii.lo ext/ldap/ldap.lo ext/mysql/php_mysql.lo ext/oci8/oci8.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/pgsql/pgsql.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.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/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/sybase_ct/php_sybase_ct.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo ext/yp/yp.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_scandir.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 -lnsl -lct -lpq -lmysqlclient -lssl3 -lprldap50 -lldap50 -lssldap50 -lplds4 -lplc4 -lnspr4 -lingres -liiapi -lttf -lX11 -lXpm -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -lnsl -lsocket -lgcc -lcurl -lssl -lcrypto -lldap -lsocket -lnsl -lz -lnsl -lsocket -lgen -ldl -lsched -lclntsh -o sapi/cli/php
Undefined first referenced
symbol in file
elf32_getshdr /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf32_getehdr /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf_nextscn /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf_strptr /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf_end /opt/IngresII/ingres/lib/libingres.a(object.o)
elf_begin /opt/IngresII/ingres/lib/libingres.a(object.o)
elf_version /opt/IngresII/ingres/lib/libingres.a(object.o)
elf_getdata /opt/IngresII/ingres/lib/libingres.a(symbol.o)
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sapi/cli/php'
sumeet_khokhani is offline   Reply With Quote
Old 2009-01-29   #2 (permalink)
Ingres Dev - PHP + Ruby
 
grant's Avatar
 
Join Date: Mar 2007
Location: Valladolid, EspaƱa
Posts: 469
Blog Entries: 1
Send a message via MSN to grant
Default

Quote:
Originally Posted by sumeet_khokhani View Post
Undefined first referenced
symbol in file
elf32_getshdr /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf32_getehdr /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf_nextscn /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf_strptr /opt/IngresII/ingres/lib/libingres.a(symbol.o)
elf_end /opt/IngresII/ingres/lib/libingres.a(object.o)
elf_begin /opt/IngresII/ingres/lib/libingres.a(object.o)
elf_version /opt/IngresII/ingres/lib/libingres.a(object.o)
elf_getdata /opt/IngresII/ingres/lib/libingres.a(symbol.o)
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sapi/cli/php'
Hi,

You might be better off installing the updated PECL Ingres extension, rather than what comes with PHP 4.3.8. Since that release of PHP, in July 2004, there have been a number of major changes to the driver. The instructions for downloading and building the PECL Ingres extension can be found in the README.html.

regards

grant
grant is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved