public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* MYSQL + CYGWIN
@ 2003-09-18  2:48 Marcelo Rezende Módolo
  2003-09-18  3:41 ` Larry Hall
  2003-09-18  6:40 ` Gerrit P. Haase
  0 siblings, 2 replies; 4+ messages in thread
From: Marcelo Rezende Módolo @ 2003-09-18  2:48 UTC (permalink / raw)
  To: cygwin

Hi,
I am trying to compile mysql (mysql-4.0.15) with cygwin, I  run
./configure, and make but I receive this error:

...
item_timefunc.o(.text+0x2ca6):item_timefunc.cc: undefined reference to 
`__static_initialization_and_destruction_0(int, int)'

Is this a linker error??

$ make
make  all-recursive
make[1]: Entering directory `/cygdrive/c/temp/mysql-4.0.15/sql'
Making all in share
make[2]: Entering directory `/cygdrive/c/temp/mysql-4.0.15/sql/share'
make[2]: Nada a ser feito para `all'.
make[2]: Leaving directory `/cygdrive/c/temp/mysql-4.0.15/sql/share'
make[2]: Entering directory `/cygdrive/c/temp/mysql-4.0.15/sql'
source='item_timefunc.cc' object='item_timefunc.o' libtool=no \
depfile='.deps/item_timefunc.Po' tmpdepfile='.deps/item_timefunc.TPo' \
depmode=gcc3 /bin/bash ../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../innobase/include -I./../include
-I./../regex -I. -I../include -I.     -O3 -DDBUG_OFF
-fno-implicit-templates -fno-exceptions -fno-rtti -c -o item_timefunc.o
`test -f item_timefunc.cc || echo './'`item_timefunc.cc
/bin/bash ../libtool --mode=link g++  -O3 -DDBUG_OFF
-fno-implicit-templates -fno-exceptions -fno-rtti   -o mysqld.exe
sql_lex.o sql_handler.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 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 set_var.o sql_parse.o sql_yacc.o
sql_base.o table.o sql_select.o sql_insert.o sql_update.o sql_delete.o
uniques.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 des_key_file.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_innodb.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 sql_union.o mini_client.o mini_client_errors.o stacktrace.o
repl_failsafe.o sql_olap.o ../innobase/usr/libusr.a
../innobase/odbc/libodbc.a ../innobase/srv/libsrv.a
../innobase/dict/libdict.a ../innobase/que/libque.a
../innobase/srv/libsrv.a ../innobase/ibuf/libibuf.a
../innobase/row/librow.a ../innobase/pars/libpars.a
../innobase/btr/libbtr.a ../innobase/trx/libtrx.a
../innobase/read/libread.a ../innobase/usr/libusr.a
../innobase/buf/libbuf.a ../innobase/ibuf/libibuf.a
../innobase/eval/libeval.a ../innobase/log/liblog.a
../innobase/fsp/libfsp.a ../innobase/fut/libfut.a
../innobase/fil/libfil.a ../innobase/lock/liblock.a
../innobase/mtr/libmtr.a ../innobase/page/libpage.a
../innobase/rem/librem.a ../innobase/thr/libthr.a
../innobase/com/libcom.a ../innobase/sync/libsync.a
../innobase/data/libdata.a ../innobase/mach/libmach.a
../innobase/ha/libha.a ../innobase/dyn/libdyn.a ../innobase/mem/libmem.a
../innobase/sync/libsync.a ../innobase/ut/libut.a ../innobase/os/libos.a
../innobase/ut/libut.a ../isam/libnisam.a ../merge/libmerge.a
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a      -lpthread -lz -lcrypt
-lm  -lpthread
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -o
mysqld.exe sql_lex.o sql_handler.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 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 set_var.o sql_parse.o
sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_update.o
sql_delete.o uniques.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 des_key_file.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_innodb.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 sql_union.o mini_client.o mini_client_errors.o
stacktrace.o repl_failsafe.o sql_olap.o  ../innobase/usr/libusr.a
../innobase/odbc/libodbc.a ../innobase/srv/libsrv.a
../innobase/dict/libdict.a ../innobase/que/libque.a
../innobase/srv/libsrv.a ../innobase/ibuf/libibuf.a
../innobase/row/librow.a ../innobase/pars/libpars.a
../innobase/btr/libbtr.a ../innobase/trx/libtrx.a
../innobase/read/libread.a ../innobase/usr/libusr.a
../innobase/buf/libbuf.a ../innobase/ibuf/libibuf.a
../innobase/eval/libeval.a ../innobase/log/liblog.a
../innobase/fsp/libfsp.a ../innobase/fut/libfut.a
../innobase/fil/libfil.a ../innobase/lock/liblock.a
../innobase/mtr/libmtr.a ../innobase/page/libpage.a
../innobase/rem/librem.a ../innobase/thr/libthr.a
../innobase/com/libcom.a ../innobase/sync/libsync.a
../innobase/data/libdata.a ../innobase/mach/libmach.a
../innobase/ha/libha.a ../innobase/dyn/libdyn.a ../innobase/mem/libmem.a
../innobase/sync/libsync.a ../innobase/ut/libut.a ../innobase/os/libos.a
../innobase/ut/libut.a ../isam/libnisam.a ../merge/libmerge.a
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a -lpthread -lz -lcrypt
-lpthread
item_timefunc.o(.text+0x2ca6):item_timefunc.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
item_timefunc.o(.text+0x2cc6):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+0x3e46):log.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
log.o(.text+0x3e66):log.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
collect2: ld returned 1 exit status
make[2]: ** [mysqld.exe] Erro 1
make[2]: Leaving directory `/cygdrive/c/temp/mysql-4.0.15/sql'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/cygdrive/c/temp/mysql-4.0.15/sql'
make: ** [all] Erro 2
marcelo@est01 /cygdrive/c/temp/mysql-4.0.15/sql

my gcc and g++  version:
$ g++ -v

Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure
--enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix
--with-system-zlib --enable-nls --without-included-gettext
--enable-interpreter --disable-sjlj-exceptions
--disable-version-specific-runtime-libs --enable-shared
--build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin
--enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)

thanks
marcelo




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MYSQL + CYGWIN
  2003-09-18  2:48 MYSQL + CYGWIN Marcelo Rezende Módolo
@ 2003-09-18  3:41 ` Larry Hall
  2003-09-18 11:27   ` Marcelo Rezende Módolo
  2003-09-18  6:40 ` Gerrit P. Haase
  1 sibling, 1 reply; 4+ messages in thread
