This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi-3.0.10 -- AIX wc(1) incompatibility in Makefile


On 12/9/2011 11:37 AM, Lorinczy Zsigmond wrote:
Hello,

I think I have found a little incompatibility-problem in the libffi-3.0.10 Makefile, caused be the AIX's wc(1) program: it prefixes the returned number with spaces, so statements like:

if test "$n" = "0";

will fail. The following change seems to fix this:

sed 's/test "$$n" = "0"/test "$$n" -eq "0"/g' Makefile

ie. using numerical comparison instead of string-comparison.

Yours: Lőrinczy Zsigmond

This is fixed in the github hosted sources*. I received many reports of similar failures for a variety of non-Linux systems.


Köszönöm, Lőrinczy. **


* github.com:/atgreen/libffi.git ** this is about all I can manage in Hungarian :-)




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]