[unixODBC-support] unixODBC 2.2.14 build error on 64-bit platforms

Wempa, Kristofer Kristofer.Wempa at sig.com
Fri Jun 26 16:21:42 BST 2009


I am trying to build unixODBC 2.2.14 on 6 different platforms (SLES9SP4, SLES10SP1, SLES10SP2 both 32-bit and 64-bit).  All of the 64-bit builds fail.  There are 2 issues.  The first issue is that the configure script hangs when trying to detect the QT directories.


I can get around this by specifying additional options on the configure line:

            ./configure --prefix={install path} --with-qt-dir=/usr/lib64/qt3 --with-qt-includes=/usr/lib64/qt3/include --with-qt-libraries=/usr/lib64/qt3/lib64

However, this should not be necessary.  The script should be able to determine where the 64-bit libraries are on a 64-bit server.  After I get passed the configure and run "make", I run into the same build failure on all 3 platforms:

if 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 -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/usr/lib64/qt3/include -I/usr/lib64/qt3/include/QtCore -I/usr/lib64/qt3/include/QtGui -I/usr/lib64/qt3/include/QtAssistant -I/usr/lib64/qt3/include/QtNetwork -DSYSTEM_FILE_PATH=\"/siglinux/rpm/SOURCES/IGNORE/ODBC-2.2.14/etc\" -I../libltdl    -g -O2 -MT results.o -MD -MP -MF ".deps/results.Tpo" -c -o results.o results.cpp; \
then mv -f ".deps/results.Tpo" ".deps/results.Po"; else rm -f ".deps/results.Tpo"; exit 1; fi
results.cpp: In member function âvoid dExtendedFetch::Ok()â:
results.cpp:2608: error: cannot convert âSQLUINTEGER*â to âSQLULEN*â for argument â4â to âSQLRETURN SQLExtendedFetch(void*, SQLUSMALLINT, SQLLEN, SQLULEN*, SQLUSMALLINT*)â
make[1]: *** [results.o] Error 1
make[1]: Leaving directory `/siglinux/rpm/SOURCES/IGNORE/unixODBC-2.2.14/odbctest'
make: *** [all-recursive] Error 1
sdlcuser at isdevbal806:(toolchain-staging):/siglinux/rpm/SOURCES/IGNORE/unixODBC-2.2.14<mailto:sdlcuser at isdevbal806:(toolchain-staging):/siglinux/rpm/SOURCES/IGNORE/unixODBC-2.2.14>>

None of the 32-bit builds give me this problem.  Also, version 2.2.12 gave me no such problems.  Is this a code problem or is it possible that I am doing something wrong.  Any help would be appreciated.  Thanks.



________________________________
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20090626/9c5d5ce4/attachment.html>


More information about the unixODBC-support mailing list