Subject: Re: Mysql-server
To: None <port-macppc@netbsd.org>
From: Donald Lee <donlee_ppc@icompute.com>
List: port-macppc
Date: 03/23/2002 18:52:10
I, also have tried to build MySQL - just today!

I started from source.  I'm stubborn. ;->

I am running NetBSD 1.5.2.  I have not tried to dig into this at all and
figure out what's busted, but this is what I did:

(per documentation suggestions:)

procedure and output below.

If I stop being stubborn, and start with pkgsrc, will it work?  I need
both server and client.

Thanks,

-dgl-

------------
(run)
>#!/bin/ksh
>
>set -ex
>
>#
># do the configure step with the params suggested in the docs
>#
>
>export CFLAGS="-O3"
>export CXX=gcc
>export CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti"
>./configure \
>        --prefix=/usr/local/mysql \
>        --enable-assembler \
>        --with-mysqld-ldflags=-all-static

(then run)
> make
... [lots of output]
... [culminating in...]

/bin/sh ../libtool --mode=link c++  -O3 -DDBUG_OFF -O3 -felide-constructors -fno
-exceptions -fno-rtti  -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_cla
ss.o sql_list.o net_serv.o violite.o  net_pkg.o lock.o my_lock.o sql_string.o sq
l_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  s
ql_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 f
ilesort.o handler.o ha_heap.o ha_myisam.o  ha_myisammrg.o ha_berkeley.o ha_innob
ase.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  stack
trace.o -all-static                                             ../isam/libnisam
.a                      ../merge/libmerge.a                     ../myisam/libmyi
sam.a                   ../myisammrg/libmyisammrg.a                     ../heap/
libheap.a                       ../mysys/libmysys.a                     ../dbug/
libdbug.a                       ../regex/libregex.a                     ../strin
gs/libmystrings.a    ../mit-pthreads/obj/libpthread.a -lz -lcrypt -lm
c++ -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-impli
cit-templates -fno-exceptions -fno-rtti -Dunix -o mysqld sql_lex.o item.o item_s
um.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_m
alloc.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 passwor
d.o hash_filo.o hostname.o convert.o sql_parse.o sql_yacc.o sql_base.o table.o s
ql_select.o sql_insert.o sql_update.o sql_delete.o sql_do.o procedure.o item_uni
q.o sql_test.o log.o log_event.o init.o derror.o sql_acl.o unireg.o time.o opt_r
ange.o opt_sum.o opt_ft.o records.o filesort.o handler.o ha_heap.o ha_myisam.o h
a_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/libm
erge.a ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../my
sys/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 `ctime':
localtime.o(.text+0x1cc4): multiple definition of `ctime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x2cc4): first defined here
/usr/bin/ld: Warning: size of symbol `ctime' changed from 40 to 36 in localtime.
o
/usr/lib/libc.a(localtime.o): In function `mktime':
localtime.o(.text+0x267c): multiple definition of `mktime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x2f14): first defined here
/usr/bin/ld: Warning: size of symbol `mktime' changed from 116 to 80 in localtim
e.o
/usr/lib/libc.a(localtime.o): In function `localtime':
localtime.o(.text+0x1650): multiple definition of `localtime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x1964): first defined here
/usr/bin/ld: Warning: size of symbol `localtime' changed from 504 to 84 in local
time.o
/usr/lib/libc.a(localtime.o): In function `gmtime':
localtime.o(.text+0x17c0): multiple definition of `gmtime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x1b5c): first defined here
/usr/bin/ld: Warning: size of symbol `gmtime' changed from 320 to 72 in localtim
e.o
/usr/lib/libc.a(asctime.o): In function `asctime':
asctime.o(.text+0xc8): multiple definition of `asctime'
../mit-pthreads/obj/libpthread.a(ctime.o)(.text+0x2030): first defined here
/usr/bin/ld: Warning: size of symbol `asctime' changed from 288 to 40 in asctime
.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+0x11fc): first defined he
re
/usr/bin/ld: Warning: size of symbol `_res_init' changed from 204 to 3192 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 r
es_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_p
ton.o
collect2: ld returned 1 exit status
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
mercy$