[unixODBC-dev] unixODBC-2.2.14 compile error with qt-4.5.2

Peng Yu pengyu.ut at gmail.com
Wed Sep 30 18:44:28 BST 2009


I have qt-x11-opensource-src-4.5.2 compiled and installed.

I successfully configured unixODBC-2.2.14. But 'make' gives me the
following error. Could somebody help me and let me know how to fix the
problem?

Regards,
Peng

 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"unixODBC\"
-DVERSION=\"2.2.14\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_SEM_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ICONV=1 -DICONV_CONST=
-DHAVE_LIBCRYPT=1 -DHAVE_READLINE_HISTORY_H=1 -DHAVE_READLINE=1
-DHAVE_SCANDIR=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_TIME_H=1
-DSIZEOF_LONG=8 -DPLATFORM64=1 -DHAVE_LONG_LONG=1 -DSIZEOF_LONG_INT=8
-DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_VSNPRINTF=1
-DHAVE_STRTOL=1 -DHAVE_ATOLL=1 -DHAVE_STRTOLL=1 -DHAVE_ENDPWENT=1
-DHAVE_GETTIMEOFDAY=1 -DHAVE_FTIME=1 -DHAVE_TIME=1 -DHAVE_LIBPTHREAD=1
-D_REENTRANT=1 -DHAVE_LOCALTIME_R=1 -DHAVE_FTOK=1 -DHAVE_SEMGET=1
-DHAVE_SHMGET=1 -DHAVE_SEMOP=1 -DHAVE_SNPRINTF=1
-DNEED_SEMUNDO_UNION=1 -DCOLLECT_STATS=1 -DQT_V4LAYOUT=1
-DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PWD_H=1
-DHAVE_CRYPT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1
-DHAVE_STRING_H=1 -DHAVE_LOCALE_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_SEM_H=1 -DHAVE_STDARG_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_SYS_TIMEB_H=1 -DHAVE_TIME_H=1 -DHAVE_DIRENT_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_PUTENV=1
-DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_SETENV=1
-DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DUNIXODBC_SOURCE=1 -I. -I.
-I../include -I/home/pengy/utility/linux/usr/local/Trolltech/Qt-4.5.2/include
-I/home/pengy/utility/linux/usr/local/Trolltech/Qt-4.5.2/include/QtCore
-I/home/pengy/utility/linux/usr/local/Trolltech/Qt-4.5.2/include/QtGui
-I/home/pengy/utility/linux/usr/local/Trolltech/Qt-4.5.2/include/QtAssistant
-I/home/pengy/utility/linux/usr/local/Trolltech/Qt-4.5.2/include/QtNetwork
-DTHEPREFIX=\"/home/pengy/utility/linux\"
-DSYSTEM_FILE_PATH=\"/home/pengy/utility/linux/etc\"
-DDEFLIB_PATH=\"/home/pengy/utility/linux/lib\" -DSHLIBEXT=\".so\"
-I../libltdl -I/home/pengy/utility/linux/usr/local/Trolltech/Qt-4.5.2/include
-I/home/pengy/utility/linux/opt/Python-2.6.2/include/python2.6
-I/home/pengy/utility/linux/opt/gcc-4.3.4/include
-I/home/pengy/utility/linux/include -g -O2 -MT mCAbout.lo -MD -MP -MF
.deps/mCAbout.Tpo -c mCAbout.cpp  -fPIC -DPIC -o .libs/mCAbout.o
mCAbout.cpp:14:2: error: #error "This file was generated using the moc
from 4.3.2. It"
mCAbout.cpp:15:2: error: #error "cannot be used with the include files
from this version of Qt."
mCAbout.cpp:16:2: error: #error "(The moc has changed too much.)"
make[1]: *** [mCAbout.lo] Error 1
make[1]: Leaving directory
`/home/pengy/download/linux/openoffice/unixODBC-2.2.14/odbcinstQ4'
make: *** [all-recursive] Error 1


More information about the unixODBC-dev mailing list