Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348828 - dev-db/mariadb-5.1.50 fails with undefined reference to `deflate' and others.
Summary: dev-db/mariadb-5.1.50 fails with undefined reference to `deflate' and others.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 02:13 UTC by Fernando (likewhoa)
Modified: 2011-10-07 03:12 UTC (History)
0 users

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


Attachments
build.log (dev-db:mariadb-5.1.50:20101216-020647.log.tar.gz,90.96 KB, application/octet-stream)
2010-12-16 18:09 UTC, Fernando (likewhoa)
Details
dev-db/mariadb-5.1.50 for hardened profile (build.log.tgz,89.51 KB, application/octet-stream)
2010-12-21 09:57 UTC, Fernando (likewhoa)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando (likewhoa) 2010-12-16 02:13:06 UTC
tried compiling with standard cflags & -j1 but no dice.


Reproducible: Always

Steps to Reproduce:
1. emerge =dev-db/mariadb-5.1.50


Actual Results:  
hread -Wl,--as-needed -lpthread -lcrypt -lnsl -lm -lpthread -Wl,-rpath -Wl,/usr/lib64/mysql
../../../../mysys/.libs/libmysys.so: undefined reference to `deflate'
../../../../mysys/.libs/libmysys.so: undefined reference to `deflateInit_'
../../../../mysys/.libs/libmysys.so: undefined reference to `crc32'
../../../../mysys/.libs/libmysys.so: undefined reference to `deflateEnd'
../../../../mysys/.libs/libmysys.so: undefined reference to `uncompress'
collect2: ld returned 1 exit status
make[4]: *** [ndberror_check] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DNDEBUG -I. -I../../../../include -I../../../../storage/ndb/src/mgmapi -I. -I../../../../include -I../../../../storage/ndb/include -I../../../../include -I../../../../mysys -I../../../../storage/ndb/include -I../../../../storage/ndb/include/kernel -I../../../../storage/ndb/include/transporter -I../../../../storage/ndb/include/debugger -I../../../../storage/ndb/include/mgmapi -I../../../../storage/ndb/include/mgmcommon -I../../../../storage/ndb/include/ndbapi -I../../../../storage/ndb/include/util -I../../../../storage/ndb/include/portlib -I../../../../storage/ndb/include/logger -O2 -march=core2 -pipe -ftracer -frename-registers -ftree-vectorize -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-strict-aliasing -fno-implicit-templates -fno-exceptions -fno-rtti -MT NdbDictionaryImpl.lo -MD -MP -MF .deps/NdbDictionaryImpl.Tpo -c NdbDictionaryImpl.cpp -o NdbDictionaryImpl.o >/dev/null 2>&1
mv -f .deps/NdbBlob.Tpo .deps/NdbBlob.Plo
mv -f .deps/NdbDictionaryImpl.Tpo .deps/NdbDictionaryImpl.Plo
make[4]: Leaving directory `/var/tmp/portage/dev-db/mariadb-5.1.50/work/mysql/storage/ndb/src/ndbapi'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-db/mariadb-5.1.50/work/mysql/storage/ndb/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-db/mariadb-5.1.50/work/mysql/storage/ndb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mariadb-5.1.50/work/mysql/storage'
make: *** [all-recursive] Error 1
emake failed



Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 13 Dec 2010 12:45:02 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.6
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2, 4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 dlj-1.1 sun-bcla-java-vm skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -ftracer -frename-registers -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe -ftracer -frename-registers -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--warn-once,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/mozilla /var/lib/layman/cj-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion bzip2 cairo cjk cli consolekit cracklib crypt custom-cflags cxx dbus dri encode examples firefox fontconfig fortran gdbm gif gimp gpm graphviz gtk gtstreamer iconv jpeg jpeg2k lcms libnotify libssh2 logrotate mmx modules mono mudflap multilib ncurses nls nptl nptlonly octave opengl openmp openntpd pam pcre pda pdf perl png pppd python qt4 readline ruby scanner session spell sse sse2 sse3 ssl startup-notification static-ppds suid sysfs threads tiff truetype unicode usb userlocales webdav xcomposite xforms xml xorg xpm xprint xscreensaver zlib" ALSA_CARDS="intel8x0" 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" NGINX_MODULES_HTTP="flv geoip image_filter push random_index secure_link access addition auth_basic autoindex browser charset fastcgi geo gzip limit_req limit_zone map memcached referer rewrite ssi" NGINX_MODULES_MAIL="imap" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fernando (likewhoa) 2010-12-16 02:18:45 UTC
build log located at http://paste.pocoo.org/show/305453 (couldn't attach it)

