<div dir="ltr"><div><div>Hi,<br></div><br>I never did cross compiling, so I can&#39;t help you in that one, but compiling nativity on a Raspberry Pi 2 using an up-to-date Raspbian as OS worked fine. First I installed all development dependencies, downloaded an unpacked sources. Next I ran configure with python support disabled (did not have time to debug why configure failed to find python, but most likely you don&#39;t need it anyway in an embedded environment). Next I built it and ran make check to see if self check succeeds. Everything was all right. Make install put the whole thing under /usr/local. As it&#39;s the only software there, it&#39;s easy to remove it using &#39;find /usr/local -type f -delete&#39; :)<br><br>apt-get install gcc make flex bison libssl-dev libglib2.0-dev autoconf libtool libevtlog-dev libjson0-dev<br><br>wget <a href="https://github.com/balabit/syslog-ng/releases/download/syslog-ng-3.7.2/syslog-ng-3.7.2.tar.gz">https://github.com/balabit/syslog-ng/releases/download/syslog-ng-3.7.2/syslog-ng-3.7.2.tar.gz</a><br><br>tar xzvpf syslog-ng-3.7.2.tar.gz <br><br>cd syslog-ng-3.7.2<br><br>./configure --disable-python<br><br>make<br><br>make check<br><br></div>make install<br><div><br></div><div>root@raspberrypi:/home/pi/syslog-ng-3.7.2# uname -a<br>Linux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux<br>root@raspberrypi:/home/pi/syslog-ng-3.7.2# /usr/local/sbin/syslog-ng -V<br>syslog-ng 3.7.2<br>Installer-Version: 3.7.2<br>Revision: <br>Compile-Date: Feb 14 2016 17:55:46<br>Available-Modules: basicfuncs,pseudofile,csvparser,affile,kvformat,json-plugin,afamqp,afprog,syslogformat,afuser,graphite,confgen,afstomp,cryptofuncs,afmongodb,afsocket,linux-kmsg-format,system-source,dbparser,sdjournal<br>Enable-Debug: off<br>Enable-GProf: off<br>Enable-Memtrace: off<br>Enable-IPv6: on<br>Enable-Spoof-Source: off<br>Enable-TCP-Wrapper: off<br>Enable-Linux-Caps: off<br><br>All of this is documented at <a href="https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.7-guides/en/syslog-ng-ose-v3.7-guide-admin/html-single/index.html#compiling-syslog-ng">https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.7-guides/en/syslog-ng-ose-v3.7-guide-admin/html-single/index.html#compiling-syslog-ng</a><br><br></div><div>Bye,<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Peter Czanik (CzP) &lt;<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>&gt;<br>Balabit / syslog-ng upstream<br><a href="http://czanik.blogs.balabit.com/" target="_blank">http://czanik.blogs.balabit.com/</a><br><a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div></div>
<br><div class="gmail_quote">On Sun, Feb 14, 2016 at 10:34 AM, Girish Kumar <span dir="ltr">&lt;<a href="mailto:girish.kumar@al-enterprise.com" target="_blank">girish.kumar@al-enterprise.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Peter.<br>
I started using syslog-ng 3.7.2.<br>
<br>
Armv7 hardware is BCM56340(Helix4) from broadcom<br>
My requirement is sending syslog messages over TLS to remote server.<br>
My compilation went fine for power pc architecture.<br>
But  for ARMv7 I am having problem as I  mentioned earlier.<br>
<br>
Following is the error. As other community friends suggested to I tried setting magic CFLAGS and LDFLAGS. But could not succeed.<br>
Could you please share your experience.<br>
<br>
  CC     lib/lib_libsyslog_ng_la-mainloop-call.lo<br>
/tmp/ccChQOWy.s: Assembler messages:<br>
/tmp/ccChQOWy.s:260: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
/tmp/ccChQOWy.s:269: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
make[4]: *** [lib/lib_libsyslog_ng_la-mainloop-call.lo] Error 1<br>
make[3]: *** [all-recursive] Error 1<br>
make[2]: *** [all] Error 2<br>
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&#39;<br>
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&#39;<br>
make --no-print-directory install-recursive<br>
  CC     lib/lib_libsyslog_ng_la-mainloop-call.lo<br>
