Bug #23699 Building universal binary version of MySQL only partially works
Submitted: 27 Oct 2006 0:00 Modified: 28 Dec 2006 0:23
Reporter: Andreas Fink Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.26 OS:MacOS (MacOS X 10.4.8)
Assigned to: CPU Architecture:Any

[27 Oct 2006 0:00] Andreas Fink
Description:
Compiling for 4 architectures on one go on MacOS X leads to universal ppc/i386 32/64bit libraries but the binaries of the tools are staying in 32 bit single architecture.

How to repeat:
export PATH="/usr/X11R6/bin:/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin" 
export LDFLAGS="-lz -liconv" 
export CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" 
export CPPFLAGS="" 

./configure --prefix=/usr/local/mysql --disable-dependency-tracking --enable-thread-safe-client --enable-local-infile --enable-largefile --with-extra-charsets=complex --with-innodb --with-berkeley-db --with-big-tables --with-unix-socket-path=/tmp/mysql.sock --with-ndb-shm --with-ndb-port --with-ndb-port-base --with-comment --with-gnu-ld --disable-shared 

Suggested fix:
fix the makefile/configure part which deals with the tools building mysql, mysqld and the like to include CFLAGS or LDFLAGS from the main configure line.

libmysqlclient was built fine this way on power pc machine as well as on a intel machine.
[27 Nov 2006 10:36] Sveta Smirnova
Thank you for the report.

Please try using current 5.0.27 version accessible from http://dev.mysql.com/downloads/mysql/5.0.html
[28 Dec 2006 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[28 Dec 2006 0:23] Andreas Fink
this is fixed in 5.0.27 if the CXXFLAGS are also properly set as some of the tools use C++.