Opened 12 years ago
Last modified 12 years ago
#35628 closed defect
transfig's fig2dev does not build under Mountain Lion — at Initial Version
Reported by: | gnn@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | clang | Cc: | |
Port: | transfig |
Description
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:
fig2dev/devgenibmgl.c
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.
Note: See
TracTickets for help on using
tickets.