Page 1 of 1

Compiling on AIX 5.3

Posted: 2006-07-12T11:41:48-07:00
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?

Posted: 2006-07-12T12:26:57-07:00
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.