Bug #10900 MySQL fails to compile from 4.1 bk tree
Submitted: 27 May 2005 2:02 Modified: 27 May 2005 18:52
Reporter: Jorge del Conde Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[27 May 2005 2:02] Jorge del Conde
Description:
MySQL fails to build on Linux

How to repeat:
I did the following in Fedora Core 2:

jorge-/my/mysql-4.1> aclocal; autoheader; libtoolize --automake --force
jorge-/my/mysql-4.1> automake --force --add-missing; autoconf
jorge-/my/mysql-4.1> cd innobase; aclocal; autoheader; autoconf; automake
jorge-/my/mysql-4.1> cd ..
jorge-/my/mysql-4.1> CFLAGS="-O2 -mcpu=pentiumpro" CXX=gcc CXXFLAGS="-O2 -mcpu=pentiumpro -felide-constructors" ./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --disable-shared --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static

jorge-/my/mysql-4.1> make

and I received the following linking errors:

hostname.o(.text+0x212): In function `add_hostname(in_addr*, char const*)':
: undefined reference to `hash_filo::search(char*, unsigned)'
hostname.o(.text+0x28c): In function `add_hostname(in_addr*, char const*)':
: undefined reference to `hash_filo::add(hash_filo_element*)'
hostname.o(.text+0x2d1): In function `inc_host_errors(in_addr*)':
: undefined reference to `hash_filo::search(char*, unsigned)'
hostname.o(.text+0x319): In function `reset_host_errors(in_addr*)':
: undefined reference to `hash_filo::search(char*, unsigned)'
hostname.o(.text+0x37f): In function `ip_to_hostname(in_addr*, unsigned*)':
: undefined reference to `hash_filo::search(char*, unsigned)'

... etc
[27 May 2005 18:52] Jorge del Conde
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html