Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <000701c23610$d54dfd70$3400a8c0@sknet01> From: "Terry Flannery" To: "Jari Aalto+list.cygwin" , References: <1y9ow98u DOT fsf AT blue DOT sea DOT net> Subject: Re: mysql 3.23.51 compilation problems? Date: Sun, 28 Jul 2002 09:29:01 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 I had the same problem, I fixed it my creating a simple source file with: int __static_initialization_and_destruction_0(int a,int b) { return __static_initialization_and_destruction_0ii(a,b); } and linking it in where ever there was an undefined reference to __static_initialization_and_destruction_0, and __static_initialization_and_destruction_0ii is defined in libstdc++.a from gcc 3.1. Terry ----- Original Message ----- From: "Jari Aalto+list.cygwin" To: Sent: Sunday, July 28, 2002 9:24 AM Subject: mysql 3.23.51 compilation problems? I fixed couple of sys.h include errors under cygwin and compilation went to final stage. But now I need more help. Does the following error say anything to you? Should I include some "-l" library to the compilation phase? ./strings/libmystrings.a -lz -lcrypt -lm g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -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_manager.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 sql_do.o procedure.o item_uniq.o sql_test.o log.o log_event.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_heap.o ha_myisam.o ha_myisammrg.o ha_berkeley.o ha_innobase.o ha_gemini.o ha_isam.o ha_isammrg.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 mini_client.o mini_client_errors.o md5.o stacktrace.o ../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 -lz -lcrypt item_strfunc.o(.text+0x3c36):item_strfunc.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)' item_strfunc.o(.text+0x3c56):item_strfunc.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)' item_timefunc.o(.text+0x2bc6):item_timefunc.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)' item_timefunc.o(.text+0x2be6):item_timefunc.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)' convert.o(.text+0x136):convert.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)' log.o(.text+0x3526):log.cc: more undefined references to `__static_initialization_and_destruction_0(int, int)' follow collect2: ld returned 1 exit status make[3]: *** [mysqld] Error 1 make[3]: Leaving directory `/usr/src/mysql-3.23.51/sql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/mysql-3.23.51/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/mysql-3.23.51' make: *** [all-recursive-am] Error 2 -- http://tiny-tools.sourceforge.net/ Swatch @time http://www.ryanthiessen.com/swatch/resources.htm Convert @time http://www.mir.com.my/iTime/itime.htm -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/