Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 532356

Summary: dev-db/libodbc++-0.2.5-r1 - In file included from .../work/libodbc++-0.2.5/src/datetime.cpp:25:0: .../work/libodbc++-0.2.5/src/dtconv.h:116:14: error: ‘ODBCXX_STRING_PERCENT’ was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: [OLD] LibraryAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: cpp+disabled, duaneg
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge log
Patch that replaces ODBCXX_STRING_PERCENT with "%"

Description Toralf Förster gentoo-dev 2014-12-12 10:19:53 UTC
Created attachment 391484 [details]
emerge log

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src -I.. -I/var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -O2 -pipe -march=native -DODBCXX_DISABLE_READLINE_HACK -MT datetime.lo -MD -MP -MF .deps/datetime.Tpo -c /var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src/datetime.cpp  -fPIC -DPIC -o .libs/datetime.o
In file included from /var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src/datetime.cpp:25:0:
/var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src/dtconv.h: In function ‘std::string odbc::longToString(odbc::Long)’:
/var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src/dtconv.h:116:14: error: ‘ODBCXX_STRING_PERCENT’ was not declared in this scope
              ODBCXX_STRING_PERCENT PRId64
              ^
/var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src/datetime.cpp: In member function ‘virtual std::string odbc::Timestamp::toString() const’:
/var/tmp/portage/dev-db/libodbc++-0.2.5-r1/work/libodbc++-0.2.5/src/datetime.cpp:275:14: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
       buf[9] = NULL;// Terminate string
              ^
Comment 1 Duane Griffin 2015-04-16 02:21:07 UTC
I'm also seeing this. Attaching a small patch that seems to fix it, although I'm not sure why it broke now or whether this is the best approach.
Comment 2 Duane Griffin 2015-04-16 02:21:52 UTC
Created attachment 401296 [details, diff]
Patch that replaces ODBCXX_STRING_PERCENT with "%"
Comment 3 Sergey Popov gentoo-dev 2015-05-22 06:40:07 UTC
+*libodbc++-0.2.5-r2 (22 May 2015)
+
+  22 May 2015; Sergey Popov <pinkbyte@gentoo.org> -libodbc++-0.2.5-r1.ebuild,
+  +libodbc++-0.2.5-r2.ebuild:
+  Revision bump: EAPI 5, add support for user patches, do not build static libs
+  unconditionally. Fix build error with undeclared ODBCXX_STRING_PERCENT
+  symbol, bug #532356, patch by Duane Griffin <duaneg AT dghda.com>. Drop old
+  revision