[syslog-ng] syslog-ng and dependency libraries for sending log messages for remote log server with TLS support

Girish Kumar girish.kumar at al-enterprise.com
Fri Feb 5 06:53:01 CET 2016


Configure asked only for event log  library. But did not ask for openssl or glib.
So I have complied event log  library and set the library.  Please let me know why the configure did not ask for openssl or glib library

Syslog version: syslog-ng-3.6.4
Os : linux
Arch : armv7

Later compilation failed with following error

/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/syslog-ng-3.6.4/lib/stats/stats-counter.h: In function 'stats_counter_dec':
/usr/include/glib-2.0/glib/gmacros.h:162:53: warning: typedef '_GStaticAssertCompileTimeAssertion_6' locally defined but not used [-Wunused-local-typedefs]
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                                     ^
/usr/include/glib-2.0/glib/gmacros.h:159:47: note: in definition of macro 'G_PASTE_ARGS'
#define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/usr/include/glib-2.0/glib/gmacros.h:162:44: note: in expansion of macro 'G_PASTE'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
                                            ^
/usr/include/glib-2.0/glib/gatomic.h:111:5: note: in expansion of macro 'G_STATIC_ASSERT'
     G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint));                     \
     ^
/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/syslog-ng-3.6.4/lib/stats/stats-counter.h:53:5: note: in expansion of macro 'g_atomic_int_add'
     g_atomic_int_add(&counter->value, -1);
     ^
  CC     lib/lib_libsyslog_ng_la-mainloop-call.lo
/tmp/ccrnicrJ.s: Assembler messages:
/tmp/ccrnicrJ.s:260: Error: invalid operands (.text and *UND* sections) for `-'

/tmp/ccrnicrJ.s:269: Error: invalid operands (.text and *UND* sections) for `-'
make[4]: *** [lib/lib_libsyslog_ng_la-mainloop-call.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/armv7/syslog-ng'
make[2]: Entering directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/armv7/syslog-ng'
make --no-print-directory install-recursive
  CC     lib/lib_libsyslog_ng_la-mainloop-call.lo
/tmp/ccgfQ6Q9.s: Assembler messages:
/tmp/ccgfQ6Q9.s:260: Error: invalid operands (.text and *UND* sections) for `-'
/tmp/ccgfQ6Q9.s:269: Error: invalid operands (.text and *UND* sections) for `-'
make[4]: *** [lib/lib_libsyslog_ng_la-mainloop-call.lo] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/armv7/syslog-ng'
make[1]: *** [/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/armv7/sbin/syslog-ngd] Error 2
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps'
make: *** [tps-build] Error 2

Regards,
Girish

From: syslog-ng-bounces at lists.balabit.hu<mailto:syslog-ng-bounces at lists.balabit.hu> [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Balazs Scheidler
Sent: Friday, February 05, 2016 12:38 AM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] syslog-ng and dependency libraries for sending log messages for remote log server with TLS support


What was the configure output?
On Feb 4, 2016 12:22 PM, "Girish Kumar" <girish.kumar at al-enterprise.com<mailto:girish.kumar at al-enterprise.com>> wrote:
Thank you very much for the information.

I want to enable openssl  and glib. I tried following in configure but  configure did not ask/fail for following libraries. Because I currently I have not complied openssl and glib
/configure --prefix=/ --host=$(CCPREFIX)  --enable-ssl --enable-glib
Could you please guide me on this.


Regards,
Girish
From: syslog-ng-bounces at lists.balabit.hu<mailto:syslog-ng-bounces at lists.balabit.hu> [mailto:syslog-ng-bounces at lists.balabit.hu<mailto:syslog-ng-bounces at lists.balabit.hu>] On Behalf Of Balazs Scheidler
Sent: Thursday, February 04, 2016 1:47 PM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] syslog-ng and dependency libraries for sending log messages for remote log server with TLS support

Well, it certainly depends on the features that you want enabled on your platform. The syslog-ng configure script allows tailor-made configurations at a pretty granular level. But I guess it would make sense to compile syslog-ng for your use-case.
syslog-ng has not - yet - been optimized too much for the embedded use-case, but it is generally slim package implemented in C, so it should be possible. The dependency I'd be afraid the most is glib, which has grown pretty fat in recent times. There an earlier release could be enough (2.14 should be ok).
Bazsi

On Thu, Feb 4, 2016 at 6:00 AM, Girish Kumar <girish.kumar at al-enterprise.com<mailto:girish.kumar at al-enterprise.com>> wrote:
Hi All,

My requirement is to send the log messages to remote log server securely (with TLS).

The project which I am implementing is on embedded systems. So the space is very important.

Please let me know the latest stable version of syslog-ng which can be used for this.
Also please let me know the mandatory dependency libraries required.

Thanks in advance.

Regards,
Girish

--
Bazsi

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160205/ed75e445/attachment-0001.htm 


More information about the syslog-ng mailing list