Skip to Content.
Sympa Menu

freetds - Re: [freetds] php-4.3.10RC2 doesn't compile with freetds-0.63RC5

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Andre Konopka <andre.konopka AT presse-data.de>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] php-4.3.10RC2 doesn't compile with freetds-0.63RC5
  • Date: Fri, 17 Dec 2004 09:39:27 +0100

ZIGLIO, Frediano, VF-IT wrote:

Hi,

thank you for your hint. It works!!!

Best regards

Andre



Hi folks,


I just trying to compile php-4.3.10RC2 with freetds-0.63RC5...

Here is a snap from the compilation process....

/opt/pdwwwtst/pkgs/php-4.3.10RC2/ext/sybase/php_sybase_db.c: In function `php_sybase_do_connect':
/opt/pdwwwtst/pkgs/php-4.3.10RC2/ext/sybase/php_sybase_db.c:45
2: too few arguments to function `tdsdbopen'
/opt/pdwwwtst/pkgs/php-4.3.10RC2/ext/sybase/php_sybase_db.c:48
1: too few arguments to function `tdsdbopen'
/opt/pdwwwtst/pkgs/php-4.3.10RC2/ext/sybase/php_sybase_db.c:52
6: too few arguments to function `tdsdbopen'
make: *** [ext/sybase/php_sybase_db.lo] Fehler 1


Compiling with the older freetds-0.62.4 makes no trouble.



Best regards

Andre


PHP should always use dbopen, not tdsdbopen.

Add these lines to sybdb.h (I added these lines before dbordercol
declaration)

/* fix PHP problem */
#ifdef PHP_SYBASE_DBOPEN
#undef PHP_SYBASE_DBOPEN
#define PHP_SYBASE_DBOPEN dbopen
#endif

freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds



--
Mit freundlichen Grüßen


Andre Konopka
Basissysteme

RB Presse-Data GmbH
40196 Düsseldorf
Hausadresse:
Zülpicher Str. 8a Tel: 0211 / 5697- 379
40549 Düsseldorf Fax: 0211 / 5697- 352
E-Mail: Andre.Konopka AT Presse-Data.de




Archive powered by MHonArc 2.6.24.

Top of Page