List:Bugs« Previous MessageNext Message »
From:sasha Date:October 21 2000 5:41pm
Subject:Re: Compile error with 3.23.26-beta
View as plain text  
Colin Faber wrote:
> 
> Config: --prefix=/usr/local/mysql --with-berkely-db=/usr/local/db-3.17
> Compiler: gcc/2.7.2 and 2.95.2
> Os: FreeBSD 3.5-STABLE
> 
> ERROR:
> 
> c++ -O3 -DDBUG_OFF -fno-implicit-templates
> -DMYSQLD_NET_RETRY_COUNT=1000000 -o mysqld sql_lex.o item.o item_sum.o
> item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o
> thr_malloc.o item_create.o field.o key.o sql_class.o sql_list.o
> net_serv.o violite.o net_pkg.o lock.o my_lock.o sql_string.o sql_map.o
> mysqld.o password.o hash_filo.o hostname.o convert.o sql_parse.o
> sql_yacc.o sql_base.o table.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 opt_ft.o records.o
> filesort.o handler.o ha_isam.o ha_isammrg.o ha_heap.o ha_myisam.o
> ha_myisammrg.o ha_berkeley.o sql_db.o sql_table.o sql_rename.o
> sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o
> sql_analyse.o sql_cache.o slave.o sql_repl.o md5.o log_event.o
> mini_client.o mini_client_errors.o -L/usr/local/BerkeleyDB/lib -ldb
> ../isam/libnisam.a ../merge/libmerge.a ../myisam/libmyisam.a
> ../myisammrg/libmyisammrg.a ../heap/libheap.a ../mysys/libmysys.a
> ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lc_r
> -lm -lz -lcrypt -pthread
> slave.o: In function `exec_event(THD *, st_net *, st_master_info *,
> int)':
> slave.o(.text+0x1419): undefined reference to
> `I_List_iterator<i_string_pair>::I_List_iterator(I_List<i_string_pair>
> &)'
> slave.o(.text+0x1427): undefined reference to
> `I_List_iterator<i_string_pair>::operator++(int)'
> slave.o(.text+0x178c): undefined reference to
> `I_List_iterator<i_string_pair>::I_List_iterator(I_List<i_string_pair>
> &)'
> slave.o(.text+0x179b): undefined reference to
> `I_List_iterator<i_string_pair>::operator++(int)'
> gmake[3]: *** [mysqld] Error 1
> gmake[3]: Leaving directory `/export/local/src/mysql-3.23.26-beta/sql'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/export/local/src/mysql-3.23.26-beta/sql'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/export/local/src/mysql-3.23.26-beta'
> gmake: *** [all-recursive-am] Error 2
> [root@brimstone /usr/local/src/mysql-3.23.26-beta]\.: gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/i386-portbld-freebsd3.4/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
> [root@brimstone /usr/local/src/mysql-3.23.26-beta]\.: uname -a
> FreeBSD brimstone.fpsn.net 3.5-STABLE FreeBSD 3.5-STABLE #4: Wed Oct 18
> 09:50:21 MDT 2000
> cfaber@stripped:/usr/src/sys/compile/SMP-PPRO  i386
> [root@brimstone /usr/local/src/mysql-3.23.26-beta]\.:

Chris:

First of all, next time make sure to always at least CC the appropriate list,
and not send personal mails to developers, even if you are sure that a certain
developer is responsible the code that is giving you problems.

To fix the problem, try this patch:

--- 1.47/sql/slave.cc   Sun Oct  8 01:48:23 2000
+++ edited/slave.cc     Sat Oct 21 11:06:51 2000                           
@@ -986,5 +986,6 @@

 #ifdef __GNUC__
 template class I_List_iterator<i_string>;
+template class I_List_iterator<i_string_pair>;
 #endif

Let us know if it fixes the problem...

-- 
MySQL Development Team
   __  ___     ___ ____  __ 
  /  |/  /_ __/ __/ __ \/ /   Sasha Pachev <sasha@stripped>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  Provo, Utah, USA
       <___/
Thread
Re: Compile error with 3.23.26-betasasha21 Oct