Bug 125196 - dev-db/libodbc++-0.2.3-r1 fails (gcc4)
Bug#: 125196 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: robbat2@gentoo.org Reported By: hetfield666@gmail.com
Component: GCC Porting
URL: 
Summary: dev-db/libodbc++-0.2.3-r1 fails (gcc4)
Keywords:  
Status Whiteboard: 
Opened: 2006-03-06 01:32 0000
Description:   Opened: 2006-03-06 01:32 0000
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src -I..
-I/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/include -I../include
-DIN_ODBCXX -D_GNU_SOURCE -O3 -mtune=pentium3 -march=pentium3 -pipe
-fomit-frame-pointer -mmmx -msse -ffast-math -c
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp
-MT drivermanager.lo -MD -MP -MF .deps/drivermanager.TPlo  -fPIC -DPIC -o
.libs/drivermanager.lo
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/include/odbc++/drivermanager.h:102:
error: ISO C++ forbids declaration of 'ErrorHandler' with no type
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/include/odbc++/drivermanager.h:102:
error: expected ';' before '*' token
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:31:
error: 'odbc::ErrorHandler* odbc::DriverManager::eh_' is not a static member of
'class odbc::DriverManager'
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:
In static member function 'static void odbc::DriverManager::shutdown()':
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:69:
error: 'eh_' was not declared in this scope
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:75:
error: 'eh_' was not declared in this scope
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:
In static member function 'static void odbc::DriverManager::_checkInit()':
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:108:
error: 'eh_' was not declared in this scope
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:
In static member function 'static odbc::Connection*
odbc::DriverManager::_createConnection()':
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:142:
error: 'eh_' was not declared in this scope
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:
In static member function 'static odbc::DataSourceList*
odbc::DriverManager::getDataSources()':
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:212:
error: 'eh_' was not declared in this scope
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:
In static member function 'static odbc::DriverList*
odbc::DriverManager::getDrivers()':
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/drivermanager.cpp:259:
error: 'eh_' was not declared in this scope
make[2]: *** [drivermanager.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3-build'
make: *** [all] Error 2

!!! ERROR: dev-db/libodbc++-0.2.3-r1 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #1 From Robin Johnson 2006-03-25 14:19:16 0000 -------
patches welcome.

------- Comment #2 From Mark Loeser 2006-04-08 18:25:52 0000 -------
Created an attachment (id=84243) [details]
gcc-4.1 patch

I ran into two problems...here is the patch for gcc-4.1

------- Comment #3 From Mark Loeser 2006-04-08 18:26:18 0000 -------
Created an attachment (id=84244) [details]
doxygen patch

And the doxygen error

------- Comment #4 From Patrizio Bassi 2006-04-09 12:19:37 0000 -------
please commit :)

------- Comment #5 From Patrizio Bassi 2006-04-11 00:29:44 0000 -------
i just found this error in ebuild:

/usr/portage/dev-db/libodbc++/libodbc++-0.2.3-r1.ebuild: line 37: append-flags:
command not found


flag-o-matic needed?

------- Comment #6 From Patrizio Bassi 2006-04-12 02:01:49 0000 -------
however it compiles and installes flawlessy, apply to portage and close :)

------- Comment #7 From Mark Loeser 2006-04-13 17:07:40 0000 -------
Fixed, thanks for reporting.