[tex-live] Bug#667392: Parts of TeX Live do not compile using gcc 4.7
Julian Gilbey
julian at d-and-j.net
Sun Apr 8 23:03:58 CEST 2012
On Fri, Apr 06, 2012 at 02:59:15PM -0700, Karl Berry wrote:
> Hi Julian,
>
> Perhaps the simplest solution is to rename the kpathsea
> version as kpse_getopt
>
> I don't think that's simple -- requires investigating/changing all uses
> of getopt(_long) everywhere in the source. It would make sense in the
> long term, but don't want to go there now, just for the sake of a
> trivial mismatch under a brand-new compiler version. What's simple is
> to omit the declaration (and definition) when compiling under C++.
> Whether even that will have no downside (when using any other
> compiler/version), I do not know.
In my ignorance, I wonder which library the getopt(_long) calls are
taken from - is it from the kpse library or the libc++ library? If
the prototypes are different, are the behaviours different as well?
If so, might it be wiser to rename the functions so that the behaviour
is consistent across platforms?
Julian
More information about the tex-live
mailing list