Bug #30564 Falcon: build fails on Intel/Mac
Submitted: 22 Aug 2007 13:26 Modified: 31 Aug 2007 12:28
Reporter: Hakan Küçükyılmaz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Falcon storage engine Severity:S3 (Non-critical)
Version:6.0.2-alpha-debug OS:MacOS (Intel)
Assigned to: Hakan Küçükyılmaz CPU Architecture:Any

[22 Aug 2007 13:26] Hakan Küçükyılmaz
Description:
Falcon compile fails on Intel/Mac after latest push.

How to repeat:
Build with
  BUILD/compile-pentium-debug-max-no-ndb

if gcc -DHAVE_CONFIG_H -D_REENTRANT -D_PTHREADS -DENGINE -DSTORAGE_ENGINE -DNAMESPACE=Nfs -D_DEBUG -DMEM_DEBUG -I. -I. -I../.. -I../../include -I../../include -I../../regex -I../../sql -I. -I./TransformLib     -g -DSAFE_MUTEX -DSAFEMALLOC -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=pentium-m -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS  -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -g   -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -fimplicit-templates -fexceptions -Wno-invalid-offsetof -MT libhafalcon_a-JString.o -MD -MP -MF ".deps/libhafalcon_a-JString.Tpo" -c -o libhafalcon_a-JString.o `test -f 'JString.cpp' || echo './'`JString.cpp; \
then mv -f ".deps/libhafalcon_a-JString.Tpo" ".deps/libhafalcon_a-JString.Po"; else rm -f ".deps/libhafalcon_a-JString.Tpo"; exit 1; fi
/usr/include/sys/aio.h:39: error: 'off_t' does not name a type
/usr/include/sys/aio.h:186: error: 'ssize_t' does not name a type
make[4]: *** [libhafalcon_a-IO.o] Error 1

Suggested fix:
Include sys/types.h before aio.h
[22 Aug 2007 14:25] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/32879

ChangeSet@1.2684, 2007-08-22 16:25:02+02:00, hakank@au0012.local +1 -0
  Fixed Intel/Mac build Bug#30564.
[29 Aug 2007 16:30] Hakan Küçükyılmaz
Done, Falcon builds on Intel/Mac again.
[29 Aug 2007 18:26] Hakan Küçükyılmaz
For the documenter:
  - Falcon compiles and runs on Intel/Mac now.
  - Known problems on Intel/Mac are:
    - The regression test falcon_bug_28040 is failing.
    - On some configurations the regression tests
    mysql and mysql_upgrade are failing
[31 Aug 2007 12:28] MC Brown
A note has been added to the 6.0.2 changelog. 

Mac OS X (Intel) support has been added. Mac OS X is not currently a supported platform. To build on Mac OS X from the repository sources you must have the most recent versions of bison, automake, autoconf and libtool installed.

There are known issues with the Falcon on Mac OS X build.