[syslog-ng] Antwort: Re: syslog-ng-2.0.5 on HP-UX 11.11

Balazs Scheidler bazsi at balabit.hu
Thu Aug 2 15:24:19 CEST 2007


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



More information about the syslog-ng mailing list