[syslog-ng] Problem still persists: afinet.c:: Compilation help
needed on HP-UX 11i
Shamim
shamim_99 at yahoo.com
Thu Mar 1 10:40:15 CET 2007
Hi Bazsi,
I downloaded a newer snapshot as per your suggestion from http://www.balabit.com/downloads/syslog-ng/2.0/src-snapshot/
and tried to compile it. It gives me the same problem
*******************************************************************************************
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/opt/soe/local/syslog-ng-2.0.2/eventlog/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:157: error: storage size of 'mreq' isn't known
afinet.c:157: warning: unused variable 'mreq'
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
# pwd
/shamim/syslog-ng-2.0.2+20070201
#
***********************************************************************************************************
Then I downloaded even more newer spanshot. Still the same problem
###########################################################
# cd syslog-ng-2.0.2+20070228
# ./configure --enable-dynamic-linking --prefix=/opt/soe/local/syslog-ng-2.0.2
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ANSI C... none needed
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking how to enable static linking for certain libraries... HP-UX
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dmalloc.h usability... no
checking dmalloc.h presence... no
checking for dmalloc.h... no
checking for strings.h... (cached) yes
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/strlog.h usability... yes
checking sys/strlog.h presence... yes
checking for sys/strlog.h... yes
checking door.h usability... no
checking door.h presence... no
checking for door.h... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_gmtoff... no
checking for I_CONSLOG... no
checking for O_LARGEFILE... yes
checking for struct sockaddr_storage... yes
checking for door_create in -ldoor... no
checking for socket in -lsocket... no
checking for nanosleep in -lrt... yes
checking for gethostbyname in -lnsl... yes
checking for regexec in -lregex... no
checking for res_init in -lresolv... no
checking for strdup... yes
checking for strtol... yes
checking for inet_aton... yes
checking for inet_ntoa... yes
checking for getopt_long... no
checking for getaddrinfo... yes
checking for getutent... yes
checking whether to enable Sun STREAMS support... no
checking whether to enable Sun door support... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB_CFLAGS... -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
checking for GLIB_LIBS... -L/usr/local/lib -lglib-2.0 -lintl -liconv
checking for EVTLOG_CFLAGS... -I/opt/soe/local/syslog-ng-2.0.2/eventlog/include/eventlog
checking for EVTLOG_LIBS... -L/opt/soe/local/syslog-ng-2.0.2/eventlog/lib -levtlog
checking for LIBNET... yes
checking for static GLib libraries... no
configure: creating ./config.status
config.status: creating dist.conf
config.status: creating Makefile
config.status: creating syslog-ng.spec.bb
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating doc/docvars.xml
config.status: creating contrib/Makefile
config.status: creating tests/Makefile
config.status: creating solbuild/Makefile
config.status: creating tests/unit/Makefile
config.status: creating tests/functional/Makefile
config.status: creating config.h
config.status: executing depfiles commands
#
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-2.0.2/eventlog/include/eventlog -DLIBNET_BIG_ENDIAN -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:157: error: storage size of 'mreq' isn't known
afinet.c:157: warning: unused variable 'mreq'
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
#
##############################################################
Pease advise.
Thanks
Shamimuddin
CSC Noida
Balazs Scheidler <bazsi at balabit.hu> wrote:
On Mon, 2007-02-26 at 15:50 +0000, Shamim wrote:
> Hi Everybody,
>
> ***************************************************************************************
> My System H/w is HP-UX 11.11
> Model: 9000/785/B2000
> OS mode: 64 bit
> *************************************************************************************
> I'm trying to compile syslog-ng-2.0.2.on HP-UX machine and it give
> beloe error.
>
> afinet.c: In function 'afinet_setup_socket':
> afinet.c:157: error: storage size of 'mreq' isn't known
> afinet.c:157: warning: unused variable 'mreq'
> *** Error exit code 1
> Stop.
> *** Error exit code 1
> Stop.
> *** Error exit code 1
> Stop.
> #
>
> However when I comment this function and it get compiled, but it
> didn't send message to central server.
>
> The out put of includea header file is :
> ********************************************************************************
> # find /usr/include -name \*.h | xargs grep "struct ip_mreq"
> /usr/include/netinet/in.h:struct ip_mreq {
> #
> **********************************************************************************
>
>
> IF anybody has faced same problem , please share with me,
> Thanks in advance
I fixed this problem after 2.0.2 was released. Try a newer snapshot.
--
Bazsi
---------------------------------
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. Do it now...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070301/32cb5ad4/attachment.html
More information about the syslog-ng
mailing list