Bug #34866 | Can't compile on Solaris 9/Sparc with gcc | ||
---|---|---|---|
Submitted: | 26 Feb 2008 23:55 | Modified: | 5 May 2011 15:01 |
Reporter: | Hakan Küçükyılmaz | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
Version: | 6.0.5 | OS: | Solaris (Solaris 9/Sparc, 10/Intel) |
Assigned to: | Jonathan Perkin | CPU Architecture: | Any |
[26 Feb 2008 23:55]
Hakan Küçükyılmaz
[7 Mar 2008 23:35]
Trudy Pelzer
On IRC, Hakan reported he has the same failure on Solaris 10/Intel and Solaris 9/Sparc
[30 Sep 2008 9:29]
Amit Saha
I have run into the same error using the 5.1.28-rc sources with the following development environment: gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802) GNU Make 3.81 SunOS opensolaris 5.11 snv_86 i86pc i386 i86pc Solaris
[16 Nov 2008 18:07]
Erik Ljungstrom
I can confirm this bug with same setup as Amit, but with version 5.1.29-rc
[28 Nov 2008 11:32]
MC Brown
This issue is caused by trying to link in an empty library to the binary. On Solaris/ELF binaries the gnu ld attempts to open the symbol table for what is an empty library and promptly fails. The solution is to not link empty library files.
[29 Nov 2008 21:22]
Philippe Dax
I have the same error while building mysql-5.1.30 with solaris9-sparc gcc-4.2.0 ./configure --with-pthread --disable-largefile
[12 Dec 2008 0:40]
Jörg Prante
I think when Solaris ld complains about elf_getarsym, it is caused by a bug at least five years known. Solaris ld is picky about 'ar' archive internal format. A workaround for this MySQL build issue is using Sun's ar utility like this: cd sql /usr/ccs/bin/ar -ts .libs/libndb.a make msqld Thanks to Erek Adams, 21 Dec 2003, on snort-users mailing list.
[8 May 2009 18:33]
Shea Lovan
I was getting this error trying to compile 5.1.34 on Solaris 10U3. It looks like it may be a problem with the GNU Binutils package on Solaris. When I put /usr/ccs/bin in my path in front of the binutils location, the compile-time errors went away and I could run a successful "make test".
[6 Jan 2010 18:21]
Michael Widenius
This fixes the linker issue: +++ sql/ha_ndbcluster.cc 2010-01-06 18:19:02 +0000 @@ -10565,4 +10565,6 @@ } mysql_declare_plugin_end; +#else +int Sun_ar_require_a_symbol_here= 0; #endif
[15 Sep 2010 5:08]
John Warburton
This is also happening in the 5.1.x stream for me on Soalris 10/SPARC gcc 3.4.6. Just failed with mysql-5.1.50 Not just me - http://lists.mysql.com/internals/35983
[5 May 2011 15:01]
Daniel Fischer
Closing because we don't support gcc on Solaris.
[12 May 2012 0:45]
Erik Hetzner
If you don't support gcc on solaris, perhaps you could modify this page: http://dev.mysql.com/doc/refman/5.1/en/solaris-installation-source.html