Bug #29213 Does not compile on Fedora 7
Submitted: 19 Jun 2007 13:45 Modified: 20 Jul 2007 13:58
Reporter: Harald Reindl Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.45 OS:Linux
Assigned to: Sveta Smirnova CPU Architecture:Any

[19 Jun 2007 13:45] Harald Reindl
Description:
On Fedora 7 the last release and also i think older ones does not compile

/usr/bin/ld: cannot find -lreadline
collect2: ld returned 1 exit status

My .configure contains "--without-readline", if i change this the same happens with "ncurses"

Same happend before the release of fedora 7 if ncurses was installd from rawhide

[root@srv-rhsoft ~]# rpm -qa | grep readline
readline-devel-5.2-4.fc7
readline-5.2-4.fc7

[root@srv-rhsoft ~]# rpm -qa | grep ncurses
ncurses-5.6-6.20070303.fc7
ncurses-devel-5.6-6.20070303.fc7

fyi: 
I use everytime the last sources from the ftp-server to check possible problems of future-versions before they are released as commuinty version

How to repeat:
Take Fedora Core 6, build mysql, all works without troubles
make a upgrade to Fedora 7, compile doens not work and says can not find "readline" and/or "ncurses"
[20 Jun 2007 9:33] Sveta Smirnova
Thank you for the report.

To build MySQL from sources you have to install all packages from which MySQL is dependent including ncurses. So this is not compiling bug. But dependencies should be listed somewhere, so I reclassified it to documentation bug.
[20 Jun 2007 10:15] Harald Reindl
Jesus the dependencies are installed especially ncurses.
Please read my message again!

If you take Fedora 6 and update ncurses with the one from fedora 7 the same happens and i postet that ncurses is installed of course - including the devel-package!

[root@srv-rhsoft ~]# rpm -qa | grep readline
readline-devel-5.2-4.fc7
readline-5.2-4.fc7

[root@srv-rhsoft ~]# rpm -qa | grep ncurses
ncurses-5.6-6.20070303.fc7
ncurses-devel-5.6-6.20070303.fc7
[20 Jun 2007 10:16] Harald Reindl
set to status "compiling bug" again!
[14 Jul 2007 13:28] Harald Reindl
On Fedora 7 it compiles with following script
I played with some configure-parameters from the original source-rpm from fedora (5.0.37)

hope this does help anybody else

_____________
#! /bin/bash

export CFLAGS="-O3 -march=i686 -mtune=i686 -mmmx -msse3 -fopenmp"
export CXX=gcc
export CXXFLAGS="-O3 -march=i686 -mtune=i686 -mmmx -msse3 -felide-constructors -fno-exceptions -fno-rtti -fopenmp"

# Wechsel in Source-Folder
cd /data/development/src/mysql/

# Aufräumen
make clean > /dev/null

# Configure-Variablen setzen
./configure \
 --prefix=/usr/local/mysql \
 --with-readline \
 --without-debug \
 --without-innodb \
 --without-bench \
 --without-man \
 --without-docs \
 --without-ipv6 \
 --enable-shared \
 --enable-assembler \
 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
 --with-mysqld-user="mysql" \
 --with-charset=latin1 \
 --with-extra-charsets=latin1,utf8,binary \
 --with-collation=latin1_german1_ci \
 --enable-local-infile \
 --enable-largefile \
 --enable-thread-safe-client \
 --disable-dependency-tracking \
 --with-named-thread-libs="-lpthread" \
 --with-comment="rhsoft.net build" \
&& make \
&& strip sql/mysqld \
&& sudo make install \
&& sudo /sbin/service mysqld restart
_____________

the old one what does not find readline or ncurses was this:

#! /bin/bash

export CFLAGS="-O3 -march=i686 -mtune=i686 -mmmx -msse3 -fopenmp"
export CXX=gcc
export CXXFLAGS="-O3 -march=i686 -mtune=i686 -mmmx -msse3 -felide-constructors -fno-exceptions -fno-rtti -fopenmp"

# Wechsel in Source-Folder
cd /data/development/src/mysql/

# Aufräumen
make clean > /dev/null

# Configure-Variablen setzen
./configure \
 --prefix=/usr/local/mysql \
 --enable-assembler \
 --with-mysqld-ldflags=-all-static \
 --with-client-ldflags=-all-static \
 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
 --enable-local-infile \
 --with-charset=latin1 \
 --with-extra-charsets=latin1,utf8,binary \
 --with-collation=latin1_german1_ci \
 --with-mysqld-user=mysql \
 --without-debug \
 --without-docs \
 --without-man \
 --without-bench \
 --without-innodb \
 --without-readline \
 --without-libedit \
 --without-ipv6 \
 --with-comment="rhsoft.net build" \
&& make \
&& strip client/mysql \
&& strip sql/mysqld \
&& sudo make install \
&& sudo /sbin/service mysqld restart
[20 Jul 2007 13:58] Alexander Keremidarski
Very strange. I am compiling 5.0 source on Fedora 7 every day without problems. I got exactly the same ncurses and readline sothe problem seems to be somewhere else:

ncurses-5.6-6.20070303.fc7
ncurses-devel-5.6-6.20070303.fc7

readline-5.2-4.fc7
readline-devel-5.2-4.fc7

$ ./configure --prefix=/usr/local/mysql
$ make

success. Your problem seems to be with something else not readline or ncurses