[uClibc] MySQL compile error

Oliver Ertl 76729 at gmx.de
Wed Jul 7 19:19:56 UTC 2004


Hello,

I try to compile mysql-3.23.58 under a uclibc-0.9.20/gcc-3.3.3 
toolchain.
Compiling only the client-libs with --without-server works fine. But 
I need the server.
Can you tell me what I need to do to get this thing working?

Here is the output from the make command:
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" 
-DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql
\"" -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I./../regex -I. 
-I../include -I.. -I.    -O3 -DDBUG_OFF -O3  
-fno-implicit-templates -fno-exceptions -fno-rtti -c -o 
item_strfunc.o `test -f item_strfunc.cc || echo 
'./'`item_strfunc.cc
source='item_timefunc.cc' object='item_timefunc.o' libtool=no \
depfile='.deps/item_timefunc.Po' tmpdepfile='.deps/
item_timefunc.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" 
-DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql
\"" -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I./../regex -I. 
-I../include -I.. -I.    -O3 -DDBUG_OFF -O3  
-fno-implicit-templates -fno-exceptions -fno-rtti -c -o 
item_timefunc.o `test -f item_timefunc.cc || echo 
'./'`item_timefunc.cc
item_timefunc.cc: In member function `virtual void 
   Item_func_curdate::fix_length_and_dec()':
item_timefunc.cc:423: error: structure `tm_tmp' with uninitialized 
const 
   members
item_timefunc.cc: In member function `virtual void 
   Item_func_curtime::fix_length_and_dec()':
item_timefunc.cc:452: error: structure `tm_tmp' with uninitialized 
const 
   members
item_timefunc.cc: In member function `virtual void 
   Item_func_now::fix_length_and_dec()':
item_timefunc.cc:469: error: structure `tm_tmp' with uninitialized 
const 
   members
item_timefunc.cc: In member function `virtual String* 
   Item_func_from_unixtime::val_str(String*)':
item_timefunc.cc:872: error: structure `tm_tmp' with uninitialized 
const 
   members
item_timefunc.cc: In member function `virtual longlong 
   Item_func_from_unixtime::val_int()':
item_timefunc.cc:897: error: structure `tm_tmp' with uninitialized 
const 
   members
item_timefunc.cc: In member function `virtual bool 
   Item_func_from_unixtime::get_date(TIME*, bool)':
item_timefunc.cc:914: error: structure `tm_tmp' with uninitialized 
const 
   members
make[4]: *** [item_timefunc.o] Error 1
make[4]: Leaving directory `/home/router-dev/tmp/mysql-3.23.58/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/router-dev/tmp/mysql-3.23.58/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/router-dev/tmp/mysql-3.23.58/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/router-dev/tmp/mysql-3.23.58'
make: *** [all] Error 2

Thanks for your attention.

Oliver Ertl



More information about the uClibc mailing list