Bug #237 BUILD/compile-pentium-gcov does not work
Submitted: 6 Apr 2003 14:08 Modified: 1 Jul 2003 2:58
Reporter: Chiiwen Liou Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1 OS:Linux (Redhat Linux 8)
Assigned to: Bugs System CPU Architecture:Any

[6 Apr 2003 14:08] Chiiwen Liou
Description:
compile using BUILD/compile-pentium-gcov does not work on Redhat Linux 8
BTW I can compiling using BUILD/compile-pentium-debug
---------------
gcc -g -O -DSAFE_MUTEX -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mcpu=pentiumpro -fprofile-arcs -ftest-coverage -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -rdynamic -o mysql mysql.o readline.o sql_string.o completion_hash.o -static  ../cmd-line-utils/libedit/liblibedit.a -lncurses ../libmysql/.libs/libmysqlclient.a -lz -lcrypt -lnsl -lm
/usr/lib/libncurses.a(lib_termcap.o): In function `skip_zero':
lib_termcap.o(.text+0xcc): undefined reference to `__ctype_b'
/usr/lib/libncurses.a(lib_tparm.o): In function `parse_format':
lib_tparm.o(.text+0x1112): undefined reference to `__ctype_b'
/usr/lib/libncurses.a(lib_tputs.o): In function `tputs':
lib_tputs.o(.text+0x213): undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/home/chiiwen/mysql-debug/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chiiwen/mysql-debug'
make: *** [all] Error 2

How to repeat:
BUILD/compile-pentium-gcov
[7 Apr 2003 1:52] Chiiwen Liou
I can compile after compiled/installed ncurses-5.3 on my system.  But I got into problems when I tried to run
mysql-test-run -gcov. 
-----------------
~/mysql-debug/mysql-test <2> mysql-test-run -gcov
Installing Test Databases
Removing Stale Files
Installing Master Databases
running  ../sql/mysqld --no-defaults --bootstrap --skip-grant-tables     --based
ir=. --datadir=./var/master-data --skip-innodb --skip-bdb --language=../sql/shar
e/english/
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=8388600
read_buffer_size=131072
./install_test_db: line 279: 31694 Segmentation fault      $mysqld_boot  <<END_O
F_DATA
use mysql;
$c_d
$i_d

$c_h
$i_h

$c_u
$i_u

$c_f
$i_f

$c_t
$c_c

$c_hl
$c_hc
$c_clr
END_OF_DATA

Error executing mysqld --bootstrap
Error:  Could not install master test DBs
[13 Apr 2003 9:03] Chiiwen Liou
It must be some environment problems. Now I can compile BUILD/compile-pentium-gcov.
[28 Apr 2003 2:34] Victor Vagin
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.