Bug #46538 making of innodb as plugin failed on SunOS x86
Submitted: 4 Aug 2009 9:59 Modified: 8 Oct 2010 11:37
Reporter: Horst Hunger Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:azalea (5.4) OS:Solaris (SunOS fimafeng14 5.10 Generic_127128-11 i86pc i386 i86pc)
Assigned to: CPU Architecture:Any
Tags: innodb, plugin, solaris

[4 Aug 2009 9:59] Horst Hunger
Description:
the compile sequence

autoreconf --force --install
./configure --with-debug --with-embedded-server
make

failed with the following errors:
...
__divdi3                            0xd05       .libs/ha_innodb_la-trx0roll.o
__divdi3                            0x1c86      .libs/ha_innodb_la-trx0roll.o
__divdi3                            0x11d5      .libs/ha_innodb_la-trx0sys.o
__divdi3                            0x66f0      .libs/ha_innodb_la-ha_innodb.o
__moddi3                            0x571       .libs/ha_innodb_la-log0log.o
__moddi3                            0x5aa       .libs/ha_innodb_la-log0log.o
__moddi3                            0x72c       .libs/ha_innodb_la-log0log.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[2]: *** [ha_innodb.la] Error 1
make[2]: Leaving directory `/home/hh221802/bzr/mysql-azalea-wl4939/storage/innobase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hh221802/bzr/mysql-azalea-wl4939/storage'
make: *** [all-recursive] Error 1

the compile with "./configure --with-debug --with-embedded-server --with-plugins=partition,innobase" is successful.

How to repeat:
autorecon --force --install
./configure --with-debug --with-embedded-server
make

on SunOS.
[4 Aug 2009 20:31] Sveta Smirnova
Thank you for the report.

Please indicate which version of InnoDB plugin do you use and compiler do you use.
[5 Aug 2009 8:30] Horst Hunger
Compiler:
gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

Innodb version: I took the mysql-azalea tree as basis. Last pull: August,04.
[5 Aug 2009 8:44] Sveta Smirnova
Thank you for the feedback.

But you said about InnoDB as plugin. Do you use separate InnoDB plugin code or was it just Azalea sources?
[6 Aug 2009 8:16] Horst Hunger
Just Azalea sources means what I found in the azalea tree.
[12 Aug 2009 11:00] Sveta Smirnova
Thank you for the report.

Verified as described. Bug is only repeatable on Solaris on x86 platform.
[11 Sep 2009 5:33] Sveta Smirnova
See also bug #47263
[8 Oct 2010 11:37] Daniel Fischer
I can't repeat this in a meaningful way. Both our 5.5 and 5.1 packages for this platform include the InnoDB plugin, so the build is working.