[syslog-ng] Re: Need help to compile syslog-ng for Solaris
Shamim
shamim_99 at yahoo.com
Thu Feb 15 11:20:54 CET 2007
Padmanabhan, Rajeesh (GE Healthcare <Rajeesh.Padmanabhan <at> ge.com> writes:
>
>
>
>
> Hi
> Bazsi,
> Need your
> help in compiling syslog-ng for Solaris. Im getting the following error when
i
> 'make'.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> "./messages.h", line 33: syntax error in
> macro parameters"./messages.h", line 34: syntax error in macro
> parameters"./messages.h", line 35: syntax error in macro
> parameters"./messages.h", line 37: syntax error in macro
> parameters"./messages.h", line 43: syntax error in macro parameterscc:
> acomp failed for messages.c*** Error code 2make: Fatal error: Command
> failed for target `messages.o'Current working directory
> /syslog-ng-2.0.1/src*** Error code 1make: Fatal error: Command failed
> for target `all-recursive'Current working directory /syslog-ng-2.0.1***
> Error code 1make: Fatal error: Command failed for target `all'
> cc -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 -g -c
> `test -f 'messages.c' || echo './'`messages.c
> *** Error code 2make: Fatal error:
> Command failed for target `messages.o'Current working directory
> /syslog-ng-2.0.1/src*** Error code 1make: Fatal error: Command failed
> for target `all-recursive'Current working directory /syslog-ng-2.0.1***
> Error code 1make: Fatal error: Command failed for target `all'
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
> I suspect problem with macro
> defenition in message.h.
> #define msg_fatal(desc, tag1,
> tags, ...)msg_event_send(msg_event_create(EVT_PRI_CRIT, desc, tag1, ##tags
> ))#define msg_error(desc, tag1, tags,
> ...)msg_event_send(msg_event_create(EVT_PRI_ERR, desc, tag1, ##tags
> ))#define msg_notice(desc, tag1,tags, ... )
> msg_event_send(msg_event_create(EVT_PRI_NOTICE, desc, tag1, ##tags ))
> Please
> help.
> Thanks,
> Rajeesh
>
>
>
> _______________________________________________
> syslog-ng maillist - syslog-ng <at> lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
>
Hi Rajeesh,
Were you manage to compile syslog-ng 2.0.2 on Solaris machine. Please help I'm
getting errors as belo:
********************************************************************************
gsockaddr.h:217: error: syntax error before "GSockAddr"
In file included from misc.c:24:
misc.h:45: error: syntax error before "GSockAddr"
misc.c:128: error: syntax error before "GSockAddr"
misc.c: In function `resolve_hostname':
misc.c:134: error: `saddr' undeclared (first use in this function)
misc.c:153: error: `usedns' undeclared (first use in this function)
misc.c:155: error: `use_dns_cache' undeclared (first use in this function)
misc.c:176: error: `usefqdn' undeclared (first use in this function)
misc.c:200: error: `result' undeclared (first use in this function)
misc.c: At top level:
gsockaddr.h:93: warning: 'g_sockaddr_inet_get_address' defined but not used
gsockaddr.h:107: warning: 'g_sockaddr_inet_set_address' defined but not used
gsockaddr.h:136: warning: 'g_sockaddr_inet_set_port' defined but not used
gsockaddr.h:164: warning: 'g_sockaddr_inet6_get_address' defined but not used
gsockaddr.h:178: warning: 'g_sockaddr_inet6_set_address' defined but not used
gsockaddr.h:207: warning: 'g_sockaddr_inet6_set_port' defined but not used
*** Error code 1
make: Fatal error: Command failed for target `misc.o'
Current working directory /export/shamim/syslog-ng-2.0.2/src
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src tests doc contrib solbuild'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/shamim/syslog-ng-2.0.2
*** Error code 1
make: Fatal error: Command failed for target `all'
#
*************************************************************
Thanks
More information about the syslog-ng
mailing list