Summary: | [PATCH] databases/mysql51-client: 5.1.68 Fails to build with clang | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Bernard Spil <brnrd> | ||||||
Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | ||||||||
Priority: | Normal | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Bernard Spil
2013-02-13 11:50:00 UTC
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer (via the GNATS Auto Assign Tool) State Changed From-To: open->feedback Propose a patch, please :-) Hi Alex, If I knew how to write a patch I would :D Duplicate of http://www.freebsd.org/cgi/query-pr.cgi?pr=167805 I now see, sorry for that Bug is also reported in llvm.org bug-database http://llvm.org/bugs/show_bug.cgi?id=15206 And in MySQL manual http://docs.oracle.com/cd/E17952_01/refman-5.1-en/compilation-problems.html So probably the correct question is: How to fiddle the options to clang to compile this without failing or to change the macro so it works. Found a bug in the bug-database of MySQL as well but there the answer is simply 'use g++' and bugs will be closed referring to that statement. Kind regards, Spil. On Tue, Apr 23, 2013 at 11:40 AM, <ale@freebsd.org> wrote: > Synopsis: databases/mysql51-client: 5.1.68 Fails to build with clang > > State-Changed-From-To: open->feedback > State-Changed-By: ale > State-Changed-When: Tue Apr 23 09:40:35 UTC 2013 > State-Changed-Why: > Propose a patch, please :-) > > http://www.freebsd.org/cgi/query-pr.cgi?pr=176105 > State Changed From-To: feedback->closed Fixed, thanks! Author: ale Date: Mon May 6 08:52:05 2013 New Revision: 317485 URL: http://svnweb.freebsd.org/changeset/ports/317485 Log: Fix build with clang. PR: ports/176105 Submitted by: Spil <spil.oss@gmail.com> Added: head/databases/mysql50-server/files/patch-include_my_net.h (contents, props changed) head/databases/mysql51-server/files/patch-include_my_net.h (contents, props changed) Added: head/databases/mysql50-server/files/patch-include_my_net.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql50-server/files/patch-include_my_net.h Mon May 6 08:52:05 2013 (r317485) @@ -0,0 +1,11 @@ +--- include/my_net.h.orig 2013-05-06 10:44:34.000000000 +0200 ++++ include/my_net.h 2013-05-06 10:45:11.000000000 +0200 +@@ -110,7 +110,7 @@ + int buflen, int *h_errnop); + #define my_gethostbyname_r_free() + #else +-#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E)) ++#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E),NULL) + #define my_gethostbyname_r_free() + #endif /* !defined(HAVE_GETHOSTBYNAME_R) */ + Added: head/databases/mysql51-server/files/patch-include_my_net.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mysql51-server/files/patch-include_my_net.h Mon May 6 08:52:05 2013 (r317485) @@ -0,0 +1,11 @@ +--- include/my_net.h.orig 2013-05-06 10:44:34.000000000 +0200 ++++ include/my_net.h 2013-05-06 10:45:11.000000000 +0200 +@@ -110,7 +110,7 @@ + int buflen, int *h_errnop); + #define my_gethostbyname_r_free() + #else +-#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E)) ++#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E),NULL) + #define my_gethostbyname_r_free() + #endif /* !defined(HAVE_GETHOSTBYNAME_R) */ + _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" Hi Alex, Thought that this fixes it but it doesn't. It allows mysql51-client to build correctly but clang build for mysql51-server still fails on the accept call. With this modified patch-configure it does build OK. files/patch-configure --- configure.orig 2013-03-06 07:33:45.000000000 +0100 +++ configure 2013-05-06 11:51:13.000000000 +0200 @@ -24768,8 +24768,8 @@ # Some system specific hacks # -MAX_C_OPTIMIZE="-O3" -MAX_CXX_OPTIMIZE="-O3" +MAX_C_OPTIMIZE="" +MAX_CXX_OPTIMIZE="" case $SYSTEM_TYPE in *solaris2.7*) @@ -31108,7 +31108,7 @@ cat >>confdefs.h <<_ACEOF -#define SOCKET_SIZE_TYPE $mysql_cv_btype_last_arg_accept +#define SOCKET_SIZE_TYPE u_int _ACEOF CXXFLAGS="$ac_save_CXXFLAGS" |