Bug #36400 Compiling Falcon on Solaris 10/x86 fails with Sun Studio 12
Submitted: 29 Apr 2008 14:58 Modified: 5 Oct 2008 15: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, 6.0-falcon OS:Solaris (10 x86)
Assigned to: Hakan Küçükyılmaz CPU Architecture:Any
Triage: D3 (Medium)

[29 Apr 2008 14:58] Hakan Küçükyılmaz
Description:
Compiling Falcon on Solaris 10/x86 fails with Sun Studio 12.

How to repeat:
autoreconf --force --install

./configure CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC CFLAGS="-Xa -m32 -mt" CXXFLAGS="-m32 -mt" --prefix=/usr/local/mysql-6.0 --with-named-curses=-lcurses --with-mysql-ldflags=-static --with-client-ldflags=-static --with-plugins=myisam,innobase,falcon

"Types.h", line 74: Warning: Identifier expected instead of "}".
"Types.h", line 107: Warning: Identifier expected instead of "}".
"Interlock.h", line 284: Error: __asm__ is not defined.
"Interlock.h", line 287: Error: Unexpected ":" found.
"Interlock.h", line 325: Error: __asm__ is not defined.
"Interlock.h", line 328: Error: Unexpected ":" found.

Suggested fix:
Fix contains check whether we are compiling on Solaris 10/x86 with Sun Studio compiler.
[29 Apr 2008 15:49] 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/46193

ChangeSet@1.2657, 2008-04-29 17:50:14+02:00, hakank@lu0011.(none) +1 -0
  Fix for
    Bug#36400 Compiling Falcon on Solaris 10/x86 fails with Sun Studio 12
  
  Problem was that on Solaris/x86 we ran into gcc assembler.
[29 Aug 2008 1:38] Kevin Lewis
This fix is in 6.0.6
[5 Oct 2008 15:28] Jon Stephens
Documented bugfix in the 6.0.6 changelog as follows:

        Compiling the server with Falcon support failed on Solaris 10 for x86
        platforms failed due to use of assembler code specific to gcc.