From nobody@FreeBSD.org  Tue Dec  6 00:39:29 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8CDDE106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Dec 2011 00:39:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7CF338FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Dec 2011 00:39:29 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pB60dTbl031601
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 Dec 2011 00:39:29 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pB60dTV8031600;
	Tue, 6 Dec 2011 00:39:29 GMT
	(envelope-from nobody)
Message-Id: <201112060039.pB60dTV8031600@red.freebsd.org>
Date: Tue, 6 Dec 2011 00:39:29 GMT
From: George Dinolt <gdinolt@pacbell.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: m4 installed on FreeBSD 10 (Current) does not build port nettle
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163088
>Category:       bin
>Synopsis:       m4(1) installed on FreeBSD 10 (Current) does not build port nettle
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 06 00:40:06 UTC 2011
>Closed-Date:    Thu Dec 22 06:42:04 UTC 2011
>Last-Modified:  Thu Dec 22 06:42:04 UTC 2011
>Originator:     George Dinolt
>Release:        FreeBSD 10 (Current as of Dec. 5)
>Organization:
N/A
>Environment:
FreeBSD dinolt-fbsd10 10.0-CURRENT FreeBSD 10.0-CURRENT #4: Mon Dec  5 11:03:52 PST 2011     toor@dinolt-fbsd10:/usr/obj/usr/src/sys/DINOLT-AMD64  amd64
>Description:
In the process of compiling /usr/ports/security/nettle, m4 is required to translate  aes-decrypt-internal.asm into aes-decrypt-internal.s.  The port seems to be configured to use the system installed m4 

checking for m4... /usr/bin/m4

The translation fails with the error:

m4: syntax error in expr 2 ** 4
m4: syntax error in expr 2 ** 4

and the assembly of the output fails with error return:

aes-decrypt-internal.s: Assembler messages:
aes-decrypt-internal.s:102: Error: alignment not a power of 2
aes-decrypt-internal.s:140: Error: alignment not a power of 2
gmake[1]: *** [aes-decrypt-internal.o] Error 1

I finagled things to use the gm4 from the ports collection.  Nettle builds and installs without problems using that version of m4.  

I have not investigated to determine where the differences in the two implementations of m4 lie.  I suspect there may be issues with other ports that use m4.  
>How-To-Repeat:
Build the /usr/ports/security/nettle port on a version of FreeBSD Current (as of Dec. 5).  


>Fix:
For building nettle, reconfigure nettle to use gm4.  

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bapt 
State-Changed-When: Thu Dec 22 06:42:02 UTC 2011 
State-Changed-Why:  
Please upgrade your sources, m4 has been fixed in more recent version, 
it will also need an update of you ports tree because a fix has also 
been committed to the ports itself 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163088 
>Unformatted:
