[Top][All Lists]

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

Re: Is IRIX 6.5 obsolete?

From: Simon Josefsson
Subject: Re: Is IRIX 6.5 obsolete?
Date: Tue, 22 May 2012 08:55:44 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.3 (gnu/linux)

Bruno Haible <address@hidden> writes:

> 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.

Alas I don't have direct access to this system, so I'm relying on build

> 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.

It was configured with:

CC=c89 CFLAGS="-D_POSIX_SOURCE -I/usr/local/include" CXX=CC 
CXXFLAGS="-D_POSIX_SOURCE -I/usr/local/include" 
LDFLAGS="-Wl,-rpath,/usr/local/libn32 -L/usr/local/libn32"

Is there some ./configure output that would help understand what the
problem is?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]