emerge mariadb -pqv =dev-db/mariadb-5.1.50
[ebuild  N    ] dev-db/mariadb-5.1.50  USE="cluster community perl ssl -big-tables -debug -embedded -extraengine -latin1 -libevent -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test" 
[ebuild  N    ] virtual/mysql-5.1 
[ebuild  N    ] dev-perl/DBD-mysql-4.01.8 
Comment 2 Rafał Mużyło 2010-12-16 08:25:29 UTC
As for the patstebin, next time try harder (if it's to big, gzip it).
As for the error, likely a simple as needed problem, mysys.so needs to link to libz.
Comment 3 Fernando (likewhoa) 2010-12-16 09:44:13 UTC
(In reply to comment #2)
> As for the patstebin, next time try harder (if it's to big, gzip it).
> As for the error, likely a simple as needed problem, mysys.so needs to link to
> libz.
> 

there was no point in compressing the text-plain "build.log" when it was only 70k over the limit, the point is to click and view the build.log not download then uncompress it. anyways, the link won't matter once the bug is marked fixed.

If you have a solution attach a patch and stop wasting my time with your feedback.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-12-16 10:34:52 UTC
(In reply to comment #3)
> (In reply to comment #2)
> 
> there was no point in compressing the text-plain "build.log" when it was only
> 70k over the limit, the point is to click and view the build.log not download
> then uncompress it. anyways, the link won't matter once the bug is marked
> fixed.

Fernando,

it's a Gentoo Bugzilla policy not to rely on "transient" pastebin sites. We always tell users not to use them and to attach the files to the bug reports.

> If you have a solution attach a patch and stop wasting my time with your
> feedback.

There's no need to complain about the bug-wrangling.

I've been using --as-needed for a long time and mariadb-5.1.50 built fine here. I'm running a test with your use flags and will report back.
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-12-16 12:23:02 UTC
I just got it to build again for me. I'll try to look harder later.
Comment 6 Fernando (likewhoa) 2010-12-16 18:06:40 UTC
(In reply to comment #5)
> I just got it to build again for me. I'll try to look harder later.
> 

Thanks for the prompt reply and proper explanation, I will try to reproduce bug on other servers and report back. As for future attachments i'll just compress the build logs if they go over the attachment limit.
Comment 7 Fernando (likewhoa) 2010-12-16 18:09:30 UTC
Created attachment 257344 [details]
build.log

compressed to allow attachment, ignore pastebin above.
Comment 8 Fernando (likewhoa) 2010-12-21 09:57:06 UTC
Created attachment 257661 [details]
dev-db/mariadb-5.1.50 for hardened profile

This is another build log but for a system running hardened which couldn't compile it either.
Comment 9 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-12-22 04:26:24 UTC
Fernando,

sorry for taking so long to get back to you.
I just duplicated your failure with USE="cluster -embedded". I'll see what I can do about it.
Comment 10 Fernando (likewhoa) 2010-12-22 21:25:54 UTC
(In reply to comment #9)
> Fernando,
> 
> sorry for taking so long to get back to you.
> I just duplicated your failure with USE="cluster -embedded". I'll see what I
> can do about it.
> 

Thanks for the follow up
Comment 11 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-12-22 21:52:18 UTC
I was able to get over the failure on storage/ndb/src/ndbapi. I then hit the same issue on storage/ndb/src/kernel and also got over it. In both cases we weren't linking the $(ZLIB_LIBS) and in one of the cases upstream was adding the libs to LDFLAGS instead of LDADD.
I'm currently stuck on storage/ndb/tools.

I've pushed my current work to the mysql / mysql-extras repos. I'll report back if / when I can get this working.
Comment 12 Fernando (likewhoa) 2010-12-22 22:43:24 UTC
(In reply to comment #11)
> I was able to get over the failure on storage/ndb/src/ndbapi. I then hit the
> same issue on storage/ndb/src/kernel and also got over it. In both cases we
> weren't linking the $(ZLIB_LIBS) and in one of the cases upstream was adding
> the libs to LDFLAGS instead of LDADD.
> I'm currently stuck on storage/ndb/tools.
> 
> I've pushed my current work to the mysql / mysql-extras repos. I'll report back
> if / when I can get this working.
> 

I was able to get it compiled with -cluster here.

Comment 13 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-12-22 22:54:20 UTC
(In reply to comment #12)
> I was able to get it compiled with -cluster here.

Yeah, the issue is USE="cluster". I forgot to clear that in my last comment.
Comment 14 Fernando (likewhoa) 2010-12-23 03:15:07 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > I was able to get it compiled with -cluster here.
> 
> Yeah, the issue is USE="cluster". I forgot to clear that in my last comment.
> 

Just a heads up dev-db/mariadb-5.1.53 from mysql overlay compiled with cluster USE and it also allowed bug #341853 to compile which I ran into also.
Comment 15 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-07 03:12:28 UTC
Newer versions have been moved to the tree, so I'm going to close this bug.