pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51793: security/gnutls FreeBSD 11 error: typedef redefinition ('union max_align_t' vs 'long double')



>Number:         51793
>Category:       pkg
>Synopsis:       security/gnutls FreeBSD 11 error: typedef redefinition ('union max_align_t' vs 'long double')
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 07 16:50:00 +0000 2017
>Originator:     David Shao
>Release:        current pkgsrc
>Organization:
>Environment:
FreeBSD xxxxxx.xxx 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016     root%amd64-builder.daemonology.net@localhost:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Building security/gnutls fails on FreeBSD 11.0 RELEASE amd64 with:

  CXX      ex-cxx.o
In file included from ex-cxx.cpp:2:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:215:
In file included from /usr/include/c++/v1/iosfwd:90:
In file included from ../../src/gl/wchar.h:73:
../../src/gl/stddef.h:104:3: error: typedef redefinition with different types ('union max_align_t' vs 'long double')
} max_align_t;
  ^
/usr/include/c++/v1/stddef.h:57:21: note: previous definition is here
typedef long double max_align_t;

>How-To-Repeat:

>Fix:
The following fix is adapted from FreeBSD ports:

diff -Nur security/gnutls/Makefile security/gnutls.new/Makefile
--- security/gnutls/Makefile	2016-09-20 01:40:15.000000000 -0700
+++ security/gnutls.new/Makefile	2016-12-06 06:57:18.000000000 -0800
@@ -57,6 +57,9 @@
 # Assembler support is broken for SunOS in 3.2.9.
 CONFIGURE_ARGS.SunOS+=	--disable-hardware-acceleration
 
+# From FreeBSD ports
+CONFIGURE_ARGS.FreeBSD+=	ac_cv_type_max_align_t=yes
+
 INSTALLATION_DIRS=	${DOCDIR} ${EGDIR} include/gnutls
 
 post-install:



Home | Main Index | Thread Index | Old Index