Bruno Haible <br...@clisp.org> 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 logs. > 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? /Simon