Bug #238 BUILD/compile-pentium failed to compile on Redhat Linux 8
Submitted: 6 Apr 2003 15:23 Modified: 7 Apr 2003 1:59
Reporter: Chiiwen Liou Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:mysql-4.1 OS:Linux (Redhat Linux 8)
Assigned to: CPU Architecture:Any

[6 Apr 2003 15:23] Chiiwen Liou
Description:
BUILD/compile-pentium failed to compile on Redhat Linux 8. 
Following command works fine.
-----------------------
aclocal;autoheader;autoconf;automake
(cd innobase; aclocal; autoheader; autoconf; automake)
(cd bdb/dist; sh s_all)
./configure
----------------------
Error message as follows:
mkdir .libs
gcc -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-sub
scripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsig
n-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-excep
tions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-pointer -fno-implicit-templates -fn
o-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -rdynamic -o mysql mysq
l.o readline.o sql_string.o completion_hash.o -static  ../cmd-line-utils/libedit/liblibe
dit.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
gmake[2]: *** [mysql] Error 1
gmake[2]: *** Waiting for unfinished jobs....
mysqltest.c: In function `var_query_set':
mysqltest.c:833: warning: `res' might be used uninitialized in this function
log_event.cc: In member function `virtual void Intvar_log_event::print(FILE*, 
   bool, char*)':
log_event.cc:1868: warning: `const char*msg' might be used uninitialized in 
   this function
gmake[2]: Leaving directory `/home/chiiwen/mysql-debug/client'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/chiiwen/mysql-debug'
gmake: *** [all] Error 2

How to repeat:
BUILD/compile-pentium on Redhat 8.
I am not sure whether it is due to Redhat 8 use gcc 3.2.2
[7 Apr 2003 1:57] Chiiwen Liou
BUILD/compile-pentium works after installing ncurse 5.3.
I thought if  
----these work------------
aclocal;autoheader;autoconf;automake
(cd innobase; aclocal; autoheader; autoconf; automake)
(cd bdb/dist; sh s_all)
./configure;make 
-------------------------
Then BUILD/compile-pentium should work.
[7 Apr 2003 1:59] Victor Vagin
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem is not the result of a bug.
For a list of more appropriate places to ask for help using MySQL
products, please visit http://www.mysql.com/support/

Thank you for your interest in MySQL.