Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532356 - 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
Summary: dev-db/libodbc++-0.2.5-r1 - In file included from .../work/libodbc++-0.2.5/sr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-12-12 10:19 UTC by Toralf Förster
Modified: 2015-05-22 06:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (dev-db:libodbc++-0.2.5-r1:20141212-062350.log,31.46 KB, text/plain)
2014-12-12 10:19 UTC, Toralf Förster
Details
Patch that replaces ODBCXX_STRING_PERCENT with "%" (libodbc++-0.2.5-string-percent.patch,373 bytes, patch)
2015-04-16 02:21 UTC, Duane Griffin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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