[Lunar-bugs] [Lunar Linux 0000344]: Cannot compile MySQL
Lunar bug reports list
lunar-bugs at lunar-linux.org
Mon Aug 18 18:47:35 CEST 2008
The following issue has been RESOLVED.
======================================================================
http://bugs.lunar-linux.org/view.php?id=344
======================================================================
Reported By: piggy
Assigned To: florin
======================================================================
Project: Lunar Linux
Issue ID: 344
Category: module
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Moonbase Version: 20080328.09
Core Tools: Lunar
Core Tools Version: 20080328.09
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 03-31-2008 05:21 CEST
Last Modified: 08-18-2008 18:47 CEST
======================================================================
Summary: Cannot compile MySQL
Description:
Dear Sir:
I had installed to new server.
I try to install mysql with
#lunar mysql
I can install mysql successful.
After that I try to update my system with
#lunar -v update
After that I try to install mysql with
#lin mysql
and then the error show below
Could you please help me to fix this.
Best Regards
Piggy.
===============================================================================
....
....
......
Making all in client
make[2]: Entering directory `/usr/src/mysql-5.0.51a/client'
gcc -DUNDEF_THREADS_HACK -DDEFAULT_MYSQL_HOME="\"/usr\""
-DDATADIR="\"/var/lib/m ysql\"" -I. -I. -I../include -I../include
-I../include -I../regex -DDBUG_OFF -O2 -march=pentium4
-Wno-deprecated -pipe -fno-implicit-templates -fno-excep tions
-fno-rtti -c -o mysql.o mysql.cc
gcc -DUNDEF_THREADS_HACK -DDEFAULT_MYSQL_HOME="\"/usr\""
-DDATADIR="\"/var/lib/m ysql\"" -I. -I. -I../include -I../include
-I../include -I../regex -DDBUG_OFF -O2 -march=pentium4
-Wno-deprecated -pipe -fno-implicit-templates -fno-excep tions
-fno-rtti -c -o readline.o readline.cc
gcc -DUNDEF_THREADS_HACK -DDEFAULT_MYSQL_HOME="\"/usr\""
-DDATADIR="\"/var/lib/m ysql\"" -I. -I. -I../include -I../include
-I../include -I../regex -DDBUG_OFF -O2 -march=pentium4
-Wno-deprecated -pipe -fno-implicit-templates -fno-excep tions
-fno-rtti -c -o sql_string.o sql_string.cc
gcc -DUNDEF_THREADS_HACK -DDEFAULT_MYSQL_HOME="\"/usr\""
-DDATADIR="\"/var/lib/m ysql\"" -I. -I. -I../include -I../include
-I../include -I../regex -DDBUG_OFF -O2 -march=pentium4
-Wno-deprecated -pipe -fno-implicit-templates -fno-excep tions
-fno-rtti -c -o completion_hash.o completion_hash.cc
/bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link gcc
-DDBUG_OFF -O 2 -march=pentium4 -Wno-deprecated -pipe
-fno-implicit-templates -fno-exception s -fno-rtti -s -Wl,-O1
-Wl,-O1,--as-needed -z combreloc -rdynamic -o mysql my sql.o
readline.o sql_string.o completion_hash.o -lreadline -lncurses ../libmysql
/libmysqlclient.la -lcrypt -lnsl -lm -lz
mkdir .libs
gcc -DDBUG_OFF -O2 -march=pentium4 -Wno-deprecated -pipe
-fno-implicit-templates -fno-exceptions -fno-rtti -s -Wl,-O1
-Wl,-O1 -Wl,--as-needed -z combreloc -rdyn amic -o .libs/mysql
mysql.o readline.o sql_string.o completion_hash.o -lreadlin e
-lncurses ../libmysql/.libs/libmysqlclient.so -lcrypt -lnsl -lm -lz
/lib/libreadline.so: undefined reference to `PC'
/lib/libreadline.so: undefined reference to `tgetflag'
/lib/libreadline.so: undefined reference to `tgetent'
/lib/libreadline.so: undefined reference to `UP'
/lib/libreadline.so: undefined reference to `tputs'
/lib/libreadline.so: undefined reference to `tgoto'
/lib/libreadline.so: undefined reference to `tgetnum'
/lib/libreadline.so: undefined reference to `BC'
/lib/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/usr/src/mysql-5.0.51a/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mysql-5.0.51a'
make: *** [all] Error 2
Compilation of mysql failed.
If you are getting error about 'read_cr4/write_cr4' and/or 'set_in_cr4'
note that this is not a mysql bug.
To fix this please edit the include file that reports the errors and
encapsulate the 'set_in_cr4' function with '#ifdef __KERNEL__'/'#endif'.
Creating /var/log/lunar/compile/mysql-5.0.51a.bz2
! Problem detected during BUILD
===============================================================================
======================================================================
----------------------------------------------------------------------
zbiggy - 05-31-08 13:09
----------------------------------------------------------------------
lin readline
should help.
Then lin mysql again.
----------------------------------------------------------------------
florin - 08-18-08 18:47
----------------------------------------------------------------------
I can't confirm the problem. The module compiles and installs just fine.
Please do a lunar update first and try to lin mysql.
Issue History
Date Modified Username Field Change
======================================================================
03-31-08 05:21 piggy New Issue
03-31-08 05:21 piggy File Added: activity
03-31-08 05:21 piggy Moonbase Version => 20080328.09
03-31-08 05:21 piggy Core Tools => Lunar
03-31-08 05:21 piggy Core Tools Version => 20080328.09
05-31-08 13:09 zbiggy Note Added: 0000794
08-18-08 18:47 florin Note Added: 0000804
08-18-08 18:47 florin Assigned To => florin
08-18-08 18:47 florin Status new => resolved
======================================================================
More information about the Lunar-bugs
mailing list