View Single Post

   
  #2 (permalink)  
Old 02-28-2008, 10:29 AM
Michael Vilain
 
Posts: n/a
Default Re: Building from source on Mac OS X Leopard

In article <1193775756.557762.209250@v3g2000hsg.googlegroups. com>,
Wincent Colaiuta <win@wincent.com> wrote:

> Anyone had any luck building from source on the newly released Mac OS
> X Leopard?
>
> A "./configure && make" with MySQL 5.0.45 bails for me while trying to
> make the mysys target; this is on an Intel Mac:
>
> ranlib: archive member: libmysys.a(my_new.o) cputype (7) does not
> match previous archive members cputype (18) (all members must match)
> ranlib: archive member: libmysys.a(raid.o) cputype (7) does not match
> previous archive members cputype (18) (all members must match)
> ranlib libmysys.a
> ranlib: archive member: libmysys.a(my_new.o) cputype (7) does not
> match previous archive members cputype (18) (all members must match)
> ranlib: archive member: libmysys.a(raid.o) cputype (7) does not match
> previous archive members cputype (18) (all members must match)
> ranlib: for architecture: ppc file: libmysys.a(my_getpagesize.o) has
> no symbols
> ranlib: for architecture: ppc file: libmysys.a(my_crc32.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(mf_brkhant.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_lockmem.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_port.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_netware.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_largepage.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_windac.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_access.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(my_libwrap.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(thr_mutex.o) has no
> symbols
> ranlib: for architecture: ppc file: libmysys.a(thr_rwlock.o) has no
> symbols
> ranlib: for architecture: i386 file: libmysys.a(my_new.o) has no
> symbols
> ranlib: for architecture: i386 file: libmysys.a(raid.o) has no symbols
> ranlib: warning for library: libmysys.a for architecture: i386 the
> table of contents is empty (no object file members in the library
> define global symbols)
> make[2]: *** [libmysys.a] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I later tried exporting "-arch i386" (my local native arch) in the
> ARCHFLAGS environment variable but that just got a bit further before
> giving me different errors:
>
> ld: warning in ../myisam/libmyisam.a, file is not of required
> architecture
> ld: warning in ../myisammrg/libmyisammrg.a, file is not of required
> architecture
> ld: warning in ../heap/libheap.a, file is not of required architecture
> ld: warning in ../vio/libvio.a, file is not of required architecture
> ld: warning in ../dbug/libdbug.a, file is not of required architecture
> ld: warning in ../regex/libregex.a, file is not of required
> architecture
> ld: warning in ../strings/libmystrings.a, file is not of required
> architecture
> Undefined symbols:
> "_my_fopen", referenced from:
> tz_load(char const*, st_time_zone_info*, st_mem_root*)in
> mysql_tzinfo_to_sql.o
> "_my_init", referenced from:
> _main in mysql_tzinfo_to_sql.o
> "_my_dirend", referenced from:
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> "_init_alloc_root", referenced from:
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> _main in mysql_tzinfo_to_sql.o
> "_strmake", referenced from:
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> _main in mysql_tzinfo_to_sql.o
> "_my_fread", referenced from:
> tz_load(char const*, st_time_zone_info*, st_mem_root*)in
> mysql_tzinfo_to_sql.o
> "_my_progname", referenced from:
> _my_progname$non_lazy_ptr in mysql_tzinfo_to_sql.o
> "_my_dir", referenced from:
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> "_alloc_root", referenced from:
> tz_load(char const*, st_time_zone_info*, st_mem_root*)in
> mysql_tzinfo_to_sql.o
> tz_load(char const*, st_time_zone_info*, st_mem_root*)in
> mysql_tzinfo_to_sql.o
> tz_load(char const*, st_time_zone_info*, st_mem_root*)in
> mysql_tzinfo_to_sql.o
> "_my_fclose", referenced from:
> tz_load(char const*, st_time_zone_info*, st_mem_root*)in
> mysql_tzinfo_to_sql.o
> "_free_root", referenced from:
> scan_tz_dir(char*) in mysql_tzinfo_to_sql.o
> _main in mysql_tzinfo_to_sql.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[4]: *** [mysql_tzinfo_to_sql] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Cheers,
> Wincent


I'd wait a couple weeks or post in a MySQL development forum. Chances
are you'll get a pre-packaged MySQL version that installs on Leopard
then.

If you can't wait, then you'll have to piece together the config scripts
to create MySQL from scatch. The error looks like a library that was
built (libmysys.a) didn't have all X86 object code in it.

Any good at GNU builds?

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Reply With Quote