Ticket #35628 (closed defect: duplicate)
transfig's fig2dev does not build under Mountain Lion
|Reported by:||gnn@…||Owned by:||macports-tickets@…|
Description (last modified by ryandesign@…) (diff)
The code that is used to build transfig and fig2dev is pretty old and the latest compilers under Mountain Lion misinterpret a function that ought to be labeled void as being int. The code is over 20 years old so this is not a complete surprise. Transfig itself installs but fig2dev fails, silently. Changing the signature of set_width in the file:
to be this:
static void set_width(int w)
Allows the program to compile and run.
Sorry, I don't have an easy way to generate a real patch, but this is a one liner.