Hi Simon,

> Do we want to support IRIX 6.5?  It doesn't appear to have strdup:
> 
> cc-1515 c89: ERROR File = client.c, Line = 45
>   A value of type "int" cannot be assigned to an entity of type "char *".
>     *output = strdup (p);
>             ^
> 1 error detected in the compilation of "client.c".

You haven't shown the command line of the compiler invocation. I bet this
automake "hide the important details" feature did that to you.

Of course IRIX 6.5 has 'strdup'. It's declared in <string.h> like this:

#if (_XOPEN4UX || _XOPEN5) && _NO_ANSIMODE
extern char *strdup(const char *);
#endif

Either you haven't included <string.h> in your compilation unit,
or you've passed the equivalent of '-ansi' to the compiler,
or there is some problem with gnulib's <string.h> override that we have
not understood so far.

Bruno


Reply via email to