[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#101579: Problem compiling teTeX on IA-64



Adrian Bunk writes:

> Bdale Garbee <bdale@gag.com> reported the following problem with
> the 20001218 beta of teTeX:

> <--  snip  ->

> The configure script in the texk/kpathsea directory seg faults when
> running the test program that checks whether putenv uses malloc.
> The problem is that the test program doesn't include enough headers,
> and implicit declarations on IA-64 almost always don't do what you
> want.

That's odd: the C standard took a lot of care to ensure that implicit
declarations would, in fact, continue to work.  So this sounds like
there is a possible conformance issue with the compiler and/or
standard library lurking here.

> The fix is easy, that test program needs to

>         #include <stdlib.h>
>         #include <string.h>

> so that there aren't any implicitly declared library functions.  The
> package builds cleanly once this change is made.

The catch is that this piece of code dates from the good old days of
pre-ANSI C systems where you might not have these headers at all. It
seems a reasonable change to make these days.  But perhaps there are
some people with "old" systems and an opinion on the matter?

-- 
Olaf Weber

Do not meddle in the affairs of sysadmins,
        for they are quick to anger and have no need for subtlety.



Reply to: