Re: /usr/bin/m4: unrecognized option '--gnu'

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 01/23/2013 05:37 AM, Gupta, Ashish wrote:
> In Aix 6.1  we are getting following error:
> /usr/bin/m4: unrecognized option '--gnu'
> 
> FYI -     Following command  "m4 -version" returns "GNU m4 1.4"

That's old, and has known security holes.  You are advised to upgrade.

> 
>>From following links, We learned that m4 GNU m4 1.4.13 adds a "--gnu" option
> https://bugs.launchpad.net/ubuntu/+source/autoconf/+bug/459422
> http://blog.gmane.org/gmane.comp.gnu.make.bugs/month=20110901
> 
> So from where we can get m4 1.4.13 or higher so that we can fix the '--gnu' related error?

All m4 tarballs are available here:
ftp://ftp.gnu.org/pub/gnu/m4/
I'd recommend getting m4 1.4.16, unpacking the tarball, then running
./cnfigure && make as a regular user, then as root, running 'make
install'.  Much as you would do for any GNU software.

Whether or not there is a pre-built version of a newer m4 binary
floating around in the AIX community is something that you would have to
ask AIX folks about, since this list is only concerned with the source
code distribution.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 621 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJQ/+MEAAoJEKeha0olJ0Nq2EEH/27mclrBxJFRCBr12Emydobn
GelB2/m0WcBTI/A8lEBbrjlUWgPIn05yYaDHFlgH5XR8vt/KPZV5UFVGIfDJ6Mg2
PmBHbupY/jvuEspTZ9sNBQTqOWbCn/5V1DZurQTDl/QbizbGZ2d0zDzjOFYVTwPN
1Gxc/Z5wWjxdNL2X/hXCDEkwdnui0RSKJB4fihsKLdJexyneWaE1vDFPdAQEJjOP
xnbKzDleRhsbX7IIGALIiW73POixhehfDRcpWJBvfEOk9n8jypROGIm6gUw5W1Co
bs623ydvtT28OBMHE7wrxwJq6izwbfFLHyxl43lR8fTh2vygO2K8brUzE6cUfvU=
=4Ufs
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.