Unix Technical Forum

Building from source on Mac OS X Leopard

This is a discussion on Building from source on Mac OS X Leopard within the MySQL forums, part of the Database Server Software category; --> Anyone had any luck building from source on the newly released Mac OS X Leopard? A "./configure && make" ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:29 AM
Wincent Colaiuta
 
Posts: n/a
Default Building from source on Mac OS X Leopard

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11: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...



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:29 AM
Wincent Colaiuta
 
Posts: n/a
Default Re: Building from source on Mac OS X Leopard

On Oct 30, 11:34 pm, Michael Vilain <vil...@NOspamcop.net> wrote:
> Wincent Colaiuta <w...@wincent.com> wrote:
>
> > Anyone had any luck building from source on the newly released Mac OS
> > X Leopard?

>
> 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.


Luckily it's not critical so if I can't get this to work I'll wait
until MySQL makes a binary install available (although it's possible
that their existing Tiger binaries might continue to work on Leopard
anyway).

> 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?


Hehe, only when they work. I'll check out a dev forum like you
suggest.

Cheers,
Wincent


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com