[syslog-ng] syslog-ng-2.0.5 on HP-UX 11.11

Balazs Scheidler bazsi at balabit.hu
Wed Aug 1 11:35:42 CEST 2007


On Mon, 2007-07-30 at 16:53 +0200, Uwe Martin wrote:
> Hello,
> 
> I try to compile the new version 2.0.5 on HP-UX 11.11. configure is running
> without erorrs. (./configure  --enable-dynamic-linking)
> 
> make stops with the following error :
> 
>         if gcc -DHAVE_CONFIG_H -I. -I. -I..
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -I/usr/local/include/eventlog   -DLIBNET_BIG_ENDIAN -D_GNU_SOURCE
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall -g -MT afinet.o
> -MD -MP -MF ".deps/afinet.Tpo" \
>           -c -o afinet.o `test -f 'afinet.c' || echo './'`afinet.c; \
>         then mv -f ".deps/afinet.Tpo" ".deps/afinet.Po"; \
>         else rm -f ".deps/afinet.Tpo"; exit 1; \
>         fi
> afinet.c: In function 'afinet_setup_socket':
> afinet.c:163: error: storage size of 'mreq' isn't known
> afinet.c:163: warning: unused variable 'mreq'
> *** Error exit code 1
> 
> How can I solve this problem ?

Hmm... struct ip_mreq is defined in <netinet/in.h> on HP-UX, and that
file is included by afinet.c

Can you check if adding _HPUX_SOURCE define to your CFLAGS fixes the
problem?

You can accomplish this by rerunning configure like this:

./configure CFLAGS=-D_HPUX_SOURCE

and then run make again.


-- 
Bazsi



More information about the syslog-ng mailing list