Recently ptlib 2.4.2 started to fail to build with this error: make[1]: Entering directory `/usr/src/ptlib-2.4.2' make[1]: Leaving directory `/usr/src/ptlib-2.4.2' set -e; if test -e src ; then /usr/bin/make -C src optshared; fi; if test -e plugins ; then /usr/bin/make -C plugins optshared; fi; make[1]: Entering directory `/usr/src/ptlib-2.4.2/src' /usr/bin/make DEBUG= P_SHAREDLIB=1 default_target make[2]: Entering directory `/usr/src/ptlib-2.4.2/src' g++ -DPTRACING=1 -D_REENTRANT -fno-exceptions -Wall -fPIC -DPIC -DNDEBUG -I/usr/src/ptlib-2.4.2/include -Os -march=pentium4 -pipe -Os -felide-constructors -Wreorder -c ptclib/pssl.cxx -o /usr/src/ptlib-2.4.2/lib_linux_x86/obj/pssl.o g++ -DPTRACING=1 -D_REENTRANT -fno-exceptions -Wall -fPIC -DPIC -DNDEBUG -I/usr/src/ptlib-2.4.2/include -Os -march=pentium4 -pipe -Os -felide-constructors -Wreorder -c ptclib/podbc.cxx -o /usr/src/ptlib-2.4.2/lib_linux_x86/obj/podbc.o make[2]: Leaving directory `/usr/src/ptlib-2.4.2/src' make[1]: Leaving directory `/usr/src/ptlib-2.4.2/src' In file included from /usr/src/ptlib-2.4.2/include/ptclib/podbc.h:105, from ptclib/podbc.cxx:40: /usr/include/sqlext.h:2111: error: 'BOOL' does not name a type ptclib/podbc.cxx: In member function 'PBoolean PODBCRecord::IsColumnUpdatable(PINDEX)': ptclib/podbc.cxx:1534: error: cannot convert 'SWORD*' to 'SQLINTEGER*' for argument '7' to 'SQLRETURN SQLColAttribute(void*, SQLUSMALLINT, SQLUSMALLINT, void*, SQLSMALLINT, SQLSMALLINT*, SQLINTEGER*)' ptclib/podbc.cxx: In member function 'PBoolean PODBCRecord::IsColumnAutoIndex(PINDEX)': ptclib/podbc.cxx:1548: error: cannot convert 'SWORD*' to 'SQLINTEGER*' for argument '7' to 'SQLRETURN SQLColAttribute(void*, SQLUSMALLINT, SQLUSMALLINT, void*, SQLSMALLINT, SQLSMALLINT*, SQLINTEGER*)' ptclib/podbc.cxx: In member function 'unsigned int PODBCRecord::ColumnPrecision(PINDEX)': ptclib/podbc.cxx:1561: error: cannot convert 'SWORD*' to 'SQLINTEGER*' for argument '7' to 'SQLRETURN SQLColAttribute(void*, SQLUSMALLINT, SQLUSMALLINT, void*, SQLSMALLINT, SQLSMALLINT*, SQLINTEGER*)' make[2]: *** [/usr/src/ptlib-2.4.2/lib_linux_x86/obj/podbc.o] Error 1 make[1]: *** [optshared] Error 2 make: *** [optshared] Error 2 The include /usr/include/sqlext.h:2111 is from unixodbc 2.2.13. I am fairly sure that I had unixodbc installed before when ptlib was building fine. It might have been updated since that time. I removed unixodbc and ptlib built fine. Any way to make these co-exist? George -- George Sherwood Source Mage GNU/Linux Lead Developer http://www.sourcemage.org
Attachment:
signature.asc
Description: PGP signature