List:General Discussion« Previous MessageNext Message »
From:Ralf Hupfer Date:March 24 2003 2:30pm
Subject:building MySQL on Alpha-Dec-OSF4 with gcc
View as plain text  
Hi,

I do face problems building MySQL 3.22.32 with gcc 3.2.2 on an Alpha-
DEC-OSF4 workstation.

CC="cc -pthread" CXX="cxx -pthread -O" ./configure  --with-named-t
hread-libs="-lpthread -lmach -lexc -lc" --with-low-memory

Everything run's smoothly, till mysqld is to be build. The linker produces:

__cxa_pure_virtual
operator delete[](void*)
operator new[](unsigned long)
operator delete(void*)
operator new(unsigned long)
collect2: ld returned 1 exit status
gnumake[3]: *** [mysqld] Error 1

The linker option "-Wl,-y__cxa_pure_virtual" shows the .o files with this 
symbol:

item.o: reference to external undefined __cxa_pure_virtual
item_sum.o: reference to external undefined __cxa_pure_virtual
item_func.o: reference to external undefined __cxa_pure_virtual
item_cmpfunc.o: reference to external undefined __cxa_pure_virtual
item_strfunc.o: reference to external undefined __cxa_pure_virtual
item_timefunc.o: reference to external undefined __cxa_pure_virtual
field.o: reference to external undefined __cxa_pure_virtual
sql_class.o: reference to external undefined __cxa_pure_virtual
procedure.o: reference to external undefined __cxa_pure_virtual
__cxa_pure_virtual
operator delete[](void*)
operator new[](unsigned long)
operator delete(void*)
operator new(unsigned long)
collect2: ld returned 1 exit status

What does that symbol mean? It does not show up when MySQL is 
compiled with Linux and gcc. There are no definitions of new or delete in 
the files listed. Can it possibly be an gcc problem?

The complete output when linking follows:

gnumake[3]: Entering directory `/usr/users/hupfer/build/mysql-
3.22.32/sql'
/bin/sh ../libtool --mode=link gcc  -D_LARGEFILE_SOURCE -
D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -
DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti  -fno-
implicit-templates -Wl,-y__cxa_pure_virtual -o mysqld  item.o item_sum.o 
item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o 
thr_malloc.o field.o key.o sql_class.o sql_list.o net_serv.o net_pkg.o 
lock.o my_lock.o sql_string.o sql_map.o mysqld.o password.o 
hash_filo.o hostname.o sql_lex.o convert.o sql_parse.o sql_yacc.o 
sql_base.o dfunc.o sql_select.o sql_insert.o sql_update.o sql_delete.o 
procedure.o item_uniq.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o 
time.o opt_range.o opt_sum.o records.o filesort.o handler.o sql_db.o 
crebas.o sql_table.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o 
sql_show.o sql_udf.o ../isam/libnisam.a                 ../merge/libmerge.a               
      
../heap/libheap.a                       ../mysys/libmysys.a       ../dbug/libdbug.a       
                
../regex/libregex.a                     ../strings/libmystrings.a -lm   -lz  -lpthread 
-lmach -lexc
gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -
D_FILE_OFFSET_BITS=64 -O3 -DDBUG_OFF -O3 -felide-constructors 
-fno-exceptions -fno-rtti -fno-implicit-templates -Wl,-y__cxa_pure_virtual 
-o mysqld item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o 
item_strfunc.o item_timefunc.o thr_malloc.o field.o key.o sql_class.o 
sql_list.o net_serv.o net_pkg.o lock.o my_lock.o sql_string.o sql_map.o 
mysqld.o password.o hash_filo.o hostname.o sql_lex.o convert.o 
sql_parse.o sql_yacc.o sql_base.o dfunc.o sql_select.o sql_insert.o 
sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o log.o init.o 
derror.o sql_acl.o unireg.o time.o opt_range.o opt_sum.o records.o 
filesort.o handler.o sql_db.o crebas.o sql_table.o sql_crypt.o sql_load.o 
mf_iocache.o field_conv.o sql_show.o sql_udf.o ../isam/libnisam.a 
../merge/libmerge.a ../heap/libheap.a ../mysys/libmysys.a 
../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lm -lz -
lpthread -lmach -lexc
item.o: reference to external undefined __cxa_pure_virtual
item_sum.o: reference to external undefined __cxa_pure_virtual
item_func.o: reference to external undefined __cxa_pure_virtual
item_cmpfunc.o: reference to external undefined __cxa_pure_virtual
item_strfunc.o: reference to external undefined __cxa_pure_virtual
item_timefunc.o: reference to external undefined __cxa_pure_virtual
field.o: reference to external undefined __cxa_pure_virtual
sql_class.o: reference to external undefined __cxa_pure_virtual
procedure.o: reference to external undefined __cxa_pure_virtual
__cxa_pure_virtual
operator delete[](void*)
operator new[](unsigned long)
operator delete(void*)
operator new(unsigned long)
collect2: ld returned 1 exit status
gnumake[3]: *** [mysqld] Error 1
gnumake[3]: Leaving directory `/usr/users/hupfer/build/mysql-3.22.32/sql'
gnumake[2]: *** [all-recursive] Error 1
gnumake[2]: Leaving directory `/usr/users/hupfer/build/mysql-3.22.32/sql'
gnumake[1]: *** [all-recursive] Error 1
gnumake[1]: Leaving directory `/usr/users/hupfer/build/mysql-3.22.32'
gnumake: *** [all-recursive-am] Error 2
bash-2.04$


With kind regards

Ralf
----------------------------------------------------------
Ralf Hupfer
Fraunhofer Institut für Verkehrs- und Infrastruktursysteme Dresden

WWW : www.ivi.fhg.de
      www.intermobil.org


Thread
building MySQL on Alpha-Dec-OSF4 with gccRalf Hupfer24 Mar
  • Re: building MySQL on Alpha-Dec-OSF4 with gccDan Nelson24 Mar
    • Re: building MySQL on Alpha-Dec-OSF4 with gccRalf Hupfer25 Mar
  • building MySQL on Alpha-Dec-OSF4 with gccMichael Widenius27 Mar
Re: building MySQL on Alpha-Dec-OSF4 with gccRalf Hupfer24 Mar