Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635414 - dev-db/mysql++ links test binaries against installed instead of newly built library - test_datetime_datetime.o: In function `mysqlpp::Query::str[abi:cxx11]()': .../work/mysql++-3.2.3/lib/query.h:283: undefined reference to `mysqlpp::Query::str[abi:cxx1...
Summary: dev-db/mysql++ links test binaries against installed instead of newly built l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-25 12:34 UTC by Jeroen Roovers (RETIRED)
Modified: 2017-10-25 14:58 UTC (History)
0 users

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


Attachments
dev-db:mysql++-3.2.3:20171025-110024.log (dev-db:mysql++-3.2.3:20171025-110024.log,29.96 KB, text/plain)
2017-10-25 12:34 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2017-10-25 12:34:03 UTC
Created attachment 500042 [details]
dev-db:mysql++-3.2.3:20171025-110024.log

(cd .; rm -f libmysqlpp.so libmysqlpp.so.3; ln -s libmysqlpp.so.3.2.3 libmysqlpp.so.3; ln -s libmysqlpp.so.3 libmysqlpp.so)
rm -f libmysqlpp_ssqls2parse.a
hppa2.0-unknown-linux-gnu-ar rcu libmysqlpp_ssqls2parse.a ssqls2parse_parsev2.o
hppa2.0-unknown-linux-gnu-g++ -o test_array_index test_array_index_array_index.o    -L/usr/lib -L. -lmysqlclient   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
 -Wl,--no-keep-memory -pthread  -lmysqlpp
hppa2.0-unknown-linux-gnu-ranlib libmysqlpp_ssqls2parse.a
hppa2.0-unknown-linux-gnu-g++ -o test_cpool test_cpool_cpool.o    -L/usr/lib -L. -lmysqlclient   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-mem
ory -pthread  -lmysqlpp
hppa2.0-unknown-linux-gnu-g++ -o test_datetime test_datetime_datetime.o    -L/usr/lib -L. -lmysqlclient   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-memory -pthread  -lmysqlpp
hppa2.0-unknown-linux-gnu-g++ -o test_inttypes test_inttypes_inttypes.o    -L/usr/lib -L. -lmysqlclient   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-memory -pthread  -lmysqlpp
test_datetime_datetime.o: In function `mysqlpp::Query::str[abi:cxx11]()':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/lib/query.h:283: undefined reference to `mysqlpp::Query::str[abi:cxx11](mysqlpp::SQLQueryParms&)'
test_datetime_datetime.o: In function `test_string_operator<mysqlpp::DateTime>':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/./test/datetime.cpp:105: undefined reference to `mysqlpp::DateTime::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
test_datetime_datetime.o: In function `mysqlpp::DateTime::str[abi:cxx11]() const':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/lib/datetime.h:177: undefined reference to `mysqlpp::DateTime::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
test_datetime_datetime.o: In function `mysqlpp::Query::str[abi:cxx11]()':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/lib/query.h:283: undefined reference to `mysqlpp::Query::str[abi:cxx11](mysqlpp::SQLQueryParms&)'
test_datetime_datetime.o: In function `test_string_operator<mysqlpp::Time>':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/./test/datetime.cpp:105: undefined reference to `mysqlpp::Time::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
test_datetime_datetime.o: In function `mysqlpp::Time::str[abi:cxx11]() const':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/lib/datetime.h:441: undefined reference to `mysqlpp::Time::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
test_datetime_datetime.o: In function `mysqlpp::Query::str[abi:cxx11]()':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/lib/query.h:283: undefined reference to `mysqlpp::Query::str[abi:cxx11](mysqlpp::SQLQueryParms&)'
test_datetime_datetime.o: In function `test_string_operator<mysqlpp::Date>':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/./test/datetime.cpp:105: undefined reference to `mysqlpp::Date::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
test_datetime_datetime.o: In function `mysqlpp::Date::str[abi:cxx11]() const':
/var/tmp/portage/dev-db/mysql++-3.2.3/work/mysql++-3.2.3/lib/datetime.h:313: undefined reference to `mysqlpp::Date::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
make: *** [Makefile:547: test_datetime] Error 1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-25 12:35:59 UTC
After uninstalling the installed version (dev-db/mysql++-3.2.1) all went fine, which proves that it was linking against the "system" library instead of the one it had just compiled.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-25 14:28:39 UTC
The problems seems to be caused in part by the LDFLAGS related changes in files/mysql++-3.0-gcc-as-needed.patch
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-25 14:58:35 UTC
Fixed in 3.2.3 without revision bump.