Skip to Content.
Sympa Menu

freetds - Re: some errors when compiling php4 with freetds

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "McDonald, Jon" <jonm AT entrigue.net>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: some errors when compiling php4 with freetds
  • Date: Wed, 11 Jul 2001 06:25:12 -0400


Just Confirmed that 4.0.6 does automagically detect --enable-dbmfix
You no longer need to edit PHP source to replace dbopen with
tdsdbopen...

Jon McDonald
Entrigue Systems, Inc.
www.entrigue.net
Voice: 404-406-4064
Email: jonm AT entrigue.net


-----Original Message-----
From: Brian Bruns [mailto:camber AT ais.org]
Sent: Monday, July 09, 2001 3:56 PM
To: TDS Development Group
Subject: [freetds] Re: some errors when compiling php4 with freetds



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
>


---
You are currently subscribed to freetds as: [jonm AT entrigue.net]
To unsubscribe, forward this message to
$subst('Email.Unsub')




Archive powered by MHonArc 2.6.24.

Top of Page