Opened 8 years ago

Closed 8 years ago

#49784 closed defect (fixed)

nmap fails to configure when nawk is installed and gawk is not

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: opendarwin.org@…
Priority: Normal Milestone:
Component: ports Version: 2.3.99
Keywords: Cc: danielluke (Daniel J. Luke)
Port: nmap

Description

nmap fails to configure when the nawk port is installed but the gawk port is not:

config.status: creating nmap_config.h
nawk: illegal statement
 input record number 1, file nmap_config.h.in
 source line number 42
config.status: error: could not create nmap_config.h

Similar errors are common in other ports. I guess many ports' build systems use awk syntax that is not compatible with nawk.

We've been fixing this in other ports by patching the configure script so that it does not consider nawk as an awk candidate. Alternately, a configure argument can be added:

ac_cv_prog_AWK=/usr/bin/awk

Attachments (1)

main.log (12.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dluke@… added
Owner: changed from macports-tickets@… to opendarwin.org@…

comment:2 in reply to:  description Changed 8 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

Alternately, a configure argument can be added:

ac_cv_prog_AWK=/usr/bin/awk

yep, that's similar to what we do for apr.

r142840

We can all continue to pine for trace mode.

Note: See TracTickets for help on using tickets.