Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412851 - dev-db/mariadb5.5.28: configure error when building against sys-libs/readline-6
Summary: dev-db/mariadb5.5.28: configure error when building against sys-libs/readline-6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 413883
  Show dependency tree
 
Reported: 2012-04-21 01:30 UTC by Alec Meyers
Modified: 2014-06-18 16:48 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,35.61 KB, text/plain)
2012-04-21 01:31 UTC, Alec Meyers
Details
config.log (config.log,813.33 KB, text/plain)
2012-04-21 01:32 UTC, Alec Meyers
Details
build.log (mariadb-5.5.28) (build.log,31.79 KB, text/plain)
2013-01-01 21:48 UTC, Alec Meyers
Details
CMakeError.log (mariadb-5.5.28) (CMakeError.log,144.73 KB, text/plain)
2013-01-01 21:48 UTC, Alec Meyers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Meyers 2012-04-21 01:30:50 UTC
Configuration fails:

...
checking libedit variant of rl_completion_entry_function... no
checking for system libreadline... no
checking HIST_ENTRY is declared in readline/readline.h... 
configure: error: Could not find usable system readline or libedit libraries
	      Use --with-readline or --with-libedit to use the bundled
	      versions of libedit or readline

I do have readline:

# emerge -qvp readline
[ebuild   R   ] sys-libs/readline-6.2_p1-r1  USE="-static-libs"

but apparently the configure script is run with "--without-readline"

Reproducible: Always

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



Portage 2.2.0_alpha100 (default/linux/amd64/10.0/desktop, gcc-4.6.2, glibc-2.14.1-r3, 3.3.2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.2-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Fri, 20 Apr 2012 14:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/tomoyo/conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildsyspkg distlocks ebuild-locks fixlafiles news preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree/gentoo"
PORTDIR_OVERLAY="/usr/portage/tree/local"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aio alsa amd64 apng audiofile avi bash-completion berkdb bluetooth branding bzip2 c++0x cairo cdda cdr chm cli cracklib crypt css cups curl custom-optimization cxx dbus dell dirac dri dts dvd dvdr emboss encode exif expat ffmpeg fftw firefox flac foomaticdb ftp gdu gif git gles gmp gpm graphviz gtk iconv imagemagick imlib inotify java5 java6 jpeg kde kdeenablefinal kdehiddenvisibility kvm laptop latex lcms libkms libnotify logrotate lqr lzma lzo mad mmx mmxext mng mod modules mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nptl nptlonly nsplugin nvidia ogg opengl openmp openssl pam pango pch pcre pdf pgo png ppds pppd python qt qt3support qt4 quicktime rar readline resolvconf rtmp samba schroedinger sdl session sndfile speex spell sqlite sqlite3 srt sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg sysfs systemd tcpd theora threads tiff tokyocabinet truetype udev unicode usb v4l v4l2 vaapi vcd videos vim-syntax vorbis vpx wayland webkit webp 
wifi wmf x264 xcb xcomposite xft xorg xscreensaver xulrunner xv xvid xvmc xz zip 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 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="clock logout menu" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Alec Meyers 2012-04-21 01:31:15 UTC
Created attachment 309695 [details]
build.log
Comment 2 Alec Meyers 2012-04-21 01:32:10 UTC
Created attachment 309697 [details]
config.log
Comment 3 Rafał Mużyło 2012-04-21 20:53:43 UTC
The problem seems to lie in this part of the check:
#include "readline/readline.h"
#if RL_VERSION_MAJOR > 5
#error
#endif

For a few years now, >=readline-6.0 has been in stable.
Comment 4 Paolo Pedroni 2012-05-31 14:59:46 UTC
Have you tried re-emerging readline and then emerging mariadb again?

I ask because I emerged the same version of mariadb as you with absolutely no issue (different USE flags, though).
Comment 5 Alec Meyers 2012-05-31 15:17:25 UTC
No, it doesn't help.
Comment 6 Brian Evans (RETIRED) gentoo-dev 2012-08-02 20:17:44 UTC
(In reply to comment #0)
> Configuration fails:
> 
> ...
> checking libedit variant of rl_completion_entry_function... no
> checking for system libreadline... no
> checking HIST_ENTRY is declared in readline/readline.h... 
> configure: error: Could not find usable system readline or libedit libraries
> 	      Use --with-readline or --with-libedit to use the bundled
> 	      versions of libedit or readline
> 
> I do have readline:
> 
> # emerge -qvp readline
> [ebuild   R   ] sys-libs/readline-6.2_p1-r1  USE="-static-libs"
> 
> but apparently the configure script is run with "--without-readline"
> 

I've duplicated this issue.

MySQL (and by extension MariaDB) have a weird meaning for with(out)-readline.
--with-readline means use bundled.
--without-readline means use system.

Currently, USE="minimal" sets --without-readline while USE="-minimal" sets --with-readline.

There is an known bug in the detection of system readline, so the full version uses the bundled version.

Workaround: unset the minimal USE flag for now.

I'll work on a more permanent fix.
Comment 7 Brian Evans (RETIRED) gentoo-dev 2012-08-03 17:42:46 UTC
A fix has been committed to the official MySQL overlay.

Please pull the latest version and retest with USE="minimal"
Comment 8 Brian Evans (RETIRED) gentoo-dev 2012-11-02 02:45:41 UTC
The fix is now included in portage.

Please verify and close this bug if no longer an issue.
Comment 9 Alec Meyers 2013-01-01 21:46:54 UTC
Sorry for taking a while to respond.

I've tried to update mariadb again, and it still doesn't work due to a problem with readline. I have readine-6.2_p1-r1 installed.

This is because configure errors out if the version is greater than 5. From CMakeError.log:

...
Performing C SOURCE FILE Test READLINE_V5 failed with the following output:
Change Dir: /var/tmp/portage/dev-db/mariadb-5.5.28/work/mariadb-5.5.28_build/CMakeFiles/CMakeTmp
...
Source file was:

    #include <stdio.h>
    #include <readline/readline.h>
    #if RL_VERSION_MAJOR > 5
    #error
...

Installing sys-libs/readline:5 doesn't help because it does not install headers, just the library.
Comment 10 Alec Meyers 2013-01-01 21:48:02 UTC
Created attachment 333982 [details]
build.log (mariadb-5.5.28)
Comment 11 Alec Meyers 2013-01-01 21:48:28 UTC
Created attachment 333984 [details]
CMakeError.log (mariadb-5.5.28)
Comment 12 Brian Evans (RETIRED) gentoo-dev 2013-01-02 02:18:33 UTC
(In reply to comment #10)
> Created attachment 333982 [details]
> build.log (mariadb-5.5.28)

This is now a DIFFERENT error.  The 5.5.28 ebuild should not apply the minimal patch or the error you see appears.

This is because upstream has applied a different patch between 5.5.25 and 5.5.28 which breaks the Gentoo patch. The patch is still valid for MySQL which has yet to apply a minimal patch.

-DNOT_FOR_DISTRIBUTION=1 fixes the license issue that upstream imposed.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-20 02:45:05 UTC
Fixed in tree, please test.
Comment 14 Alec Meyers 2013-01-21 17:23:26 UTC
Thanks a lot!