[syslog-ng] make error syslog-ng 3.3.4 AIX 5.2

Pal Tamas folti at balabit.hu
Fri Jun 22 15:48:44 CEST 2012


On Fri, Jun 22, 2012 at 07:02:35PM +0530, Rakesh Rajasekharan wrote:
> Hello Gergely,
>  
> 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.
> Please advice.
With what options did you compiled libiconv and glib?
> 
> On Fri, Jun 22, 2012 at 5:41 PM, Gergely Nagy <algernon at balabit.hu> wrote:
> 
>     Rakesh Rajasekharan <rakesh.rajasekharan at gmail.com> writes:
> 
>     > I am getting an error during the make stage for syslog-ng 3.3.4.
>     > complaining about libiconv. I have compiled libiconv and the library is
>     > available under /usr/local/lib
>     > # ls -ltr /usr/local/lib/libiconv*
>     > -rw-r--r--   1 root     system          890 Jun 17 23:35 /usr/local/lib/
>     > libiconv.la
>     > -rw-r--r--   1 root     system      1724284 Jun 17 23:35
>     > /usr/local/lib/libiconv.a
>     >
>     > ykis-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
What was the full line here?
>     > /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x12c):
>     undefined
>     > reference to `.libiconv_open'
>     > /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x358):
>     undefined
>     > reference to `.libiconv'
>     > /usr/local/lib/libglib-2.0.a(gconvert.o):gconvert.c:(.pr+0x39c):
>     undefined
>     > reference to `.libiconv_close'
>     > collect2: ld returned 1 exit status
> 
>     It tries to compile statically, at which point, you need to list all the
>     libraries all the dependencies link to. Why it tries static linking is
>     beyond me right now, but as a workaround, you could add -liconv to the
>     failing command, and that should help.
> 
>     --
>     |8]
> 
-- 
Pal Tamas/Folti
folti at balabit.hu



More information about the syslog-ng mailing list