some errors when compiling php4 with freetds
Brian Bruns
camber at ais.org
Mon Jul 9 15:55:48 EDT 2001
You've compiled freetds with the --with-dbmfix flag which automatically
renames dbopen() to tdsdbopen() to avoid a naming conflict with dbm.
You have a couple of choices.
1) upgrade to PHP 4.0.6 which (supposedly) detects this automagically
2) use FreeTDS 0.52 without the dbmfix which #define's dbopen as tdsdbopen
instead of making it a library object
3) edit the php source in ext/sybase to replace dbopen with tdsdbopen and
recompile (Users Guide has better instructions about this).
Cheers,
Brian
On Mon, 9 Jul 2001, dongrui wrote:
> after I've installed freetds and php4 successfully, I met some mistake
> when compiling apache, the parameter to configure apache I use is like
> this :
>
> ./configure --prefix=/usr/local/apache \
> --activate-module=src/modules/php4/libphp4.a \
> --enable-module=php4 \
> --activate-module=src/modules/perl/libperl.a \
> --enable-module=perl
>
> then errors appear in the step "make" and the mistake is :
>
> /usr/src/php-4.0.1/ext/standard/file.c:599: the use of `tempnam' is
> dangerous, better use `mkstemp'
> modules/php4/libphp4.a(sybase.o): In function `php_sybase_do_connect':
> /usr/src/php-4.0.1/ext/sybase/sybase.c:360: undefined reference to
> `dbopen'
> /usr/src/php-4.0.1/ext/sybase/sybase.c:396: undefined reference to
> `dbopen'
> /usr/src/php-4.0.1/ext/sybase/sybase.c:443: undefined reference to
> `dbopen'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/usr/src/apache_1.3.12/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/usr/src/apache_1.3.12'
> make: *** [build] Error 2
>
> could anybody give me a hand? thanks
>
More information about the FreeTDS
mailing list