Hello,
Maybe someone has had the same problem, it makes me go mad since about a week, now. I'm just unable to build MySQL 5.1.45 . I've built many versions on Solaris 10, first time I try on an OpenSolaris box, seems that I've stumbled. I'm at the point of reverting my server to a good old Solaris 10u8 and forget about OpenSolaris.
Looks like I have build issues, irrespective of the compiler I use (SunStudio 12.1 or GCC). Here's my ./configure statement (same for both build environment) and my .profile with 2 PATH variables: I use the first one for SunStudio (2nd is then commented), and I use the 2nd PATH when using GCC (I then comment the first one).
The error is always the same :
.rodata (section) 0x563 .libs/ha_innodb_plugin_la-ut0wqueue.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ha_innodb_plugin.la'
Current working directory /root/lamp/mysql-5.1.45/storage/innodb_plugin
*** Error code 1
The following command caused the error:
Here's my ./configure line :
./configure --prefix=/tools/mysql --enable-profiling --enable-local-infile --with-pthread --with-mysqld-user=mysql --with-fast-mutexes --with-comment --with-big-tables --with-plugins=innobase,innodb_plugin,ibmdb2i
(before --prefix, I put these:
for SunStudio : CC=cc CXX=CC CFLAGS=-m64 CXXFLAGS=-m64
for GCC : CC=gcc CXX=g++ CFLAGS=-m64 CXXFLAGS=-m64 )
Now, my .profile :
export PATH=/opt/sunstudio12.1/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/usr/sfw/bin
export PATH=/opt/csw/bin:/usr/sfw/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/ccs/bin
export MANPATH=/opt/csw/man:/opt/sunstudio12.1/man:/usr/gnu/share/man:/usr/man
export EDITOR=vi
export TERM=vt100
export PS1='[\t|\u@\h:\w] '
System is :
[22:11:47|root@bergen:~/lamp/mysql-5.1.45] uname -a
SunOS bergen 5.11 snv_111b i86pc i386 i86pc Solaris
gcc is :
[22:12:55|root@bergen:~/lamp/mysql-5.1.45] gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds2/sfwnv-111a/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
SunStudio is :
[22:14:00|root@bergen:~/lamp/mysql-5.1.45] pkginfo -l sunstudio12u1
PKGINST: sunstudio12u1
NAME: Sun Studio 12 update 1
CATEGORY: application
ARCH: i386
VERSION: 12.1,REV=20091019
VENDOR: Sun Microsystems, Inc.
DESC: Sun Studio 12 update 1
HOTLINE: Please contact your local service provider
STATUS: completely installed
I've followed the guidelines from a SUN/MySQL document,
http://forge.mysql.com/w/images/0/01/MySQLUOSDevv1.pdf , and I'm still stuck.
Anyone has a solution to this ?
-- JFG