OSSP CVS Repository |
![]() |
|
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 1Ok, AIX defines this one:
$ grep 'define *FD_SETSIZE' /usr/include/sys/*.h /usr/include/sys/time.h:#define FD_SETSIZE 65534Wondering what the relevant configure part was:
checking for default value of FD_SETSIZE... 1024And 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 1Ok, 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... 65534and the compilation succeeds. Also, 'make test' tells this result now:
Pth: OK: powerpc-ibm-aix7.1.0.0 | mcsc/sc/mc | down | 2.0.7Thank you! /haubi/
|
Type: code Version: 2.0.7 Status: new Created: 2013-Nov-29 16:21 Severity: 2 Last Change: 2013-Nov-29 16:21 Priority: 3 Subsystem: pth Assigned To: rse Derived From: Creator: anonymous