On Wed, 2007-08-01 at 12:24 +0200, Uwe Martin wrote:
I try it with : ./configure --enable-dynamic-linking CFLAGS=-D_HPUX_SOURCE but the result is the same. The same error occure again.
I've found this problem, gcc defines _XOPEN_SOURCE unconditionally, so you need to use: CFLAGS="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE" And additionally, there's a bug in one of the system headers, more specifically in <sys/socket.h> on my HP-UX 11.11 system. I copied the system header to the local gcc directory $prefix/lib/gcc/<gcc-version/include/sys/socket.h and applied this patch: bash-3.00# diff /usr/include/sys/socket.h /var/etalon/zbs2/build/hpux/hpux-11_syslog-ng/usr/local/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.0/include/sys/socket.h 438a439
#ifndef _APP32_64BIT_OFF_T 442a444 #endif
Too bad the diff command does not know unified diffs. So it is impossible to apply by hand, but assuming you have the same header file, you can apply this using 'patch'. -- Bazsi