Skip to Content.
Sympa Menu

freetds - Installation question (Solaris)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: David Jones <David.Jones AT ginger.com>
  • To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
  • Subject: Installation question (Solaris)
  • Date: Tue, 3 Jul 2001 11:30:17 +0100


I am installing PHP as an Apache plugin with FreeTDS support.

The installation goes fine, until the very last stage when I come to
configure Apache, when I get the following error message:

Creating Makefile in src
+ configured for Solaris 270 platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; gcc -DSOLARIS2=270 -I/usr/local/src/php-4.0.5
-I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main
-I/usr/local/src/php-4.0.5/Zend -I/usr/local/src/php-4.0.5/Zend
-I/usr/local/src/php-4.0.5/TSRM -I/usr/local/src/php-4.0.5/TSRM
-I/usr/local/src/php-4.0.5 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` -o helpers/dummy helpers/dummy.c -R/usr/ucblib
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3
-R/usr/local/freetds/lib -L/usr/ucblib
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3
-L/usr/local/freetds/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lpam -ldl -lsybdb -lresolv -lresolv -lm
-ldl -lcrypt -lnsl -lsocket -lsocket -lgcc -lsocket -lnsl
Undefined first referenced
symbol in file
tds_put_n /usr/local/freetds/lib/libsybdb.so
tds_alloc_login /usr/local/freetds/lib/libsybdb.so
tds_process_result_tokens /usr/local/freetds/lib/libsybdb.so
...
[loads of similar lines deleted to save space]
...
tds_put_int /usr/local/freetds/lib/libsybdb.so
g_tds_msg_handler /usr/local/freetds/lib/libsybdb.so
tds_get_byte /usr/local/freetds/lib/libsybdb.so
get_size_by_type /usr/local/freetds/lib/libsybdb.so
tds_set_host /usr/local/freetds/lib/libsybdb.so
tds_process_row_tokens /usr/local/freetds/lib/libsybdb.so
ld: fatal: Symbol referencing errors. No output written to helpers/dummy
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `dummy'
======== Error Output for sanity check ========
============= End of Error Report =============

Aborting!



I am using Apache 1.3.19, PHP 4.0.5 and FreeTDS 0.51.

FreeTDS has the following configuration parameters:
./configure --with-tdsver=7.0 --prefix=/usr/local/freetds --enable-msdblib
--with-gnu-lib --enable-shared --enable-static

PHP has the following configuration parameters:
./configure --without-mysql --with-apache=../apache_1.3.19
--enable-track-vars --with-sybase=/usr/local/freetds

and Apache:
./configure --activate-module=src/modules/php4/libphp4.a
--prefix=usr/local/www

Sorry for the long e-mail. Any help you can give me would be appreciated.

David Jones
Head of IT - South, SMG plc
t +44 20 7432 3346 f +44 20 7432 3456




Archive powered by MHonArc 2.6.24.

Top of Page