Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246795 - dev-db/mysql++-3.0.5 building failure
Summary: dev-db/mysql++-3.0.5 building failure
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 273497 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-15 00:11 UTC by dongxu li
Modified: 2010-03-24 20:44 UTC (History)
1 user (show)

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


Attachments
build.log for dev-db/mysql++-3.0.5 (build.log,26.19 KB, text/plain)
2008-11-15 00:13 UTC, dongxu li
Details
patch for mysql++-3.0.5.ebuild (mysql++-3.0.5.ebuild.patch,328 bytes, patch)
2008-11-15 01:56 UTC, dongxu li
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dongxu li 2008-11-15 00:11:38 UTC
emerge dev-db/mysql++-3.0.5 fails with:
datetime.cpp:(.text+0x66): undefined reference to `mysqlpp::Connection::query(char const*)'

------------------------------------------------------------

/var/tmp/portage/dev-db/mysql++-3.0.5/work/mysql++-3.0.5/bk-deps x86_64-pc-linux-gnu-g++ -c -o tquery2_tquery2.o -Ilib     -pthread -I/usr/include/mysql -O3 -march=native -fomit-frame-pointer -fexpensive-optimizations -pipe ./examples/tquery2.cpp
/var/tmp/portage/dev-db/mysql++-3.0.5/work/mysql++-3.0.5/bk-deps x86_64-pc-linux-gnu-g++ -c -o tquery3_tquery3.o -Ilib     -pthread -I/usr/include/mysql -O3 -march=native -fomit-frame-pointer -fexpensive-optimizations -pipe ./examples/tquery3.cpp
/var/tmp/portage/dev-db/mysql++-3.0.5/work/mysql++-3.0.5/bk-deps x86_64-pc-linux-gnu-g++ -c -o transaction_transaction.o -Ilib -pthread -I/usr/include/mysql -O3 -march=native -fomit-frame-pointer -fexpensive-optimizations -pipe ./examples/transaction.cpp
x86_64-pc-linux-gnu-g++ -shared -fPIC -o libmysqlpp.so.3.0.5 mysqlpp_beemutex.o mysqlpp_connection.o mysqlpp_cpool.o mysqlpp_datetime.o mysqlpp_dbdriver.o mysqlpp_field_names.o mysqlpp_field_types.o mysqlpp_manip.o mysqlpp_myset.o mysqlpp_mysql++.o mysqlpp_mystring.o mysqlpp_null.o mysqlpp_options.o mysqlpp_qparms.o mysqlpp_query.o mysqlpp_result.o mysqlpp_row.o mysqlpp_sql_buffer.o mysqlpp_stadapter.o mysqlpp_tcp_connection.o mysqlpp_transaction.o mysqlpp_type_info.o mysqlpp_uds_connection.o mysqlpp_vallist.o mysqlpp_wnp_connection.o -Wl,-O1 -L/usr/lib64  -Wl,-soname,libmysqlpp.so.3        -lmysqlclient_r
(cd .; rm -f libmysqlpp.so libmysqlpp.so.3; ln -s libmysqlpp.so.3.0.5 libmysqlpp.so.3; ln -s libmysqlpp.so.3 libmysqlpp.so)
x86_64-pc-linux-gnu-g++ -o test_cpool test_cpool_cpool.o -Wl,-O1 -L/usr/lib64   -L.     -lmysqlclient_r -lmysqlpp
x86_64-pc-linux-gnu-g++ -o test_datetime test_datetime_datetime.o -Wl,-O1 -L/usr/lib64   -L.     -lmysqlclient_r -lmysqlpp
test_datetime_datetime.o: In function `unsigned int test_query_insert<mysqlpp::Time>(mysqlpp::Time const&, char const*, char const*)':
datetime.cpp:(.text+0x66): undefined reference to `mysqlpp::Connection::query(char const*)'
test_datetime_datetime.o: In function `unsigned int test_query_insert<mysqlpp::DateTime>(mysqlpp::DateTime const&, char const*, char const*)':
datetime.cpp:(.text+0x376): undefined reference to `mysqlpp::Connection::query(char const*)'
test_datetime_datetime.o: In function `unsigned int test_str_method<mysqlpp::DateTime>(mysqlpp::DateTime const&, char const*, char const*)':
datetime.cpp:(.text+0x19c8): undefined reference to `mysqlpp::DateTime::operator std::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
test_datetime_datetime.o: In function `test_time(mysqlpp::Time const&, int, int, int)':
datetime.cpp:(.text+0x1cd8): undefined reference to `mysqlpp::Time::operator std::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
datetime.cpp:(.text+0x1dc2): undefined reference to `mysqlpp::Time::operator std::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
test_datetime_datetime.o: In function `unsigned int test_string_operator<mysqlpp::DateTime>(mysqlpp::DateTime const&, char const*, char const*)':
datetime.cpp:(.text+0x1ff8): undefined reference to `mysqlpp::DateTime::operator std::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
test_datetime_datetime.o: In function `unsigned int test_query_insert<mysqlpp::Date>(mysqlpp::Date const&, char const*, char const*)':
datetime.cpp:(.text+0x21f6): undefined reference to `mysqlpp::Connection::query(char const*)'
test_datetime_datetime.o: In function `test_date(mysqlpp::Date const&, int, int, int)':
datetime.cpp:(.text+0x26f8): undefined reference to `mysqlpp::Date::operator std::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
datetime.cpp:(.text+0x27e2): undefined reference to `mysqlpp::Date::operator std::basic_string<char, std::char_traits<char>, std::allocator<char> >() const'
collect2: ld returned 1 exit status
make: *** [test_datetime] Error 1
make: *** Waiting for unfinished jobs....
test_cpool_cpool.o: In function `main':
cpool.cpp:(.text+0x4d): undefined reference to `vtable for mysqlpp::ConnectionPool'
cpool.cpp:(.text+0x6a): undefined reference to `mysqlpp::BeecryptMutex::BeecryptMutex()'
cpool.cpp:(.text+0x7e): undefined reference to `mysqlpp::ConnectionPool::grab()'
cpool.cpp:(.text+0x89): undefined reference to `mysqlpp::ConnectionPool::grab()'
cpool.cpp:(.text+0xa0): undefined reference to `mysqlpp::ConnectionPool::release(mysqlpp::Connection const*)'
cpool.cpp:(.text+0xa8): undefined reference to `mysqlpp::ConnectionPool::grab()'
cpool.cpp:(.text+0x177): undefined reference to `mysqlpp::ConnectionPool::clear(bool)'
cpool.cpp:(.text+0x187): undefined reference to `vtable for mysqlpp::ConnectionPool'
cpool.cpp:(.text+0x19e): undefined reference to `mysqlpp::BeecryptMutex::~BeecryptMutex()'
cpool.cpp:(.text+0x217): undefined reference to `mysqlpp::ConnectionPool::release(mysqlpp::Connection const*)'
cpool.cpp:(.text+0x229): undefined reference to `mysqlpp::ConnectionPool::grab()'
cpool.cpp:(.text+0x25c): undefined reference to `mysqlpp::ConnectionPool::release(mysqlpp::Connection const*)'
cpool.cpp:(.text+0x267): undefined reference to `mysqlpp::ConnectionPool::release(mysqlpp::Connection const*)'
cpool.cpp:(.text+0x271): undefined reference to `mysqlpp::ConnectionPool::clear(bool)'
test_cpool_cpool.o: In function `mysqlpp::ConnectionPool::~ConnectionPool()':
cpool.cpp:(.text._ZN7mysqlpp14ConnectionPoolD2Ev[mysqlpp::ConnectionPool::~ConnectionPool()]+0xe): undefined reference to `vtable for mysqlpp::ConnectionPool'
cpool.cpp:(.text._ZN7mysqlpp14ConnectionPoolD2Ev[mysqlpp::ConnectionPool::~ConnectionPool()]+0x1d): undefined reference to `mysqlpp::BeecryptMutex::~BeecryptMutex()'
test_cpool_cpool.o: In function `TestConnectionPool::~TestConnectionPool()':
cpool.cpp:(.text._ZN18TestConnectionPoolD0Ev[TestConnectionPool::~TestConnectionPool()]+0x1a): undefined reference to `mysqlpp::ConnectionPool::clear(bool)'
cpool.cpp:(.text._ZN18TestConnectionPoolD0Ev[TestConnectionPool::~TestConnectionPool()]+0x27): undefined reference to `vtable for mysqlpp::ConnectionPool'
cpool.cpp:(.text._ZN18TestConnectionPoolD0Ev[TestConnectionPool::~TestConnectionPool()]+0x38): undefined reference to `mysqlpp::BeecryptMutex::~BeecryptMutex()'
test_cpool_cpool.o: In function `TestConnectionPool::~TestConnectionPool()':
cpool.cpp:(.text._ZN18TestConnectionPoolD1Ev[TestConnectionPool::~TestConnectionPool()]+0x1a): undefined reference to `mysqlpp::ConnectionPool::clear(bool)'
cpool.cpp:(.text._ZN18TestConnectionPoolD1Ev[TestConnectionPool::~TestConnectionPool()]+0x26): undefined reference to `vtable for mysqlpp::ConnectionPool'
cpool.cpp:(.text._ZN18TestConnectionPoolD1Ev[TestConnectionPool::~TestConnectionPool()]+0x35): undefined reference to `mysqlpp::BeecryptMutex::~BeecryptMutex()'
test_cpool_cpool.o:(.rodata._ZTV18TestConnectionPool[vtable for TestConnectionPool]+0x20): undefined reference to `mysqlpp::ConnectionPool::grab()'
test_cpool_cpool.o:(.rodata._ZTV18TestConnectionPool[vtable for TestConnectionPool]+0x28): undefined reference to `mysqlpp::ConnectionPool::release(mysqlpp::Connection const*)'
test_cpool_cpool.o:(.rodata._ZTI18TestConnectionPool[typeinfo for TestConnectionPool]+0x10): undefined reference to `typeinfo for mysqlpp::ConnectionPool'
test_cpool_cpool.o:(.rodata._ZTV14TestConnection[vtable for TestConnection]+0x20): undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'
collect2: ld returned 1 exit status
make: *** [test_cpool] Error 1
 * 
 * ERROR: dev-db/mysql++-3.0.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2130:  Called die
 * The specific snippet of code:
 *       emake || die "unable to make"
 *  The die message:
 *   unable to make
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-db/mysql++-3.0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql++-3.0.5/temp/environment'.
 * 

