Compiling CUPS on AIX 5.3 (ppc)

James Mackay james.mackay at innoviafilms.com
Mon Apr 19 03:00:59 PDT 2010


Hi,

I am having trouble getting CUPS installed on AIX 5.3. I have not been able to find any binaries so have been trying to build it myself following the instructions in INSTALL.txt.

I have not been able to find a similar post in the forum so please be gentle on me if this has already been posted before.

It is complaining about pthread.h

When I do the ./configure I get a warning as such:

configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h:     check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take precedence

This then occurs as an error when I try the actual compile:

Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_LARGE_FILES
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_LARGE_FILES
Using LDFLAGS=-L../cups -L../filter   -Wall -Wno-format-y2k -Os -g
Using LIBS=-lcups_s  -lm
Making all in cups...
Compiling adminutil.c...
In file included from globals.h:31,
                 from adminutil.c:37:
/usr/include/pthread.h:666: error: parse error before '*' token
/usr/include/pthread.h:669: error: parse error before '*' token
/usr/include/pthread.h:672: error: parse error before '*' token
/usr/include/pthread.h:675: error: parse error before '*' token
/usr/include/pthread.h:678: error: parse error before '*' token
/usr/include/pthread.h:686: error: parse error before '*' token
/usr/include/pthread.h:689: error: parse error before '*' token
/usr/include/pthread.h:692: error: parse error before '*' token
/usr/include/pthread.h:695: error: parse error before '*' token
/usr/include/pthread.h:703: error: parse error before '*' token
/usr/include/pthread.h:707: error: parse error before '*' token
/usr/include/pthread.h:710: error: parse error before '*' token
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.

I have tried the latest source (1.4.3) and also an older version (1.3.11) and they both exhibit the same problem.

I am using gcc 3.3.2

If anybody has any ideas it would be much appreciated.

Thanks

James




More information about the cups mailing list