<div>Yes , the results are the same even after trying to set the LDFLAGS.</div>
<div>export LDFLAGS=&quot;-liconv&quot;</div>
<div> </div>
<div>below is the final o/p from my configure command.</div>
<div> </div>
<div>syslog-ng Open Source Edition 3.3.4 configured<br> Compiler options:<br>  compiler                    : gcc -std=gnu99<br>  compiler options            : -g -O2 -Wall -pthread -D_LARGE_FILES=1  -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/opt/soe/local/syslog-ng-3.3.4/eventlog/include/eventlog       -I$(top_srcdir)/lib/ivykis/lib/include -I$(top_builddir)/lib/ivykis/lib/include -I$(top_srcdir)/lib/ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
  linker flags                : -liconv -Wl,-brtl<br>  prefix                      : /opt/soe/local/syslog-ng-3.3.4<br>  linking mode                : dynamic<br>  __thread keyword            : no<br> Submodules:<br>  ivykis                      : internal<br>
  libmongo-client             : no<br> Features:<br>  Debug symbols               : no<br>  GCC profiling               : no<br>  Memtrace                    : no<br>  IPV6 support                : yes<br>  spoof-source support        : no<br>
  tcp-wrapper support         : no<br>  Linux capability support    : no<br>  PCRE support                : no<br>  Env wrapper support         : no<br>  systemd support             : no (unit dir: none)<br> Modules:<br>  Module search path          : /opt/soe/local/syslog-ng-3.3.4/lib/syslog-ng<br>
  Default module list         : affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat<br>  Sun STREAMS support (module): no<br>  SSL support (module)        : no<br>  SQL support (module)        : no<br>
  PACCT module (EXPERIMENTAL) : no<br>  MongoDB destination (module): no<br>  JSON support (module)       : no (using no</div>
<div> </div>
<div> </div>
<div>and the failed lines of code are below.</div>
<div><br>libtool: link: gcc -std=gnu99 -shared -o .libs/<a href="http://libsyslog-ng-3.3.4.so">libsyslog-ng-3.3.4.so</a>  .libs/afinter.o .libs/alarms.o .libs/apphook.o .libs/block-ref-parser.o .libs/center.o .libs/cfg.o .libs/cfg-lexer.o .libs/cfg-parser.o .libs/children.o .libs/compat.o .libs/control.o .libs/dgroup.o .libs/dnscache.o .libs/driver.o .libs/filter.o .libs/filter-expr-parser.o .libs/globals.o .libs/gprocess.o .libs/gsockaddr.o .libs/gsocket.o .libs/logmatcher.o .libs/logmpx.o .libs/logmsg.o .libs/logparser.o .libs/logpipe.o .libs/logprocess.o .libs/logproto.o .libs/logqueue.o .libs/logqueue-fifo.o .libs/logreader.o .libs/logrewrite.o .libs/logsource.o .libs/logstamp.o .libs/logtransport.o .libs/logwriter.o .libs/mainloop.o .libs/memtrace.o .libs/messages.o .libs/misc.o .libs/msg-format.o .libs/nvtable.o .libs/parser-expr-parser.o .libs/persist-state.o .libs/plugin.o .libs/pragma-parser.o .libs/rewrite-expr-parser.o .libs/scratch-buffers.o .libs/serialize.o .libs/sgroup.o .libs/stats.o .libs/str-format.o .libs/syslog-names.o .libs/tags.o .libs/templates.o .libs/timeutils.o .libs/utils.o .libs/value-pairs.o .libs/cfg-lex.o .libs/cfg-grammar.o .libs/filter-expr-grammar.o .libs/block-ref-grammar.o .libs/pragma-grammar.o .libs/parser-expr-grammar.o .libs/rewrite-expr-grammar.o   -Wl,-blibpath:/usr/local/lib:/opt/soe/local/syslog-ng-3.3.4/eventlog/lib:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../..:/usr/local/powerpc-ibm-aix5.2.0.0/lib:/usr/local/lib:/lib:/usr/lib -L/usr/local/lib -liconv -lrt -lnsl /usr/local/lib/libgmodule-2.0.a /usr/local/lib/libgthread-2.0.a /usr/local/lib/libglib-2.0.a -lintl -L/opt/soe/local/syslog-ng-3.3.4/eventlog/lib -levtlog -ldl -L../lib/ivykis/lib /tmp/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib/.libs/libivykis.a -L../lib/ivykis/modules /tmp/compile/syslog/syslog-ng-3.3.4/lib/ivykis/modules/.libs/libivykis-modules.a -lc -Wl,-bnoentry  -O2 -pthread -Wl,-brtl -pthread -Wl,--whole-archive -Wl,--no-whole-archive   -pthread -Wl,-bE:.libs/libsyslog-ng.exp -Wl,-bernotok<br>
/usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x12c): undefined reference to `.libiconv_open&#39;<br>/usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x358): undefined reference to `.libiconv&#39;<br>/usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x39c): undefined reference to `.libiconv_close&#39;<br>
collect2: ld returned 1 exit status<br>make[4]: *** [<a href="http://libsyslog-ng.la">libsyslog-ng.la</a>] Error 1<br>make[4]: Leaving directory `/tmp/compile/syslog/syslog-ng-3.3.4/lib&#39;<br>make[3]: *** [all-recursive] Error 1<br>
make[3]: Leaving directory `/tmp/compile/syslog/syslog-ng-3.3.4/lib&#39;<br>make[2]: *** [all] Error 2<br>make[2]: Leaving directory `/tmp/compile/syslog/syslog-ng-3.3.4/lib&#39;<br>make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/tmp/compile/syslog/syslog-ng-3.3.4&#39;<br>make: *** [all] Error 2<br></div>
<div> </div>
<div> </div>
<div> </div>
<div>I have compiled glib 2.16.5 using thje configure options</div>
<div>./configure --enable-static -with-libiconv</div>
<div> </div>
<div>and libiconv was run without any options supplied to the configure &quot;./configure&quot;</div>
<div> </div>
<div>Thanks,</div>
<div>Rakesh<br></div>
<div class="gmail_quote">On Fri, Jun 22, 2012 at 7:20 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">(No need to Cc me on list mail, thank you)<br>
<div class="im"><br>Rakesh Rajasekharan &lt;<a href="mailto:rakesh.rajasekharan@gmail.com">rakesh.rajasekharan@gmail.com</a>&gt; writes:<br><br>&gt; Hello Gergely,<br>&gt;<br>&gt; I have tried including -liconv  by adding CFLAGS=&quot;-liconv&quot;, but that did<br>
&gt; not help. I am not sure if that this is the right means to include -liconv<br>&gt; or something else.<br><br></div>LDFLAGS would be the place, I believe. Do you get the same error if you<br>put it there? If so, can you post the whole failing command and its<br>
output?<br>
<div class="HOEnZb">
<div class="h5"><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></div></div></blockquote></div><br>