Ticket #2077 (new defect)

Opened 3 years ago

Last modified 10 months ago

libodbc++ still does not compile on AMD 64

Reported by: fgerlits Assigned to: anonymous
Priority: normal Milestone: 1.4.0-Monrovia
Component: Development Environment Version:
Severity: minor Keywords:
Cc:

Description

From the support list. Joe Brenner writes, I'm having some trouble getting the livesupport/campcaster code to build on an AMD64 ubuntu box (a dual core Opteron running "dapper"). ... Currently the build ("./bin/setupDevelopmentEnvironment.sh --apache-group=www-data") crashes like so:

 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT callablestatement.lo -MD -MP -MF .deps/callablestatement.Tpo -c callablestatement.cpp  -fPIC -DPIC -o .libs/callablestatement.o
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H  -I. -I. -I.. -I../include -I../include      -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT resultset.lo -MD -MP -MF ".deps/resultset.Tpo" \
	  -c -o resultset.lo `test -f 'resultset.cpp' || echo './'`resultset.cpp; \
	then mv -f ".deps/resultset.Tpo" ".deps/resultset.Plo"; \
	else rm -f ".deps/resultset.Tpo"; exit 1; \
	fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT resultset.lo -MD -MP -MF .deps/resultset.Tpo -c resultset.cpp  -fPIC -DPIC -o .libs/resultset.o
resultset.cpp: In member function 'std::istream* odbc::ResultSet::getAsciiStream(int)':
resultset.cpp:1337: error: no matching function for call to 'odbc::DataStream::DataStream(odbc::ResultSet* const, void*&, int&, int, long int&)'
datastream.h:105: note: candidates are: odbc::DataStream::DataStream(odbc::ErrorHandler*, void*, int, int, SQLINTEGER&)
datastream.h:99: note:                 odbc::DataStream::DataStream(const odbc::DataStream&)
make[4]: *** [resultset.lo] Error 1
make[4]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
make[1]: *** [tmp/all.stamp] Error 2
make[1]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404'
make: *** [tmp/tools_setup.stamp] Error 2
make: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster'

Change History

02/17/08 11:26:23 changed by fgerlits

See the comments under libodbc++ in ticket #1492.

To fix the bug, you need to apply this patch to libodbc++ in src/tools. (You probably need both patches, the one in the attachment, and the one in the follow-up by user vadz.)

02/17/08 11:53:22 changed by fgerlits

#1834 was an earlier ticket about this, which I thought was fixed by [2316], but apparently not. Somebody with an AMD 64 box needs to test these patches (libodbc++ #1595055 and Holman Romero's in [2316], and check in a correct one. Also provide feedback on the libodbc++ bugtracker if the patch shown there is incorrect.

08/17/08 17:58:50 changed by douglas

  • milestone changed from 1.3.5 to 1.4.0-Monrovia.