[syslog-ng] afinet.c:: Compilation help needed on HP-UX 11i

Shamim shamim_99 at yahoo.com
Tue Jan 30 08:41:07 CET 2007


Hi,
   
  output of the command is as below:
   
  # find /usr/include -name \*.h | xargs grep "struct ip_mreq"
/usr/include/netinet/in.h:struct ip_mreq {
#

  and the value of PATH Variable:
   
  # echo $PATH
/usr/include:/usr/include/netinet:/opt/soe/local:/usr/local/doc/libgcc:/usr/local/bin:/usr/local/lib:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/kwdb/bin:/opt/graphics:/opt/soe/bos/bin:/opt/tng/services/bin:/opt/tng/services/tools:/opt/tng/agents/bin
#

  It is HP-UX-11.23 PA RISC2 which support IP Multicast.
   
  Thanks
  

Balazs Scheidler <bazsi at balabit.hu> wrote:
  On Mon, 2007-01-29 at 07:42 +0000, Shamim wrote:
> afunix.c: In function 'afunix_sd_init':
> afunix.c:73: warning: comparison is always true due to limited range
> of data type
> 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 -D_GNU_SOURCE -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:156: error: storage size of 'mreq' isn't known
> afinet.c:156: warning: unused variable 'mreq'
> *** Error exit code 1
> Stop.
> *** Error exit code 1
> Stop.
> *** Error exit code 1
> Stop.

struct ip_mreq is required for enabling multicast on a socket. Does
HP-UX have IP multicast support? Maybe it's only a missing header?

Can you check the output of:

find /usr/include -name \*.h | xargs grep "struct ip_mreq"

(or wherever system headers are located)

-- 
Bazsi



 		
---------------------------------
 What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070130/2aaf8490/attachment.htm


More information about the syslog-ng mailing list