php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15903 Compile failure when SAPDB + freeTDS
Submitted: 2002-03-06 11:27 UTC Modified: 2002-03-06 12:46 UTC
From: SM at cemag dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.2 OS: Linux 2.4.10
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: SM at cemag dot de
New email:
PHP Version: OS:

 

 [2002-03-06 11:27 UTC] SM at cemag dot de
Compiled PHP 4.1.2 with support for SAPDB with
--with-sapdb=/opt/sapdb/interfaces/odbc  --NO-PROBLEM

Compiled with support for MSSQL (freeTDS) with
--with-sybase=/usr/local/freetds  --NO-PROBLEM

BUT when I try to compile with both of them I get the following Compile-Error:

make[2]: Entering directory `/root/compile/php-4.1.2/main'
/bin/sh /root/compile/php-4.1.2/libtool --silent --mode=compile gcc  -I. -I/root/compile/php-4.1.2/main -I/root/compile/php-4.1.2/main -I/root/compile/php-4.1.2 -I/usr/include/apache -I/root/compile/php-4.1.2/Zend -I/usr/include/mysql -I/opt/sapdb/interfaces/odbc/incl -I/usr/local/freetds/include -I/root/compile/php-4.1.2/ext/xml/expat  -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -I/root/compile/php-4.1.2/TSRM -g -O2 -prefer-pic  -c internal_functions.c
In file included from /usr/local/freetds/include/sybfront.h:23,
                 from /root/compile/php-4.1.2/ext/sybase/php_sybase_db.h:67,
                 from internal_functions.c:40:
/usr/local/freetds/include/sybdb.h:72: conflicting types for `RETCODE'
/opt/sapdb/interfaces/odbc/incl/sqltypes.h:164: previous declaration of `RETCODE'
/usr/local/freetds/include/sybdb.h:80: conflicting types for `BOOL'
/opt/sapdb/interfaces/odbc/incl/WINDOWS.H:66: previous declaration of `BOOL'
/usr/local/freetds/include/sybdb.h:106: redefinition of `BYTE'
/opt/sapdb/interfaces/odbc/incl/WINDOWS.H:74: `BYTE' previously declared here
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/root/compile/php-4.1.2/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/compile/php-4.1.2/main'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-06 12:46 UTC] derick@php.net
This is a conflict between freedtds and the sapdb library, and PHP can't do anything about this problem.
You should contact the FreeTDS or SapDB guys and ask if they want to change the name of their constants.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Sep 27 23:01:26 2024 UTC