Bug #6299 my_strtoll-x86.s fails to link after using GNU as to assemble
Submitted: 28 Oct 2004 9:45 Modified: 29 Mar 2005 21:02
Reporter: Alex Kiernan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.7 OS:Solaris (Solaris 9 x86)
Assigned to: Sergei Golubchik CPU Architecture:Any

[28 Oct 2004 9:45] Alex Kiernan
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
[29 Mar 2005 21:02] Sergei Golubchik
Thanks. Fixed in 4.1.11