Bug #19549 fails to build from source on solaris x86
Submitted: 4 May 2006 22:13 Modified: 23 Jun 2006 10:39
Reporter: Kris Jurka Email Updates:
Status: Duplicate Impact on me:
Category:Connector / ODBC Severity:S2 (Serious)
Version:3.51.12 OS:Solaris (Solaris 9 x86)
Assigned to: CPU Architecture:Any

[4 May 2006 22:13] Kris Jurka
util/MYODBCUtilReadDataSourceStr.c:23 tries to determine if the OS has the strndup function available, but this check is inadequate for solaris x86 which does not have it.  This results in an undefined symbol error.

How to repeat:
Try to compile on Solaris x86:
$ uname -a
SunOS albert 5.9 Generic_117172-05 i86pc i386 i86pc
$ cc -V
cc: Sun WorkShop 6 update 2 C 5.3 Patch 111680-09 2003/05/18

Suggested fix:
This check should be done with autoconf rather than some ad-hoc list in a random source file.
[5 May 2006 21:59] Kris Jurka
This looks like a duplicate of bug 7974, http://bugs.mysql.com/bug.php?id=7974
[23 Jun 2006 10:39] Sveta Smirnova
Yes, it is duplicates #7974