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

Andre Konopka andre.konopka at presse-data.de
Fri Dec 17 03:39:27 EST 2004


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



More information about the FreeTDS mailing list