Skip to Content.
Sympa Menu

freetds - Re: Conflicting Type for 'RETCODE'

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Chris Lee <Chrislee AT centurycity.com.hk>
  • To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
  • Cc: "'camber AT ais.org'" <camber AT ais.org>
  • Subject: Re: Conflicting Type for 'RETCODE'
  • Date: Wed, 2 May 2001 18:17:44 +0800


Dear Brian,

Are you meaning to use Sybase OpenClient instead?

Regards,
Chris Lee

-----Original Message-----
From: Brian Bruns [mailto:camber AT ais.org]
Sent: Tuesday, April 24, 2001 9:03 PM
To: TDS Development Group
Subject: [freetds] Re: Conflicting Type for 'RETCODE'



Unfortunately, dblib chose *alot* of names that could possibly conflict
with other libraries. (such as dbopen() conflicting with dbm, DBINT
conflict with a graphics library I used to use, etc...) How I got around
it (I also have need to run PHP with both Sybase and DB2 extensions at
work) was to compile PHP with --with-sybase-ct so ctlib was used instead.

Brian

On Tue, 24 Apr 2001, Chris Lee wrote:

> Dear all,
>
> OS: Redhat Linux 7.1 / i386
>
> I want to compile PHP 4.04pl1 with the the following config:
> ./configure --enable-track-vars --with-sybase=/usr/local/freetds
> --with-ibm-db2=/home/db2inst1/sqllib
>
> After I run MAKE, the following error occur:
>
> In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42,
> from /usr/src/php-4.0.4pl1/ext/odbc/php_odbc.h:160,
> from internal_functions.c:39:
> /home/db2inst1/sqllib/include/sqlcli.h:344: conflicting types for
> `RETCODE'
> /usr/local/freetds/include/sybdb.h:72: previous declaration of `RETCODE'
> make[2]: *** [internal_functions.lo] Error 1
> make[2]: Leaving directory `/usr/src/php-4.0.4pl1/main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/php-4.0.4pl1/main'
> make: *** [all-recursive] Error 1
>
>
> I checked the source code and found
>
> /sqlcli.h
> typedef signed short RETCODE;
>
> /sydbd.h
> typedef int RETCODE;
>
> Can I change the typedef to signed short in sysdb.h file?
> Any other workaround.
>
> Many thanks in advance for newbie question.

>
> Regards,
> Chris Lee
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to
$subst('Email.Unsub')
>


---
You are currently subscribed to freetds as: [Chrislee AT centurycity.com.hk]
To unsubscribe, forward this message to
$subst('Email.Unsub')



  • Re: Conflicting Type for 'RETCODE', Chris Lee, 05/02/2001

Archive powered by MHonArc 2.6.24.

Top of Page