conflicting types for 'RETCODE'
| From: | Chris Lee | Date: | Thu, 26 Apr 2001 01:37:36 +0000 |
| Subject: | conflicting types for 'RETCODE' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50408@lists.php.net to get a copy of this message | ||
Dear all,
OS: Redhat Linux 7.1 / i686
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