Subject: MySQL 3.23.40 woes...
To: netbsd current <current-users@netbsd.org>
From: David Reid <dreid@jetnet.co.uk>
List: current-users
Date: 09/14/2001 01:16:17
Trying to build from the source.

Untarred & did this to configure...

./configure --prefix=/usr/local/mysql --with-mysqld-ldflags=-all-static

The build seems to go OK then dies as follows...

c++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -Dunix 
-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 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 -static ../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 ../mit-pthreads/obj/libpthread.a -lz -lcrypt -lm
/usr/lib/libc.a(localtime.o): In function `mktime':
localtime.o(.text+0x26bc): multiple definition of `mktime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x2db4): first defined here
/usr/bin/ld: Warning: size of symbol `mktime' changed from 116 to 80 in
localtime.o
/usr/lib/libc.a(localtime.o): In function `localtime':
localtime.o(.text+0x1690): multiple definition of `localtime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x194c): first defined here
/usr/bin/ld: Warning: size of symbol `localtime' changed from 504 to 84 in
localtime.o
/usr/lib/libc.a(localtime.o): In function `gmtime':
localtime.o(.text+0x1800): multiple definition of `gmtime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x1b44): first defined here
/usr/bin/ld: Warning: size of symbol `gmtime' changed from 320 to 72 in
localtime.o
/usr/lib/libc.a(res_init.o)(.data+0x0): multiple definition of `_res'
../mit-pthreads/obj/libpthread.a(res_internal.o)(.data+0x44): first defined
here
/usr/lib/libc.a(res_init.o): In function `_res_init':
res_init.o(.text+0x0): multiple definition of `_res_init'
../mit-pthreads/obj/libpthread.a(res_internal.o)(.text+0x1204): first
defined here
/usr/bin/ld: Warning: size of symbol `_res_init' changed from 204 to 3152 in
res_init.o
/usr/lib/libc.a(res_comp.o): In function `__dn_skipname':
res_comp.o(.text+0x68): multiple definition of `__dn_skipname'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x3e0): first defined
here
/usr/bin/ld: Warning: size of symbol `__dn_skipname' changed from 104 to 76
in res_comp.o
/usr/lib/libc.a(res_comp.o): In function `_getlong':
res_comp.o(.text+0x2e8): multiple definition of `_getlong'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x3b4): first defined
here
/usr/lib/libc.a(res_comp.o): In function `__putlong':
res_comp.o(.text+0x324): multiple definition of `__putlong'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x448): first defined
here
/usr/lib/libc.a(res_comp.o): In function `_getshort':
res_comp.o(.text+0x2d4): multiple definition of `_getshort'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x3a0): first defined
here
/usr/lib/libc.a(res_comp.o): In function `__putshort':
res_comp.o(.text+0x314): multiple definition of `__putshort'
../mit-pthreads/obj/libpthread.a(res_comp.o)(.text+0x46c): first defined
here
/usr/lib/libc.a(inet_pton.o): In function `inet_addr':
inet_pton.o(.text+0x5e0): multiple definition of `inet_addr'
../mit-pthreads/obj/libpthread.a(inet_addr.o)(.text+0x244): first defined
here
/usr/bin/ld: Warning: size of symbol `inet_addr' changed from 52 to 56 in
inet_pton.o
/usr/lib/libc.a(findfp.o): In function `__sinit':
findfp.o(.text+0x218): multiple definition of `__sinit'
../mit-pthreads/obj/libpthread.a(findfp.o)(.text+0x13c): first defined here
/usr/bin/ld: Warning: size of symbol `__sinit' changed from 48 to 32 in
findfp.o
/usr/lib/libc.a(findfp.o): In function `_cleanup':
findfp.o(.text+0x1f4): multiple definition of `_cleanup'
../mit-pthreads/obj/libpthread.a(findfp.o)(.text+0x16c): first defined here
/usr/bin/ld: Warning: size of symbol `_cleanup' changed from 32 to 36 in
findfp.o
/usr/lib/libc.a(findfp.o)(.data+0x10): multiple definition of `__sF'
../mit-pthreads/obj/libpthread.a(findfp.o)(.data+0xc): first defined here
/usr/bin/ld: Warning: size of symbol `__sF' changed from 192 to 264 in
findfp.o
/usr/lib/libc.a(findfp.o): In function `__sfp':
findfp.o(.text+0xb4): multiple definition of `__sfp'
../mit-pthreads/obj/libpthread.a(findfp.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `__sfp' changed from 316 to 212 in
findfp.o
/usr/lib/libc.a(findfp.o)(.data+0x118): multiple definition of `__sglue'
../mit-pthreads/obj/libpthread.a(findfp.o)(.data+0xcc): first defined here
collect2: ld returned 1 exit status

I tried the suggested build line in the installation html page but same
result.  Anyone got any ideas what's going on?  ISTR the very first build
went OK, but don't think I did anything different...

System is NetBSD-1.5x (current) on a Mac G4 Cube.

david