2005.08.09 20:08 "[Tiff] Compile error on AIX 5.1", by Philip Watkinson

2005.08.18 21:37 "Re: [Tiff] Compile error on AIX 5.1", by Bob Friesenhahn

On Wed, Aug 17, 2005 at 03:06:57PM -0500, Bob Friesenhahn wrote:

Your proposed solution did not work. Getting same error message.

The most likely cause of the '"char*" and "int" is not allowed' error is that the header which includes the prototype for strchr() has not been included for some reason. Note that C defaults the function return type to 'int' if there is no prototype. I suggest seeing if there is a header which can be included in order to obtain the prototype.

Good point. Philip, what header file includes strchr() declaration on your AIX? How the strchr() prototype looks like?

I am seeing

  extern char     *strchr(const char *, int)

in string.h under AIX 4.3.2 and 5.1.

While I have not compiled libtiff for myself under AIX, I have not experienced such problems building GraphicsMagick under AIX using IBM's xlc compiler. The only problems noted under AIX has been that its compiler does not accept // for comments.

What compiler is being used?

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/