<div>Hello Gergely,</div>
<div> </div>
<div>I have tried including -liconv  by adding CFLAGS=&quot;-liconv&quot;, but that did not help. I am not sure if that this is the right means to include -liconv or something else.</div>
<div>Please advice.<br><br></div>
<div class="gmail_quote">On Fri, Jun 22, 2012 at 5:41 PM, Gergely Nagy <span dir="ltr">&lt;<a href="mailto:algernon@balabit.hu" target="_blank">algernon@balabit.hu</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="im">Rakesh Rajasekharan &lt;<a href="mailto:rakesh.rajasekharan@gmail.com">rakesh.rajasekharan@gmail.com</a>&gt; writes:<br><br>&gt; I am getting an error during the make stage for syslog-ng 3.3.4.<br>&gt; complaining about libiconv. I have compiled libiconv and the library is<br>
&gt; available under /usr/local/lib<br>&gt; # ls -ltr /usr/local/lib/libiconv*<br>&gt; -rw-r--r--   1 root     system          890 Jun 17 23:35 /usr/local/lib/<br>&gt; <a href="http://libiconv.la/" target="_blank">libiconv.la</a><br>
&gt; -rw-r--r--   1 root     system      1724284 Jun 17 23:35<br>&gt; /usr/local/lib/libiconv.a<br>&gt;<br>&gt; ykis-modules.a -lc -Wl,-bnoentry  -O2 -pthread -Wl,-brtl -pthread<br>&gt; -Wl,--whole-archive -Wl,--no-whole-archive   -pthread<br>
&gt; -Wl,-bE:.libs/libsyslog-ng.exp -Wl,-bernotok<br>&gt; /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x12c): undefined<br>&gt; reference to `.libiconv_open&#39;<br>&gt; /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x358): undefined<br>
&gt; reference to `.libiconv&#39;<br>&gt; /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x39c): undefined<br>&gt; reference to `.libiconv_close&#39;<br>&gt; collect2: ld returned 1 exit status<br><br></div>It tries to compile statically, at which point, you need to list all the<br>
libraries all the dependencies link to. Why it tries static linking is<br>beyond me right now, but as a workaround, you could add -liconv to the<br>failing command, and that should help.<br><span class="HOEnZb"><font color="#888888"><br>
--<br>|8]<br><br>______________________________________________________________________________<br>Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br></font></span></blockquote></div><br>