/tmp/cc0N5KS5.s: Assembler messages:<br>
/tmp/cc0N5KS5.s:260: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
/tmp/cc0N5KS5.s:269: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
make[4]: *** [lib/lib_libsyslog_ng_la-mainloop-call.lo] Error 1<br>
make[3]: *** [install-recursive] Error 1<br>
make[2]: *** [install] Error 2<br>
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&#39;<br>
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<br>
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps&#39;<br>
make: *** [tps-build] Error 2<br>
+ set +x<br>
<br>
<br>
Regards,<br>
Girish<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Czanik, Péter<br>
Sent: Friday, February 12, 2016 12:15 PM<br>
To: Syslog-ng users&#39; and developers&#39; mailing list<br>
Subject: Re: [syslog-ng] syslog-ng 3.7.x support on armv7 architecture<br>
<br>
Hi,<br>
<br>
Starting with syslog-ng 3.7, sources are only published on github.<br>
This is the current stable version, 3.8 is the current development version, which is now git head.<br>
<br>
BTW: could you write about your use case? On which ARMv7 hardware do you use syslog-ng? How do you (plan to) use it? (I&#39;m an ARM addict, running syslog-ng on the Raspberry Pi2)<br>
<br>
Bye,<br>
Peter Czanik (CzP) &lt;<a href="mailto:peter.czanik@balabit.com">peter.czanik@balabit.com</a>&gt; Balabit / syslog-ng upstream <a href="http://czanik.blogs.balabit.com/" rel="noreferrer" target="_blank">http://czanik.blogs.balabit.com/</a> <a href="https://twitter.com/PCzanik" rel="noreferrer" target="_blank">https://twitter.com/PCzanik</a><br>
<br>
<br>
On Fri, Feb 12, 2016 at 7:31 AM, Girish Kumar &lt;<a href="mailto:girish.kumar@al-enterprise.com">girish.kumar@al-enterprise.com</a>&gt; wrote:<br>
&gt; Thank you all for the information. I will start working based on your<br>
&gt; suggestions.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please let me know which version of syslog-ng I should use.  I<br>
&gt; downloaded both syslog-ng 3.7.2 and syslog-ng 3.6.4<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I assume syslog-ng 3.6.4 is  the stable version. Following website<br>
&gt; doesn’t have syslog-ng 3.7.2<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; <a href="https://my.balabit.com/downloads/syslog-ng/sources" rel="noreferrer" target="_blank">https://my.balabit.com/downloads/syslog-ng/sources</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Girish<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a><br>
&gt; [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Scheidler,<br>
&gt; Balázs<br>
&gt; Sent: Wednesday, February 10, 2016 6:02 PM<br>
&gt; To: Syslog-ng users&#39; and developers&#39; mailing list<br>
&gt; Subject: Re: [syslog-ng] syslog-ng 3.7.x support on armv7 architecture<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Girish,<br>
&gt;<br>
&gt; Those architectures that are listed were known to work in specific<br>
&gt; points in time and are not guaranteed to remain so. Also, syslog-ng is<br>
&gt; an application written in C and is aimed to be portable to a number of<br>
&gt; architectures, which we also demonstrated in the amount of platforms that we support.<br>
&gt;<br>
&gt; On this community mailing list, all we can do is help you if you have<br>
&gt; specific questions/issues. This may or may not match your level of<br>
&gt; expectations, but we can only guarantee that we put &quot;best effort&quot; in<br>
&gt; answering your questions and no guarantees.<br>
&gt;<br>
&gt; Back to armv7, just like Peter Czanik has answered, we know about<br>
&gt; syslog-ng being used on this architecture, so it should theoretically<br>
&gt; be possible, but it&#39;s not something that the developers use every day,<br>
&gt; or which would be a primary platform (those being Linux distributions).<br>
&gt;<br>
&gt; The toolchain and the environment matters, syslog-ng depends on a<br>
&gt; number of external libraries (glib for example, which you had an issue<br>
&gt; with in the past), and we generally assume that those are present on the system already.<br>
&gt;<br>
&gt; That being said, Balabit does provide support for various platforms<br>
&gt; and as a commercial entity has the means and willingness to do testing<br>
&gt; in a wider variety of platforms and architectures. If you would like<br>
&gt; support guarantees, Balabit can most probably give that.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The best course of action seems to be for you to:<br>
&gt;<br>
&gt; 1) continue your trial and error in compiling syslog-ng, and ask if<br>
&gt; there&#39;s a concrete issue. We will answer to the best of our ability.<br>
&gt;<br>
&gt; 2) try contacting Balabit sales if the response you get on this<br>
&gt; mailing list is not enough to get your issues resolved.<br>
&gt;<br>
&gt; I am really happy to help, just like I did in the past.<br>
&gt;<br>
&gt; Disclaimer: I am employed by Balabit (being the CTO there), however I<br>
&gt; wrote this email as a member of the open source syslog-ng community. I<br>
&gt; don&#39;t want to push anything here, the only reason I wrote this email<br>
&gt; is that I started sensing a mismatch of what the community can provide<br>
&gt; and what you can expect.<br>
&gt;<br>
&gt; I hope this helps,<br>
&gt;<br>
&gt; Bazsi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Bazsi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Feb 10, 2016 at 12:25 PM, Girish Kumar<br>
&gt; &lt;<a href="mailto:girish.kumar@al-enterprise.com">girish.kumar@al-enterprise.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please let me know whether syslog-ng 3.7.x is supported on armv7<br>
&gt; architecture.<br>
&gt;<br>
&gt; I went through the  following link and found  that armv7 is not listed<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; <a href="https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-la" rel="noreferrer" target="_blank">https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-la</a><br>
&gt; test-guides/en/syslog-ng-ose-guide-admin/html/supported-platforms.html<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 1.6. Supported platforms<br>
&gt;<br>
&gt; The syslog-ng Open Source Edition application is highly portable and<br>
&gt; is known to run on a wide range of hardware architectures (x86,<br>
&gt; x86_64, SUN Sparc, PowerPC 32 and 64, Alpha)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Girish<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
</div></div>&gt; ________ Member info:<br>
<span class="">&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation:<br>
&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
</span>&gt; ________ Member info:<br>
<div class="HOEnZb"><div class="h5">&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation:<br>
&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</div></div></blockquote></div><br></div>