Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285302 - mysql fails to compile with readline-6.0
Summary: mysql fails to compile with readline-6.0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 11:16 UTC by Thomas Stein
Modified: 2009-09-18 12:03 UTC (History)
1 user (show)

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


Attachments
Build.log (build.log,43.15 KB, text/plain)
2009-09-17 12:15 UTC, Thomas Stein
Details
config.log (config.log,722.75 KB, text/plain)
2009-09-17 13:42 UTC, Thomas Stein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2009-09-17 11:16:46 UTC
Hello.

I have problems compiling mysql (5.0.70) on a readline 6.0 system.

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

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-db/mysql-5.0.84-r1/work/mysql/config.log
 * 
 * ERROR: dev-db/mysql-5.0.84-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 4049:  Called mysql_src_configure
 *             environment, line 3605:  Called econf '--libexecdir=/usr/sbin' '--sysconfdir=/etc/mysql' '--localstatedir=/var/lib/mysql' '--sharedstatedir=/usr/share/mysql' '--libdir=/usr/lib/mysql' '--includedir=/usr/include/mysql' '--with-low-memory' '--with-client-ldflags=-lstdc++' '--enable-thread-safe-client' '--with-comment=Gentoo Linux mysql-5.0.84-r1' '--without-docs' '--without-big-tables' '--enable-local-infile' '--with-extra-charsets=all' '--with-mysqld-user=mysql' '--with-server' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--without-libwrap' '--enable-shared' '--enable-static' '--without-debug' '--with-charset=utf8' '--with-collation=utf8_general_ci' '--without-embedded-privilege-control' '--without-embedded-server' '--without-bench' '--enable-assembler' '--with-extra-tools' '--with-innodb' '--without-readline' '--with-openssl' '--without-berkeley-db' '--with-geometry' '--without-ndbcluster' '--enable-community-features' '--disable-profiling'
 *               ebuild.sh, line  534:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * 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-5.0.84-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.84-r1/temp/environment'.

emerge --info:

Portage 2.1.6.13 (default/linux/x86/vserver, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.18-028stab064.4 x86_64)
=================================================================
System uname: Linux-2.6.18-028stab064.4-x86_64-Intel-R-_Xeon-R-_CPU_5148_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Sep 2009 09:30:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.5, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=generic -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb bzip2 cli cracklib crypt dri fortran iconv isdnlog logrotate mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre pppd python readline reflection session spl sse2 ssl tcpd x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

template-test mysql # 


Reproducible: Always
Comment 1 Rafał Mużyło 2009-09-17 11:57:54 UTC
So, lets start with your config.log.
Also, 'ACCEPT_KEYWORDS="amd64 x86"' looks bit strange.

Comment 2 Thomas Stein 2009-09-17 12:15:24 UTC
Created attachment 204413 [details]
Build.log
Comment 3 Rafał Mużyło 2009-09-17 13:31:36 UTC
config.log!=build.log
Comment 4 Thomas Stein 2009-09-17 13:42:27 UTC
Created attachment 204424 [details]
config.log
Comment 5 Sebastian Luther (few) 2009-09-17 16:28:07 UTC
Your emerge --info says:

CBUILD="x86_64-pc-linux-gnu"
CXXFLAGS="-O2 -march=i686 -pipe"

You want all binaries to be 32 bit on a 64 bit system? That's not supported. In the case of mysql this resulted in:

configure:42041: x86_64-pc-linux-gnu-g++ -c  -DDBUG_OFF -O2 -march=i686 -pipe -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  conftest.cpp >&5
conftest.cpp:1: error: CPU you selected does not support x86-64 instruction set
Comment 6 Thomas Stein 2009-09-18 12:03:54 UTC
Oh dear. You are right. /etc/make.profile pointed to .../x86/vserver on this machine. Sorry for bothering you with that.

t.