Compiling on AIX 5.3

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Posts: 50
Joined: 2005-09-28T07:47:13-07:00

Compiling on AIX 5.3

Post by elisegev »

I am running the configure utility for ImageMagick on AIX 5.3. I get the following errors:

configure:5265: gcc -o conftest -g -O2 -Wall conftest.c -lpthreads >&5
In file included from conftest.c:10:
/usr/include/pthread.h:582: error: parse error before '*' token

The line is: pthread_rwlock_destroy __((pthread_rwlock_t *));

It seems that pthread_rwlock_t is not defined. There are other lines where this error occurs too.

cc1: error: unrecognized option `-fthread-safe'

configure:5221: checking whether pthreads work with -mt
configure:5265: gcc -o conftest -g -O2 -Wall -mt conftest.c >&5
cc1: error: invalid option `t'

configure:5740: checking for _FILE_OFFSET_BITS value needed for large files
configure:5771: gcc -c -g -O2 -Wall conftest.c >&5
conftest.c:16: warning: left shift count >= width of type
conftest.c:16: warning: left shift count >= width of type
conftest.c:18: error: size of array `off_t_is_large' is negative

There are many more errors. Should I ignore them and continue?
User avatar
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The conftest.c source is permitted to fail to compile. That is how the configure script determine whether something works on a particular architecture or not. You should be able to safely continue and let the configure script complete.
Post Reply