Description:
Building MySQL 4.1.7 on Solaris 9 x86 using Sun Studio 9 and GNU as to build the assembler portions, my_strtoll-x86.s fails to link as the the .my_strtoll10_end symbol fails to resolve. It looks like when the file is assembled using gcc as the frontend it deals with such issues.
Undefined first referenced
symbol in file
.my_strtoll10_end ../strings/libmystrings.a(my_strtoll10-x86.o)
ld: fatal: Symbol referencing errors. No output written to charset2html
make[2]: *** [charset2html] Error 1
How to repeat:
On Solaris 9 x86, install Sun Studio 9 and GNU as.
Configure using:
PATH=/usr/ccs/bin:$PATH CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC AS=/usr/local/bin/gas ./configure --enable-assembler
make
Suggested fix:
Index: mysql/strings/my_strtoll10-x86.s
===================================================================
RCS file: /cvsroot/upstream/mysql/strings/my_strtoll10-x86.s,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 my_strtoll10-x86.s
--- mysql/strings/my_strtoll10-x86.s 23 Oct 2004 07:28:45 -0000 1.1.1.1
+++ mysql/strings/my_strtoll10-x86.s 28 Oct 2004 08:27:23 -0000
@@ -394,7 +394,7 @@
popl %ebp
ret
-my_strtoll10_end:
+.my_strtoll10_end:
.size my_strtoll10,.my_strtoll10_end-my_strtoll10
.comm res,240,32
.comm end_ptr,120,32