syslog-ng and dependency libraries for sending log messages for remote log server with TLS support
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 _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
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@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 _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
______________________________________________________________________________ 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
-- Bazsi
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@lists.balabit.hu [mailto:syslog-ng-bounces@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@al-enterprise.com<mailto:girish.kumar@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
What was the configure output? On Feb 4, 2016 12:22 PM, "Girish Kumar" <girish.kumar@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@lists.balabit.hu [mailto: syslog-ng-bounces@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@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
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@lists.balabit.hu<mailto:syslog-ng-bounces@lists.balabit.hu> [mailto:syslog-ng-bounces@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@al-enterprise.com<mailto:girish.kumar@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@lists.balabit.hu<mailto:syslog-ng-bounces@lists.balabit.hu> [mailto:syslog-ng-bounces@lists.balabit.hu<mailto:syslog-ng-bounces@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@al-enterprise.com<mailto:girish.kumar@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
On Feb 5, 2016 06:53, "Girish Kumar" <girish.kumar@al-enterprise.com> wrote:
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
Probably because the configure script found it anyway. The compilation warnings clearly indicate that glib was found as those are glib defined macros. But the error that caused the failure was
/tmp/ccrnicrJ.s: Assembler messages:
/tmp/ccrnicrJ.s:260: Error: invalid operands (.text and *UND* sections) for `-'
Which looks.like a toolchain issue.
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@lists.balabit.hu [mailto:
syslog-ng-bounces@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@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@lists.balabit.hu [mailto: syslog-ng-bounces@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@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
______________________________________________________________________________
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
Hi All, Presently I am compiling for armv7 platform on linux. Please let me know whether following settings are fine syslog-ng_deps = $(shell find $(LTOP)/syslog-ng-3.6.4 -type f) $(OBJS)/syslog-ng/syslog-ng.configured: $(syslog-ng_deps) $(RAMDISK_LIB)/libssl.so.1.0.0 eventlog @rm -rf $(OBJS)/syslog-ng; @mkdir -p $(OBJS)/syslog-ng; @cd $(OBJS)/syslog-ng;\ declare -x PATH=$(CCPATH):$(PATH);\ declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\ declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\ declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\ declare -x ac_cv_func_malloc_0_nonnull="yes";\ declare -x ac_cv_func_realloc_0_nonnull="yes";\ $(LTOP)/syslog-ng-3.6.4/configure --prefix=/ --host=$(CCPREFIX)\ --enable-ssl --enable-glib &> $(OBJS)/syslog-ng/configure.out @touch $(OBJS)/syslog-ng/syslog-ng.configured $(BUILT_BASE)/sbin/syslog-ngd: $(OBJS)/syslog-ng/syslog-ng.configured @cd $(OBJS)/syslog-ng;\ declare -x PATH=$(CCPATH):$(PATH);\ declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\ declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\ declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\ $(MAKE) &> $(OBJS)/syslog-ng/make.out;\ make install prefix=$(BUILT_BASE) &> $(OBJS)/syslog-ng/install.out $(RAMDISK_SBIN)/syslog-ngd: $(BUILT_BASE)/sbin/syslog-ngd @cp -rf $(BUILT_BASE)/lib/syslog-ng $(RAMDISK_LIB) @cp -f $(BUILT_BASE)/sbin/syslog-ngd $(RAMDISK_SBIN) @echo "$(PLATFORM_DIR) syslog-ngd done" syslog-ng: $(RAMDISK_SBIN)/syslog-ngd Regards, Girish
Sorry but I don't know the target environment so reviewing this is pretty impossible. If it compiles with these and at least the functest runs then it should be OK. Do you have a specific reason to call syslog-ng binary as syslog-ngd? On other platforms it is syslog-ng. On Feb 4, 2016 12:31 PM, "Girish Kumar" <girish.kumar@al-enterprise.com> wrote:
Hi All,
Presently I am compiling for armv7 platform on linux. Please let me know whether following settings are fine
syslog-ng_deps = $(shell find $(LTOP)/syslog-ng-3.6.4 -type f)
$(OBJS)/syslog-ng/syslog-ng.configured: $(syslog-ng_deps) $(RAMDISK_LIB)/libssl.so.1.0.0 eventlog
@rm -rf $(OBJS)/syslog-ng;
@mkdir -p $(OBJS)/syslog-ng;
@cd $(OBJS)/syslog-ng;\
declare -x PATH=$(CCPATH):$(PATH);\
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\
declare -x ac_cv_func_malloc_0_nonnull="yes";\
declare -x ac_cv_func_realloc_0_nonnull="yes";\
$(LTOP)/syslog-ng-3.6.4/configure --prefix=/ --host=$(CCPREFIX)\
--enable-ssl --enable-glib &> $(OBJS)/syslog-ng/configure.out
@touch $(OBJS)/syslog-ng/syslog-ng.configured
$(BUILT_BASE)/sbin/syslog-ngd: $(OBJS)/syslog-ng/syslog-ng.configured
@cd $(OBJS)/syslog-ng;\
declare -x PATH=$(CCPATH):$(PATH);\
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\
$(MAKE) &> $(OBJS)/syslog-ng/make.out;\
make install prefix=$(BUILT_BASE) &> $(OBJS)/syslog-ng/install.out
$(RAMDISK_SBIN)/syslog-ngd: $(BUILT_BASE)/sbin/syslog-ngd
@cp -rf $(BUILT_BASE)/lib/syslog-ng $(RAMDISK_LIB)
@cp -f $(BUILT_BASE)/sbin/syslog-ngd $(RAMDISK_SBIN)
@echo "$(PLATFORM_DIR) syslog-ngd done"
syslog-ng: $(RAMDISK_SBIN)/syslog-ngd
Regards,
Girish
______________________________________________________________________________ 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
Hi, I have changed the syslog-ngd to syslog-ng I am getting following error while compiling syslog-ng . My tool chain is perfectly fine. I have complied many other packages which are fine. With syslog-ng I am getting following error. Could you please guide me on this. It would be great if you can give me some guidelines on how to compile syslog-ng on armv7 arch on linux platform CC lib/lib_libsyslog_ng_la-mainloop-call.lo /tmp/ccChQOWy.s: Assembler messages: /tmp/ccChQOWy.s:260: Error: invalid operands (.text and *UND* sections) for `-' /tmp/ccChQOWy.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/cc0N5KS5.s: Assembler messages: /tmp/cc0N5KS5.s:260: Error: invalid operands (.text and *UND* sections) for `-' /tmp/cc0N5KS5.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-ng] Error 2 make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps' make: *** [tps-build] Error 2 + set +x Regards, Girish From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Scheidler, Balázs Sent: Sunday, February 07, 2016 2:30 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] compiling syslog-ng for armv7 platform on linux with TLS support Sorry but I don't know the target environment so reviewing this is pretty impossible. If it compiles with these and at least the functest runs then it should be OK. Do you have a specific reason to call syslog-ng binary as syslog-ngd? On other platforms it is syslog-ng. On Feb 4, 2016 12:31 PM, "Girish Kumar" <girish.kumar@al-enterprise.com<mailto:girish.kumar@al-enterprise.com>> wrote: Hi All, Presently I am compiling for armv7 platform on linux. Please let me know whether following settings are fine syslog-ng_deps = $(shell find $(LTOP)/syslog-ng-3.6.4 -type f) $(OBJS)/syslog-ng/syslog-ng.configured: $(syslog-ng_deps) $(RAMDISK_LIB)/libssl.so.1.0.0 eventlog @rm -rf $(OBJS)/syslog-ng; @mkdir -p $(OBJS)/syslog-ng; @cd $(OBJS)/syslog-ng;\ declare -x PATH=$(CCPATH):$(PATH);\ declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\ declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\ declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\ declare -x ac_cv_func_malloc_0_nonnull="yes";\ declare -x ac_cv_func_realloc_0_nonnull="yes";\ $(LTOP)/syslog-ng-3.6.4/configure --prefix=/ --host=$(CCPREFIX)\ --enable-ssl --enable-glib &> $(OBJS)/syslog-ng/configure.out @touch $(OBJS)/syslog-ng/syslog-ng.configured $(BUILT_BASE)/sbin/syslog-ngd: $(OBJS)/syslog-ng/syslog-ng.configured @cd $(OBJS)/syslog-ng;\ declare -x PATH=$(CCPATH):$(PATH);\ declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\ declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\ declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\ declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\ $(MAKE) &> $(OBJS)/syslog-ng/make.out;\ make install prefix=$(BUILT_BASE) &> $(OBJS)/syslog-ng/install.out $(RAMDISK_SBIN)/syslog-ngd: $(BUILT_BASE)/sbin/syslog-ngd @cp -rf $(BUILT_BASE)/lib/syslog-ng $(RAMDISK_LIB) @cp -f $(BUILT_BASE)/sbin/syslog-ngd $(RAMDISK_SBIN) @echo "$(PLATFORM_DIR) syslog-ngd done" syslog-ng: $(RAMDISK_SBIN)/syslog-ngd Regards, Girish ______________________________________________________________________________ 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
Hi, Honestly I don't know. Those errors are reported by the assembler, gcc probably generated some kind of opcodes it didn't recognize. One idea I have is that glib has some inline assembly stuff in gatomic.h, so *maybe* that is the root cause. To confirm that you'll need to compare the offending lines in the generated assembly file to the functions in glib headers. Glib probably attempts to detect which processor you have and uses an ifdef trickery to use the appropriate code fragment. I guess there's a generic implementation not using inline assembly. So you might try to force that by playing with glib configure options. Bazsi On Feb 7, 2016 1:45 PM, "Girish Kumar" <girish.kumar@al-enterprise.com> wrote:
Hi,
I have changed the syslog-ngd to syslog-ng
I am getting following error while compiling syslog-ng .
My tool chain is perfectly fine. I have complied many other packages which are fine. With syslog-ng I am getting following error.
Could you please guide me on this. It would be great if you can give me some guidelines on how to compile syslog-ng on armv7 arch on linux platform
CC lib/lib_libsyslog_ng_la-mainloop-call.lo
/tmp/ccChQOWy.s: Assembler messages:
/tmp/ccChQOWy.s:260: Error: invalid operands (.text and *UND* sections) for `-'
/tmp/ccChQOWy.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/cc0N5KS5.s: Assembler messages:
/tmp/cc0N5KS5.s:260: Error: invalid operands (.text and *UND* sections) for `-'
/tmp/cc0N5KS5.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-ng] Error 2
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps'
make: *** [tps-build] Error 2
+ set +x
Regards,
Girish
*From:* syslog-ng-bounces@lists.balabit.hu [mailto: syslog-ng-bounces@lists.balabit.hu] *On Behalf Of *Scheidler, Balázs *Sent:* Sunday, February 07, 2016 2:30 AM *To:* Syslog-ng users' and developers' mailing list *Subject:* Re: [syslog-ng] compiling syslog-ng for armv7 platform on linux with TLS support
Sorry but I don't know the target environment so reviewing this is pretty impossible. If it compiles with these and at least the functest runs then it should be OK.
Do you have a specific reason to call syslog-ng binary as syslog-ngd? On other platforms it is syslog-ng.
On Feb 4, 2016 12:31 PM, "Girish Kumar" <girish.kumar@al-enterprise.com> wrote:
Hi All,
Presently I am compiling for armv7 platform on linux. Please let me know whether following settings are fine
syslog-ng_deps = $(shell find $(LTOP)/syslog-ng-3.6.4 -type f)
$(OBJS)/syslog-ng/syslog-ng.configured: $(syslog-ng_deps) $(RAMDISK_LIB)/libssl.so.1.0.0 eventlog
@rm -rf $(OBJS)/syslog-ng;
@mkdir -p $(OBJS)/syslog-ng;
@cd $(OBJS)/syslog-ng;\
declare -x PATH=$(CCPATH):$(PATH);\
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\
declare -x ac_cv_func_malloc_0_nonnull="yes";\
declare -x ac_cv_func_realloc_0_nonnull="yes";\
$(LTOP)/syslog-ng-3.6.4/configure --prefix=/ --host=$(CCPREFIX)\
--enable-ssl --enable-glib &> $(OBJS)/syslog-ng/configure.out
@touch $(OBJS)/syslog-ng/syslog-ng.configured
$(BUILT_BASE)/sbin/syslog-ngd: $(OBJS)/syslog-ng/syslog-ng.configured
@cd $(OBJS)/syslog-ng;\
declare -x PATH=$(CCPATH):$(PATH);\
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\
$(MAKE) &> $(OBJS)/syslog-ng/make.out;\
make install prefix=$(BUILT_BASE) &> $(OBJS)/syslog-ng/install.out
$(RAMDISK_SBIN)/syslog-ngd: $(BUILT_BASE)/sbin/syslog-ngd
@cp -rf $(BUILT_BASE)/lib/syslog-ng $(RAMDISK_LIB)
@cp -f $(BUILT_BASE)/sbin/syslog-ngd $(RAMDISK_SBIN)
@echo "$(PLATFORM_DIR) syslog-ngd done"
syslog-ng: $(RAMDISK_SBIN)/syslog-ngd
Regards,
Girish
______________________________________________________________________________ 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
______________________________________________________________________________ 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
Not sure how your particular build system handles it but there are some magic CFLAGS and LDFLAGS you need for glib. syslog-ng picks these up automatically using pkg-config but since you're cross-compiling you probably need to set PKG_CONFIG and/or PKG_CONFIG_PATH to point to the right place. Otherwise glib will get confused and probably take some values from your host system. For what it's worth I wrote the buildroot (https://buildroot.org) package for syslog-ng. I don't think I ever tried 3.6.4 but 3.7.2 is on many architectures without issue. On 02/08/2016 07:09 PM, Scheidler, Balázs wrote:
Hi,
Honestly I don't know. Those errors are reported by the assembler, gcc probably generated some kind of opcodes it didn't recognize.
One idea I have is that glib has some inline assembly stuff in gatomic.h, so *maybe* that is the root cause. To confirm that you'll need to compare the offending lines in the generated assembly file to the functions in glib headers.
Glib probably attempts to detect which processor you have and uses an ifdef trickery to use the appropriate code fragment. I guess there's a generic implementation not using inline assembly. So you might try to force that by playing with glib configure options.
Bazsi
On Feb 7, 2016 1:45 PM, "Girish Kumar" <girish.kumar@al-enterprise.com <mailto:girish.kumar@al-enterprise.com>> wrote:
Hi,____
__ __
I have changed the syslog-ngd to syslog-ng____
__ __
I am getting following error while compiling syslog-ng . ____
My tool chain is perfectly fine. I have complied many other packages which are fine. With syslog-ng I am getting following error.____
__ __
Could you please guide me on this. It would be great if you can give me some guidelines on how to compile syslog-ng on armv7 arch on linux platform ____
__ __
__ __
CC lib/lib_libsyslog_ng_la-mainloop-call.lo____
/tmp/ccChQOWy.s: Assembler messages:____
/tmp/ccChQOWy.s:260: Error: invalid operands (.text and *UND* sections) for `-'____
/tmp/ccChQOWy.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/cc0N5KS5.s: Assembler messages:____
/tmp/cc0N5KS5.s:260: Error: invalid operands (.text and *UND* sections) for `-'____
/tmp/cc0N5KS5.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-ng] Error 2____
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps'____
make: *** [tps-build] Error 2____
+ set +x____
__ __
Regards,____
Girish____
__ __
*From:*syslog-ng-bounces@lists.balabit.hu <mailto:syslog-ng-bounces@lists.balabit.hu> [mailto:syslog-ng-bounces@lists.balabit.hu <mailto:syslog-ng-bounces@lists.balabit.hu>] *On Behalf Of *Scheidler, Balázs *Sent:* Sunday, February 07, 2016 2:30 AM *To:* Syslog-ng users' and developers' mailing list *Subject:* Re: [syslog-ng] compiling syslog-ng for armv7 platform on linux with TLS support____
__ __
Sorry but I don't know the target environment so reviewing this is pretty impossible. If it compiles with these and at least the functest runs then it should be OK.____
Do you have a specific reason to call syslog-ng binary as syslog-ngd? On other platforms it is syslog-ng.____
On Feb 4, 2016 12:31 PM, "Girish Kumar" <girish.kumar@al-enterprise.com <mailto:girish.kumar@al-enterprise.com>> wrote:____
Hi All,____
____
Presently I am compiling for armv7 platform on linux. Please let me know whether following settings are fine____
____
syslog-ng_deps = $(shell find $(LTOP)/syslog-ng-3.6.4 -type f)____
$(OBJS)/syslog-ng/syslog-ng.configured: $(syslog-ng_deps) $(RAMDISK_LIB)/libssl.so.1.0.0 eventlog____
@rm -rf $(OBJS)/syslog-ng;____
@mkdir -p $(OBJS)/syslog-ng;____
@cd $(OBJS)/syslog-ng;\____
declare -x PATH=$(CCPATH):$(PATH);\____
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\____
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\____
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\____
declare -x ac_cv_func_malloc_0_nonnull="yes";\____
declare -x ac_cv_func_realloc_0_nonnull="yes";\____
$(LTOP)/syslog-ng-3.6.4/configure --prefix=/ --host=$(CCPREFIX)\____
--enable-ssl --enable-glib &> $(OBJS)/syslog-ng/configure.out____
@touch $(OBJS)/syslog-ng/syslog-ng.configured____
$(BUILT_BASE)/sbin/syslog-ngd: $(OBJS)/syslog-ng/syslog-ng.configured____
@cd $(OBJS)/syslog-ng;\____
declare -x PATH=$(CCPATH):$(PATH);\____
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\____
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\____
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\____
$(MAKE) &> $(OBJS)/syslog-ng/make.out;\____
make install prefix=$(BUILT_BASE) &> $(OBJS)/syslog-ng/install.out____
____
$(RAMDISK_SBIN)/syslog-ngd: $(BUILT_BASE)/sbin/syslog-ngd____
@cp -rf $(BUILT_BASE)/lib/syslog-ng $(RAMDISK_LIB)____
@cp -f $(BUILT_BASE)/sbin/syslog-ngd $(RAMDISK_SBIN)____
@echo "$(PLATFORM_DIR) syslog-ngd done"____
____
syslog-ng: $(RAMDISK_SBIN)/syslog-ngd____
____
Regards,____
Girish____
______________________________________________________________________________ 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
____
______________________________________________________________________________ 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
Thanks chris, Bazsi. I will checkout Regards, Girish -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Chris Packham Sent: Tuesday, February 09, 2016 10:13 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] compiling syslog-ng for armv7 platform on linux with TLS support Not sure how your particular build system handles it but there are some magic CFLAGS and LDFLAGS you need for glib. syslog-ng picks these up automatically using pkg-config but since you're cross-compiling you probably need to set PKG_CONFIG and/or PKG_CONFIG_PATH to point to the right place. Otherwise glib will get confused and probably take some values from your host system. For what it's worth I wrote the buildroot (https://buildroot.org) package for syslog-ng. I don't think I ever tried 3.6.4 but 3.7.2 is on many architectures without issue. On 02/08/2016 07:09 PM, Scheidler, Balázs wrote:
Hi,
Honestly I don't know. Those errors are reported by the assembler, gcc probably generated some kind of opcodes it didn't recognize.
One idea I have is that glib has some inline assembly stuff in gatomic.h, so *maybe* that is the root cause. To confirm that you'll need to compare the offending lines in the generated assembly file to the functions in glib headers.
Glib probably attempts to detect which processor you have and uses an ifdef trickery to use the appropriate code fragment. I guess there's a generic implementation not using inline assembly. So you might try to force that by playing with glib configure options.
Bazsi
On Feb 7, 2016 1:45 PM, "Girish Kumar" <girish.kumar@al-enterprise.com <mailto:girish.kumar@al-enterprise.com>> wrote:
Hi,____
__ __
I have changed the syslog-ngd to syslog-ng____
__ __
I am getting following error while compiling syslog-ng . ____
My tool chain is perfectly fine. I have complied many other packages which are fine. With syslog-ng I am getting following error.____
__ __
Could you please guide me on this. It would be great if you can give me some guidelines on how to compile syslog-ng on armv7 arch on linux platform ____
__ __
__ __
CC lib/lib_libsyslog_ng_la-mainloop-call.lo____
/tmp/ccChQOWy.s: Assembler messages:____
/tmp/ccChQOWy.s:260: Error: invalid operands (.text and *UND* sections) for `-'____
/tmp/ccChQOWy.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/cc0N5KS5.s: Assembler messages:____
/tmp/cc0N5KS5.s:260: Error: invalid operands (.text and *UND* sections) for `-'____
/tmp/cc0N5KS5.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-ng] Error 2____
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps'____
make: *** [tps-build] Error 2____
+ set +x____
__ __
Regards,____
Girish____
__ __
*From:*syslog-ng-bounces@lists.balabit.hu <mailto:syslog-ng-bounces@lists.balabit.hu> [mailto:syslog-ng-bounces@lists.balabit.hu <mailto:syslog-ng-bounces@lists.balabit.hu>] *On Behalf Of *Scheidler, Balázs *Sent:* Sunday, February 07, 2016 2:30 AM *To:* Syslog-ng users' and developers' mailing list *Subject:* Re: [syslog-ng] compiling syslog-ng for armv7 platform on linux with TLS support____
__ __
Sorry but I don't know the target environment so reviewing this is pretty impossible. If it compiles with these and at least the functest runs then it should be OK.____
Do you have a specific reason to call syslog-ng binary as syslog-ngd? On other platforms it is syslog-ng.____
On Feb 4, 2016 12:31 PM, "Girish Kumar" <girish.kumar@al-enterprise.com <mailto:girish.kumar@al-enterprise.com>> wrote:____
Hi All,____
____
Presently I am compiling for armv7 platform on linux. Please let me know whether following settings are fine____
____
syslog-ng_deps = $(shell find $(LTOP)/syslog-ng-3.6.4 -type f)____
$(OBJS)/syslog-ng/syslog-ng.configured: $(syslog-ng_deps) $(RAMDISK_LIB)/libssl.so.1.0.0 eventlog____
@rm -rf $(OBJS)/syslog-ng;____
@mkdir -p $(OBJS)/syslog-ng;____
@cd $(OBJS)/syslog-ng;\____
declare -x PATH=$(CCPATH):$(PATH);\____
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\____
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\____
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\____
declare -x ac_cv_func_malloc_0_nonnull="yes";\____
declare -x ac_cv_func_realloc_0_nonnull="yes";\____
$(LTOP)/syslog-ng-3.6.4/configure --prefix=/ --host=$(CCPREFIX)\____
--enable-ssl --enable-glib &> $(OBJS)/syslog-ng/configure.out____
@touch $(OBJS)/syslog-ng/syslog-ng.configured____
$(BUILT_BASE)/sbin/syslog-ngd: $(OBJS)/syslog-ng/syslog-ng.configured____
@cd $(OBJS)/syslog-ng;\____
declare -x PATH=$(CCPATH):$(PATH);\____
declare -x CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x CPPFLAGS="$(PLATFORM_CPPFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES)";\____
declare -x LDFLAGS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -lcrypto -levtlog";\____
declare -x EVTLOG_CFLAGS="$(PLATFORM_CFLAGS) -I$(CROSSINCS) -I$(BUILT_INCLUDES) -I$(BUILT_INCLUDES)/eventlog";\____
declare -x EVTLOG_LIBS="$(PLATFORM_LDFLAGS) -L$(CROSSLIBS) -L$(BUILT_LIBS) -levtlog";\____
$(MAKE) &> $(OBJS)/syslog-ng/make.out;\____
make install prefix=$(BUILT_BASE) &> $(OBJS)/syslog-ng/install.out____
____
$(RAMDISK_SBIN)/syslog-ngd: $(BUILT_BASE)/sbin/syslog-ngd____
@cp -rf $(BUILT_BASE)/lib/syslog-ng $(RAMDISK_LIB)____
@cp -f $(BUILT_BASE)/sbin/syslog-ngd $(RAMDISK_SBIN)____
@echo "$(PLATFORM_DIR) syslog-ngd done"____
____
syslog-ng: $(RAMDISK_SBIN)/syslog-ngd____
____
Regards,____
Girish____
______________________________________________________________________________ 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
____
______________________________________________________________________________ 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
______________________________________________________________________________ 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
Please let me know whether the 2.14 version you are specifying is of syslog-ng or glib . Regards, Girish From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@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@al-enterprise.com<mailto:girish.kumar@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 _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT. ______________________________________________________________________________ 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 -- Bazsi
Could you please let me know what version of syslog-ng I should use. Regards, Girish From: Girish Kumar Sent: Friday, February 05, 2016 11:54 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 Please let me know whether the 2.14 version you are specifying is of syslog-ng or glib . Regards, Girish From: syslog-ng-bounces@lists.balabit.hu<mailto:syslog-ng-bounces@lists.balabit.hu> [mailto:syslog-ng-bounces@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@al-enterprise.com<mailto:girish.kumar@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 _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT. ______________________________________________________________________________ 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 -- Bazsi
participants (4)
-
Balazs Scheidler
-
Chris Packham
-
Girish Kumar
-
Scheidler, Balázs