ID:               29488
 Comment by:       patrick dot schutte at gmx dot de
 Reported By:      ssc at coolspot dot de
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: Linux 2.6.7 / Debian sarge
 PHP Version:      4.3.8
 New Comment:

it's not a freetds-Problem - the mssql-extentions in php-4.3.7, 4.3.8
causes the errors - try php-5.0.0 or 4.3.6


Previous Comments:
------------------------------------------------------------------------

[2004-08-02 10:02:48] ssc at coolspot dot de

Description:
------------
I installed freetds version 0.62.4 on some debian sarge system, using
./configure --prefix=/usr/freetds --enable-msdblib --with-tdsver=8.0
--enable-shared
echo "/usr/freetds/lib" >> /etc/ld.so.conf ; ldconfig
FreeTDS work ok.
I then tried to compile php with
... --with-mssql=/usr/freetds ...
and to link it against freetds resulting in :

In file included from /root/php-4.3.8/ext/mssql/php_mssql.c:33:
/root/php-4.3.8/ext/mssql/php_mssql.h:41: error: redefinition of
`SHORT'
/usr/freetds/include/sybdb.h:117: error: `SHORT' previously declared
here
make: *** [ext/mssql/php_mssql.lo] Fehler 1

I commented out the line 41 in ext/mssql/php_mssql.h,
which is only a typdef short SHORT;, and it then worked,
as expected.

Compiler Version used is :
Lese Spezifikationen von /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Konfiguriert mit: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread-Modell: posix
gcc-Version 3.3.4 (Debian 1:3.3.4-3)



Reproduce code:
---------------
Any

Expected result:
----------------
Should compile

Actual result:
--------------
Does not compile


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29488&edit=1

Reply via email to