From: Larry Hall @ 2003-09-18  3:41 UTC (permalink / raw)
  To: Marcelo Rezende Módolo, cygwin

At 10:20 PM 9/17/2003, Marcelo Rezende Módolo you wrote:
>Hi,
>I am trying to compile mysql (mysql-4.0.15) with cygwin, I  run
>./configure, and make but I receive this error:
>
>...
>item_timefunc.o(.text+0x2ca6):item_timefunc.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)'
>
>Is this a linker error??


Bingo!


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MYSQL + CYGWIN
  2003-09-18  2:48 MYSQL + CYGWIN Marcelo Rezende Módolo
  2003-09-18  3:41 ` Larry Hall
@ 2003-09-18  6:40 ` Gerrit P. Haase
  1 sibling, 0 replies; 4+ messages in thread
From: Gerrit P. Haase @ 2003-09-18  6:40 UTC (permalink / raw)
  To: Marcelo Rezende Módolo; +Cc: cygwin

Hallo Marcelo,

Am Donnerstag, 18. September 2003 um 04:20 schriebst du:

> Hi,
> I am trying to compile mysql (mysql-4.0.15) with cygwin, I  run
> ./configure, and make but I receive this error:

> ...
> item_timefunc.o(.text+0x2ca6):item_timefunc.cc: undefined reference to 
> `__static_initialization_and_destruction_0(int, int)'

> Is this a linker error??

You may find in the archives that it should compile if you comment the
#pragma interface
and the
#pragma implementation
in all C files and headers it shows up.

Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MYSQL + CYGWIN
  2003-09-18  3:41 ` Larry Hall
@ 2003-09-18 11:27   ` Marcelo Rezende Módolo
  0 siblings, 0 replies; 4+ messages in thread
From: Marcelo Rezende Módolo @ 2003-09-18 11:27 UTC (permalink / raw)
  To: Cygwin List

Larry Hall wrote:

>At 10:20 PM 9/17/2003, Marcelo Rezende Módolo you wrote:
>  
>
>>Hi,
>>I am trying to compile mysql (mysql-4.0.15) with cygwin, I  run
>>./configure, and make but I receive this error:
>>
>>...
>>item_timefunc.o(.text+0x2ca6):item_timefunc.cc: undefined reference to `__static_initialization_and_destruction_0(int, int)'
>>
>>Is this a linker error??
>>    
>>
>
>
>Bingo!
>
>
>--
>Larry Hall                              http://www.rfk.com
>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>838 Washington Street                   (508) 893-9889 - FAX
>Holliston, MA 01746                     
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>
>Esta mensagem foi verificada pelo E-mail Protegido Terra.
>Scan engine: VirusScan / Atualizado em 17/09/2003 / Versão: 1.4.0
>Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
>
>
>
>  
>
Larry,
do you know how can I fix it??

thanks,
marcelo



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-18 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18  2:48 MYSQL + CYGWIN Marcelo Rezende Módolo
2003-09-18  3:41 ` Larry Hall
2003-09-18 11:27   ` Marcelo Rezende Módolo
2003-09-18  6:40 ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).