<div>Hello Gergely,</div>
<div> </div>
<div>I have tried including -liconv by adding CFLAGS="-liconv", 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"><<a href="mailto:algernon@balabit.hu" target="_blank">algernon@balabit.hu</a>></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 <<a href="mailto:rakesh.rajasekharan@gmail.com">rakesh.rajasekharan@gmail.com</a>> writes:<br><br>> I am getting an error during the make stage for syslog-ng 3.3.4.<br>> complaining about libiconv. I have compiled libiconv and the library is<br>
> available under /usr/local/lib<br>> # ls -ltr /usr/local/lib/libiconv*<br>> -rw-r--r-- 1 root system 890 Jun 17 23:35 /usr/local/lib/<br>> <a href="http://libiconv.la/" target="_blank">libiconv.la</a><br>
> -rw-r--r-- 1 root system 1724284 Jun 17 23:35<br>> /usr/local/lib/libiconv.a<br>><br>> ykis-modules.a -lc -Wl,-bnoentry -O2 -pthread -Wl,-brtl -pthread<br>> -Wl,--whole-archive -Wl,--no-whole-archive -pthread<br>
> -Wl,-bE:.libs/libsyslog-ng.exp -Wl,-bernotok<br>> /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x12c): undefined<br>> reference to `.libiconv_open'<br>> /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x358): undefined<br>
> reference to `.libiconv'<br>> /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x39c): undefined<br>> reference to `.libiconv_close'<br>> 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>