>>> Failed to emerge dev-db/mysql++-3.0.5, Log file:

>>>  '/var/tmp/portage/dev-db/mysql++-3.0.5/temp/build.log'

 * Messages for package dev-db/mysql++-3.0.5:

 * 
 * ERROR: dev-db/mysql++-3.0.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2130:  Called die
 * The specific snippet of code:
 *       emake || die "unable to make"
 *  The die message:
 *   unable to make
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-db/mysql++-3.0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql++-3.0.5/temp/environment'.


Reproducible: Always

Steps to Reproduce:
1. emerge =dev-db/mysql++-3.0.5
Actual Results:  
emerge fails with:


Expected Results:  
x86_64-pc-linux-gnu-g++ -o test_cpool test_cpool_cpool.o -Wl,-O1 -L/usr/lib64   -L.     -lmysqlclient_r -lmysqlpp
test_cpool_cpool.o: In function `main':
cpool.cpp:(.text+0x4d): undefined reference to `vtable for mysqlpp::ConnectionPool'


# emerge --info
Portage 2.2_rc14 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.7-r2, 2.6.27-zen3 x86_64)
=================================================================
System uname: Linux-2.6.27-zen3-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Fri, 14 Nov 2008 22:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -fomit-frame-pointer -fexpensive-optimizations -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=native -fomit-frame-pointer -fexpensive-optimizations -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache digest distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://64.50.236.52/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en zh zh_CN zh_TW"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/xfce /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/berkano /usr/local/portage/layman/java-overlay /usr/local/portage/layman/enlightenment /usr/local/portage/layman/gnash-cvs /usr/local/portage/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 amr amrnb amrwb bash-completion beagle berkdb bindist bl bluetooth bzip2 cairo cdr chardet cjk cli cracklib crypt cups dbus dri dts dv dvb dvd dvdr dvdread encode esd fam fftw firefox flac foomaticdb fortran gajim gdbm glib glitz gnome gnome-keyring gnutls gphoto2 gpm gps gstreamer gtk hal hdaps html iconv id3tag imagemagick imlib immqt-bc ipv6 isdnlog jack java jpeg kde kde4 laptop latex lcms led libedit libnotify libssh2 mad midi mmx mng motif mp3 mpeg mudflap multilib mysql ncurses networkmanager newspr nls nptl nptlonly nsplugin nss ogg opengl openmp pam pcre pdf perl pidgin plotutils png pppd pulseaudio python qt3support qt4 quicktime readline real reflection rtf samba scanner sdl session smp source spell spl sse sse2 ssl startup-notification svg symlink sysfs tcpd tetex theora threads tiff truetype tta twolame unicode userlocales v4l v4l2 vorbis wavpack wmf x264 xattr xcb xcomposite xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="ati radeonhd radeon r100 r300"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 dongxu li 2008-11-15 00:13:08 UTC
Created attachment 171761 [details]
build.log for dev-db/mysql++-3.0.5
Comment 2 dongxu li 2008-11-15 01:56:31 UTC
Created attachment 171769 [details, diff]
patch for mysql++-3.0.5.ebuild

the patch to remove unnecessary LDFLAGS=/usr/lib64 from Makefile

the resulting ebuild works on my system
Comment 3 Patrick Lauer gentoo-dev 2009-09-11 21:02:02 UTC
3.0.9 is in tree ... does that exhibit the same problem?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-24 20:41:46 UTC
*** Bug 273497 has been marked as a duplicate of this bug. ***
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-24 20:44:44 UTC
3.0.9 is in the tree, and I can't reproduce the problem.
/dev/shm/portage/dev-db/mysql++-3.0.9/work/mysql++-3.0.9/Makefile:LDFLAGS = -Wl,-O1 -L/usr/lib/mysql