Bug #22326 Build problems on hurd-i386: conflicting declaration of socklen_t
Submitted: 13 Sep 2006 22:36 Modified: 4 Oct 2006 20:27
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.26-BK, 5.0.24 OS:
Assigned to: Magnus Blåudd CPU Architecture:Any

[13 Sep 2006 22:36] Christian Hammers
Description:
As reported in http://bugs.debian.org/387369

MySQL fails to build on hurd-i386:
> make[4]: Entering directory
> `/build/buildd/mysql-dfsg-5.0-5.0.24/extra/yassl/testsuite'
> 	test.hpp:31: error: conflicting declaration 'typedef int socklen_t'
> /usr/include/unistd.h:243: error: 'socklen_t' has a previous declaration as 'typedef __socklen_t socklen_t'
> make[4]: *** [testsuite-testsuite.o] Error 1  

The complete build log is available at this URL:
  http://experimental.ftbfs.de/fetch.php?&pkg=mysql-dfsg-5.0&ver=5.0.24-1&arch=hurd-i386&sta...

This is due to a bad check on __MACH__, which is fixed once the
following patch is applied.

How to repeat:
Build on hurd-i386.

Suggested fix:
--- old/extra/yassl/testsuite/test.hpp	2006-09-13 17:42:45.000000000 +0000
+++ new/extra/yassl/testsuite/test.hpp	2006-09-13 17:43:28.000000000 +0000
@@ -27,7 +27,7 @@
 #endif /* _WIN32 */
 
 
-#if !defined(_SOCKLEN_T) && (defined(__MACH__) || defined(_WIN32))
+#if !defined(_SOCKLEN_T) && defined(_WIN32)
     typedef int socklen_t;
 #endif
[15 Sep 2006 10:32] Valeriy Kravchuk
Sources of 5.0.26-BK are still the same as reported.
[15 Sep 2006 13:39] Magnus Blåudd
Committed to yaSSL CVS repo
[15 Sep 2006 13:41] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/12018

ChangeSet@1.2267, 2006-09-15 15:41:04+02:00, msvensson@shellback.(none) +1 -0
  Bug#22326  	Build problems on hurd-i386: conflicting declaration of socklen_t
[15 Sep 2006 22:21] Chad MILLER
Available in 5.1.12-beta.
[15 Sep 2006 23:15] Paul Dubois
Noted in 5.1.12 changelog.

Resetting report to NDI pending merge into 5.0.
[4 Oct 2006 17:52] Magnus Blåudd
Pushed to 5.0.26
[4 Oct 2006 20:26] Paul Dubois
Noted in 5.0.26 changelog.