Laxmikant,
Monday, April 01, 2002, 12:33:12 PM, you wrote:

LA> Can anybody help me out in solving the build error
LA> problem for mysql

LA> I am trying to build  MySQL-3.23.49-1.src.rpm with the
LA> linux command "rpm --rebuild MySQL-3.23.49-1.src.rpm".
LA> Using redhat linux 6.2 with glibc2.1.3.

Source rpm for MySQL 3.23.49 needs gcc 2.95 or newer; that's why build
fails. You can install new version of GCC compiler.. But it's generally always better 
to install a binary release from MySQL because building MySQL is tricky. 


LA> Following is the error while compiling-------------

LA> make[2]: Entering directory
LA> `/usr/src/redhat/BUILD/mysql-3.23.49/client'
LA> gcc -DUNDEF_THREADS_HACK -I./../include                         
LA> -I../include -I./.. -I..                                
LA> -I..    -O3 -DDBUG_OFF  -O3              
LA> -felide-constructors -fno-exceptions -fno-rtti             
LA> -fno-implicit-templates -fno-exceptions -fno-rtti
LA> -fpermissive -I/usr/local/mysql-glibc/include -c
LA> mysql.cc
LA> In file included from mysql.cc:48:
LA> /usr/include/curses.h:195: warning: `ERR' redefined
LA> /usr/include/sys/ucontext.h:74: warning: this is the
LA> location of the previous definition
LA> cc1plus: Invalid option `-fpermissive'
LA> In file included from client_priv.h:19,
LA>                  from mysql.cc:28:
LA> ../include/global.h:685: abstract declarator used as
LA> declaration
LA> make[2]: *** [mysql.o] Error 1
LA> make[2]: Leaving directory
LA> `/usr/src/redhat/BUILD/mysql-3.23.49/client'
LA> make[1]: *** [all-recursive] Error 1
LA> make[1]: Leaving directory
LA> `/usr/src/redhat/BUILD/mysql-3.23.49'
LA> make: *** [all-recursive-am] Error 2
LA> Bad exit status from /var/tmp/rpm-tmp.34558 (%build)

LA> Thank you
LA> Laxmikant




-- 
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to