Skip to Content.
Sympa Menu

freetds - conflicting types for `RETCODE'

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Benji Spencer <ben.spencer AT moody.edu>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: conflicting types for `RETCODE'
  • Date: Tue, 20 Aug 2002 06:55:50 -0500


Trying to compile PHP 4.0.6 + FreeTDS 0.53 on a Solaris 2.8 machine

I compiled FreeTDS with just a basic ./configure

My PHP configure is a bit more complicated though...

./configure --prefix=/usr/local/apache/www --with-apxs=/usr/local/apache/www/bin/apxs --enable-track-vars --enable-ftp --with-gd --enable-gd-imgstrttf --with-ttf --with-zlib=/usr/local --with-informix=/usr/local/ifmxsdk --with-ldap=/usr/local/netscape --with-mysql=/usr/local/mysql-old --with-mcrypt --with-pgsql --disable-debug --enable-libgcc --with-curl --with-imap --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-pspell=/usr/local --with-pdflib=/usr/local --with-sybase=/usr/local/freetds --with-xml

When I attempt to compile things --with-sybase, I get

In file included from /usr/local/freetds/include/sybfront.h:23,
from /usr/local/apache/www/src/php-4.0.6/ext/sybase/php_sybase_db.h:67,
from internal_functions.c:50:
/usr/local/freetds/include/sybdb.h:72: conflicting types for `RETCODE'
/usr/local/include/sqltypes.h:130: previous declaration of `RETCODE'
make[2]: *** [internal_functions.lo] Error 1

at the top of "/usr/local/include/sqltypes.h", I find

/*
* sqltypes.h
*
* $Id: sqltypes.h,v 1.2 1999/06/25 09:04:28 source Exp $
*
* ODBC typedefs
*
* The iODBC driver manager.

That header is part of iODBC?

Has anyone seen this before? Any way around it?

thanks
benji

---
Ben Spencer
Web Support
bspencer AT moody.edu
x 2288





Archive powered by MHonArc 2.6.24.

Top of Page