misc/163088: m4 installed on FreeBSD 10 (Current) does not build port nettle

George Dinolt gdinolt at pacbell.net
Tue Dec 6 00:40:08 UTC 2011


>Number:         163088
>Category:       misc
>Synopsis:       m4 installed on FreeBSD 10 (Current) does not build port nettle
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 06 00:40:06 UTC 2011
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list