From mandree@FreeBSD.org  Mon Nov 25 09:11:37 2013
Return-Path: <mandree@FreeBSD.org>
Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id DAEC689D
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Nov 2013 09:11:36 +0000 (UTC)
Received: from mandree by apollo.emma.line.org with local (Exim 4.80.1 (FreeBSD))
	(envelope-from <mandree@FreeBSD.org>)
	id 1VksCd-0008zG-5s
	for FreeBSD-gnats-submit@freebsd.org; Mon, 25 Nov 2013 10:11:35 +0100
Message-Id: <E1VksCd-0008zG-5s@apollo.emma.line.org>
Date: Mon, 25 Nov 2013 10:11:35 +0100
From: Matthias Andree <mandree@FreeBSD.org>
Reply-To: Matthias Andree <mandree@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: security/gnutls3: does not build 
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         184279
>Category:       ports
>Synopsis:       security/gnutls3: does not build on a system where autogen is installed
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    wg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 25 09:20:00 UTC 2013
>Closed-Date:    Mon Nov 25 23:59:48 UTC 2013
>Last-Modified:  Tue Nov 26 00:00:00 UTC 2013
>Originator:     Matthias Andree
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD apollo.emma.line.org 9.2-RELEASE FreeBSD 9.2-RELEASE #4: Thu Oct 17 06:54:18 CEST 2013 root@apollo.emma.line.org:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
Trying to compile on 9.2-amd64 fails like this:

$ make -C /usr/ports/security/gnutls3 pretty-print-config
+CXX +DOCS +EXAMPLES +LIBTASN1 

$ make
...
gnome-libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl -I./../lib/includes -I./../lib/includes -I./../libdane/includes -I./../extra/includes -I/usr/local/include -I/usr/local/include -fPIC -D_THREAD_SAFE -O2 -pipe -march=athlon64 -fstack-protector -fno-strict-aliasing -MT libcmd_srp_la-srptool-args.lo -MD -MP -MF .deps/libcmd_srp_la-srptool-args.Tpo -c srptool-args.c  -fPIC -DPIC -o .libs/libcmd_srp_la-srptool-args.o
In file included from ./../gl/stdlib.h:96,
                 from srptool-args.c:45:
./../gl/unistd.h:121:3: error: #error "Please include config.h first."
In file included from ./../gl/stdlib.h:96,
                 from srptool-args.c:45:
./../gl/unistd.h:606: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from srptool-args.c:45:
./../gl/stdlib.h:566: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
gmake[4]: *** [libcmd_srp_la-srptool-args.lo] Error 1
gmake[4]: Leaving directory `/var/tmp/usr/ports/security/gnutls3/work/gnutls-3.1.17/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/var/tmp/usr/ports/security/gnutls3/work/gnutls-3.1.17/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/usr/ports/security/gnutls3/work/gnutls-3.1.17/src'
gmake[1]: *** [all-recursive] Fehler 1
gmake[1]: Leaving directory `/var/tmp/usr/ports/security/gnutls3/work/gnutls-3.1.17'
gmake: *** [all] Fehler 2
*** [do-build] Error code 1

Stop in /usr/ports/security/gnutls3.
*** [build] Error code 1

Stop in /usr/ports/security/gnutls3.

	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wg 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Nov 25 09:20:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184279 

From: William Grzybowski <william88@gmail.com>
To: bug-followup@FreeBSD.org, mandree@FreeBSD.org
Cc:  
Subject: Re: ports/184279: security/gnutls3: does not build
Date: Mon, 25 Nov 2013 08:34:16 -0200

 Hi,
 
 It builds just fine in poudriere 9.2 amd64.
 Can you help me identify or reproduce the issue?
 
 Thanks
 
 -- 
 William Grzybowski
 ------------------------------------------
 Curitiba/PR - Brasil

From: Matthias Andree <matthias.andree@gmx.de>
To: bug-followup@FreeBSD.org, mandree@FreeBSD.org
Cc: William Grzybowski <wg@freebsd.org>
Subject: Re: ports/184279: security/gnutls3: does not build
Date: Mon, 25 Nov 2013 23:31:09 +0100

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --dxk89rSqvdLMhQxs99bxE3nkmoLDfifV6
 Content-Type: multipart/mixed;
  boundary="------------040709020300070209040209"
 
 This is a multi-part message in MIME format.
 --------------040709020300070209040209
 Content-Type: text/plain; charset=ISO-8859-15
 Content-Transfer-Encoding: quoted-printable
 
 William,
 
 it took a bit of debugging (for which I didn't have time earlier), and
 I figured it out.  Apparently the auto-detection of autogen breaks the
 build.  You don't list autogen as a dependency, so Tinderbox/Poudriere
 would not pick it up.
 
 The way to debug this was: I diffed my Poudriere log against a "make
 configure", and had a few important differences (see diff below), and
 the first attempt at narrowing down already hit.   A build against a
 system libopts (stems from autogen-5.12_1 on my system) does not work.
 
 Find a patch attached that fixes the build for me.
 
 Best regards
 Matthias
 
 
 diffs below
 (- is poudriere for a 9.1amd64 jail, + is build in live 9.2 system).
 
 --------------------------------------------------------------
 > @@ -187,9 +17,9 @@
 >  =3D=3D=3D>   gnutls3-3.1.17 depends on shared library: libiconv.so.3 -=
  found
 >  =3D=3D=3D>  Configuring for gnutls3-3.1.17
 >  configure: loading site script /usr/ports/Templates/config.site
 > -checking build system type... amd64-portbld-freebsd9.1
 > -checking host system type... amd64-portbld-freebsd9.1
 > -checking for a BSD-compatible install... /usr/bin/install -c -o root -=
 g wheel
 > +checking build system type... amd64-portbld-freebsd9.2
 > +checking host system type... amd64-portbld-freebsd9.2
 > +checking for a BSD-compatible install... /usr/bin/install -c=20
 >  checking whether build environment is sane... yes
 >  checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
 >  checking for gawk... (cached) /usr/bin/awk
 > @@ -240,11 +70,7 @@
 >  checking whether we are using the GNU C++ compiler... yes
 >  checking whether c++ accepts -g... yes
 >  checking dependency style of c++... gcc3
 > -checking for autogen... /bin/true
 > -configure: WARNING:
 > -***
 > -*** autogen not found. Will not link against libopts.
 > -***=20
 > +checking for autogen... autogen
 >  checking for inline... inline
 >  checking for ANSI C header files... (cached) yes
 >  checking for ld used by GCC... /usr/bin/ld
 > @@ -318,9 +144,9 @@
 >  checking for sys/ioctl.h... (cached) yes
 >  checking for library containing setsockopt... none needed
 >  checking whether to build OpenSSL compatibility layer... yes
 > -checking for gtkdoc-check... no
 > -checking for gtkdoc-rebase... no
 > -checking for gtkdoc-mkpdf... no
 > +checking for gtkdoc-check... /usr/local/bin/gtkdoc-check
 > +checking for gtkdoc-rebase... /usr/local/bin/gtkdoc-rebase
 > +checking for gtkdoc-mkpdf... /usr/local/bin/gtkdoc-mkpdf
 >  checking whether to build gtk-doc documentation... no
 >  checking whether NLS is requested... no
 >  checking for msgfmt... /usr/local/bin/msgfmt
 > @@ -931,8 +757,8 @@
 >  checking whether unlink is declared without a macro... (cached) yes
 >  checking whether unlinkat is declared without a macro... (cached) yes
 >  checking whether usleep is declared without a macro... (cached) yes
 > -checking for valgrind... no
 > -checking whether self tests are run under valgrind... no
 > +checking for valgrind... valgrind
 > +checking whether self tests are run under valgrind... yes
 >  checking for ptrdiff_t... (cached) yes
 >  checking for vasprintf... (cached) yes
 >  checking for ptrdiff_t... (cached) yes
 > @@ -1028,9 +854,9 @@
 >  checking whether ioctl is declared without a macro... yes
 >  checking for unsetenv... (cached) yes
 >  checking for unsetenv() return type... (cached) int
 > -checking whether unsetenv obeys POSIX... no
 > -checking for valgrind... no
 > -checking whether self tests are run under valgrind... no
 > +checking whether unsetenv obeys POSIX... yes
 > +checking for valgrind... (cached) valgrind
 > +checking whether self tests are run under valgrind... yes
 >  checking whether ln -s works... yes
 >  checking how to print strings... printf
 >  checking for a sed that does not truncate output... (cached) /usr/bin/=
 sed
 > @@ -1042,8 +868,8 @@
 >  checking the maximum length of command line arguments... (cached) 2621=
 44
 >  checking whether the shell understands some XSI constructs... yes
 >  checking whether the shell understands "+=3D"... no
 > -checking how to convert amd64-portbld-freebsd9.1 file names to amd64-p=
 ortbld-freebsd9.1 format... func_convert_file_noop
 > -checking how to convert amd64-portbld-freebsd9.1 file names to toolcha=
 in format... func_convert_file_noop
 > +checking how to convert amd64-portbld-freebsd9.2 file names to amd64-p=
 ortbld-freebsd9.2 format... func_convert_file_noop
 > +checking how to convert amd64-portbld-freebsd9.2 file names to toolcha=
 in format... func_convert_file_noop
 >  checking for /usr/bin/ld option to reload object files... -r
 >  checking for objdump... objdump
 >  checking how to recognize dependent libraries... pass_all
 > @@ -1066,7 +892,7 @@
 >  checking if cc -std=3Dgnu99 supports -c -o file.o... (cached) yes
 >  checking whether the cc -std=3Dgnu99 linker (/usr/bin/ld) supports sha=
 red libraries... yes
 >  checking whether -lc should be explicitly linked in... no
 > -checking dynamic linker characteristics... freebsd9.1 ld.so
 > +checking dynamic linker characteristics... freebsd9.2 ld.so
 >  checking how to hardcode library paths into programs... immediate
 >  checking whether stripping libraries is possible... yes
 >  checking if libtool supports shared libraries... yes
 > @@ -1082,7 +908,7 @@
 >  checking if c++ supports -c -o file.o... yes
 >  checking if c++ supports -c -o file.o... (cached) yes
 >  checking whether the c++ linker (/usr/bin/ld) supports shared librarie=
 s... yes
 > -checking dynamic linker characteristics... freebsd9.1 ld.so
 > +checking dynamic linker characteristics... freebsd9.2 ld.so
 >  checking how to hardcode library paths into programs... immediate
 >  checking for fork... (cached) yes
 >  checking for getrusage... (cached) yes
 > @@ -1174,19 +1000,8 @@
 >  checking for fstat... yes
 >  checking for chmod... yes
 >  checking for a sed that does not truncate output... (cached) /usr/bin/=
 sed
 > -configure: Using supplied libopts tearoff
 > -checking whether a reg expr header is specified... no
 > -checking whether with-libregex was specified... no
 > -checking whether with-libregex-cflags was specified... no
 > -checking whether with-libregex-libs was specified... no
 > -checking whether libregex functions properly... yes
 > -checking whether pathfind(3) works... no
 > -checking whether /dev/zero is readable device... crw-rw-rw- 1 root whe=
 el 0, 31 Nov 25 05:46 /dev/zero
 > -checking whether we have a functional realpath(3C)... yes
 > -checking whether strftime() works... yes
 > -checking whether fopen accepts "b" mode... yes
 > -checking whether fopen accepts "t" mode... yes
 > -checking whether not wanting optional option args... yes
 > +checking whether autoopts-config can be found... checking whether auto=
 opts-config is specified... autoopts-config
 > + -Wl,-R/usr/local/lib -L/usr/local/lib -lopts
 >  checking for ssize_t... (cached) yes
 >  checking size of unsigned long int... 8
 >  checking size of unsigned int... 4
 > @@ -1231,7 +1046,6 @@
 >  checking for LIBIDN... yes
 >  checking that generated files are newer than configure... done
 >  configure: creating ./config.status
 > -config.status: creating src/libopts/Makefile
 >  config.status: creating guile/pre-inst-guile
 >  config.status: creating Makefile
 >  config.status: creating doc/Makefile
 > @@ -1303,11 +1117,11 @@
 >  configure: summary of build options:
 > =20
 >    version:              3.1.17 shared 48:3:20
 > -  Host/Target system:   amd64-portbld-freebsd9.1
 > -  Build system:         amd64-portbld-freebsd9.1
 > -  Install prefix:       /prefix/gnutls3-3.1.17
 > +  Host/Target system:   amd64-portbld-freebsd9.2
 > +  Build system:         amd64-portbld-freebsd9.2
 > +  Install prefix:       /usr/local
 >    Compiler:             cc -std=3Dgnu99
 > -  CFlags:               -O2 -pipe -fno-strict-aliasing
 > +  CFlags:               -O2 -pipe -march=3Dathlon64 -fstack-protector =
 -fno-strict-aliasing
 >    Library types:        Shared=3Dyes, Static=3Dyes
 > =20
 >  configure: External hardware support:
 > @@ -1335,7 +1149,7 @@
 >  configure: Optional applications:
 > =20
 >    crywrap app:          yes
 > -  local libopts:        yes
 > +  local libopts:        no
 >    local libtasn1:       no
 > =20
 >  configure: Optional libraries:
 > @@ -1359,4321 +1173,3 @@
 >  *** Use the command: unbound-anchor -a "/etc/unbound/root.key"
 >  *** to generate or update it.
 >  ***=20
 --------------------------------------------------------------
 
 --------------040709020300070209040209
 Content-Type: text/plain; charset=UTF-8;
  name="gnutls3-build.fix"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
  filename="gnutls3-build.fix"
 
 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 diff --git a/head/security/gnutls3/Makefile b/head/security/gnutls3/Makef=
 ile
 --- a/head/security/gnutls3/Makefile	(revision 334897)
 +++ b/head/security/gnutls3/Makefile	(working copy)
 @@ -17,7 +17,7 @@
  		libidn.so:${PORTSDIR}/dns/libidn \
  		libtspi.so:${PORTSDIR}/security/trousers
 =20
 -GNUTLS_SUFFIX=3D3
 +GNUTLS_SUFFIX=3D	3
 =20
  USES=3D		gmake iconv pkgconfig
  USE_AUTOTOOLS=3D	libtool
 @@ -34,7 +34,8 @@
  			--disable-guile \
  			--disable-nls \
  			--disable-silent-rules \
 -			--disable-hardware-acceleration
 +			--disable-hardware-acceleration \
 +			--enable-local-libopts
 =20
  DOCSDIR=3D	${PREFIX}/share/doc/${PORTNAME}${GNUTLS_SUFFIX}
  EXAMPLESDIR=3D	${PREFIX}/share/examples/${PORTNAME}${GNUTLS_SUFFIX}
 
 --------------040709020300070209040209--
 
 --dxk89rSqvdLMhQxs99bxE3nkmoLDfifV6
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEARECAAYFAlKTz60ACgkQvmGDOQUufZXaJwCePYHR+vDJ6ByOw0NoMVdRm7R7
 TewAn3EwbqS7JlU782SIUpTxXZrwBSII
 =uYQF
 -----END PGP SIGNATURE-----
 
 --dxk89rSqvdLMhQxs99bxE3nkmoLDfifV6--
State-Changed-From-To: open->closed 
State-Changed-By: wg 
State-Changed-When: Mon Nov 25 23:59:47 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184279 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184279: commit references a PR
Date: Mon, 25 Nov 2013 23:59:11 +0000 (UTC)

 Author: wg
 Date: Mon Nov 25 23:59:04 2013
 New Revision: 334906
 URL: http://svnweb.freebsd.org/changeset/ports/334906
 
 Log:
   security/gnutls3: fix build without autogen
   
   PR:		ports/184279
   Submitted by:	mandree
 
 Modified:
   head/security/gnutls3/Makefile
 
 Modified: head/security/gnutls3/Makefile
 ==============================================================================
 --- head/security/gnutls3/Makefile	Mon Nov 25 22:49:29 2013	(r334905)
 +++ head/security/gnutls3/Makefile	Mon Nov 25 23:59:04 2013	(r334906)
 @@ -17,7 +17,7 @@ LIB_DEPENDS=	libgpg-error.so:${PORTSDIR}
  		libidn.so:${PORTSDIR}/dns/libidn \
  		libtspi.so:${PORTSDIR}/security/trousers
  
 -GNUTLS_SUFFIX=3
 +GNUTLS_SUFFIX=	3
  
  USES=		gmake iconv pkgconfig
  USE_AUTOTOOLS=	libtool
 @@ -34,7 +34,8 @@ CONFIGURE_ARGS=	--program-suffix=${GNUTL
  			--disable-guile \
  			--disable-nls \
  			--disable-silent-rules \
 -			--disable-hardware-acceleration
 +			--disable-hardware-acceleration \
 +			--enable-local-libopts
  
  DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${GNUTLS_SUFFIX}
  EXAMPLESDIR=	${PREFIX}/share/examples/${PORTNAME}${GNUTLS_SUFFIX}
 _______________________________________________
 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"
 
>Unformatted:
