Hi Ralf!
On AIX I do encounter this compilation error:
./libtool --mode=compile --quiet powerpc-ibm-aix7.1.0.0-gcc -c -I. -O2 -pipe pth_debug.c
In file included from pth_p.h.in:54,
from pth_debug.c:29:
pth.h:93:2: error: #error "FD_SETSIZE is larger than what GNU Pth can handle."
Makefile:154: recipe for target 'pth_debug.lo' failed
make: *** [pth_debug.lo] Error 1
Ok, AIX defines this one:
$ grep 'define *FD_SETSIZE' /usr/include/sys/*.h
/usr/include/sys/time.h:#define FD_SETSIZE 65534
Wondering what the relevant configure part was:
checking for default value of FD_SETSIZE... 1024
And in config.log:
configure:19255: checking for default value of FD_SETSIZE
configure:19286: powerpc-ibm-aix7.1.0.0-gcc -o conftest -O2 -pipe conftest.c >&5
conftest.c: In function 'main':
conftest.c:53: error: 'fd_set' undeclared (first use in this function)
conftest.c:53: error: (Each undeclared identifier is reported only once
conftest.c:53: error: for each function it appears in.)
conftest.c:56: warning: incompatible implicit declaration of built-in function 'exit'
configure:19286: $? = 1
configure: program exited with status 1
Ok, fixing these both problems (error and warning) with this diff:
--- pth-2.0.7/aclocal.m4
+++ pth-2.0.7/aclocal.m4
@@ -1185,7 +1185,9 @@
changequote(<<, >>)dnl
<<
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
After promoting this patch to configure, the relevant line reads:
checking for default value of FD_SETSIZE... 65534
and the compilation succeeds. Also, 'make test' tells this result now:
Pth: OK: powerpc-ibm-aix7.1.0.0 | mcsc/sc/mc | down | 2.0.7
Thank you! /haubi/