Re: [Refdb-users] Problems compiling pre4
Status: Beta
Brought to you by:
mhoenicka
|
From: Michael S. <sm...@xm...> - 2004-01-25 17:28:52
|
Hi Markus,
You wrote:
> Hi Mike,
>
> you may have noticed that the SF lists are broke currently. I'm not
> sure whether my previous replies ever made it to your inbox.
At least one did, and I replied, but I guess the list sidelined it.
> In any case, I had a second look at your Cygwin log output and noticed
> something pretty strange:
>
> refdbdnote.o(.text+0x5926):refdbdnote.c: undefined reference to `_dbi_conn_get_e
> ncoding'
> refdbdnote.o(.text+0x599c):refdbdnote.c: undefined reference to `_libiconv_close
> '
>
> The first line is ok and looks as expected if a library function is
> missing (you have an old libdbi version). The second line should
> complain about an undefined reference to "_iconv_close", not
> "_libiconv_close". However I could not find any hint in the Cygwin
> mailing lists about any oddities of libiconv on this platform. I'll
> check myself on Monday when I'll get my hands on a Windoze box again.
Attached is a copy of the iconv.h file from my Cygwin environment. If
you look at that, there are some #ifdefs in there like this:
#ifndef LIBICONV_PLUG
#define iconv_close libiconv_close
#endif
I actually tried temporarily replacing the iconv.h with a copy that had
that stuff commented out, but even then refdb wouldn't build.
Also attached is a copy of my config.log for the build.
>
> I also ran another test on a Debian box. Linux apparently has the
> iconv stuff built into libc, that's why it is not necessary to link
> against libiconv. RefDB works allright on Debian 3.0 for me.
Yeah, I reckon that once I update my libdbi kit on Debian, I won't have
any problems on Debian either. But the Cygwin stuff still has me stumped.
--Mike
> Michael Smith writes:
> > Markus,
> >
> > I just updated by sandboxes and am now getting similar "undefined
> > reference to `_libiconv_close'" build errors on Cygwin, along with an
> > "undefined reference to `_dbi_conn_get_encoding'" on both Cygwin and
> > Debian ('make' logs attached).
> >
> > On Cygwin, looks like the libiconv library and headers are in the normal
> > lib and include directories -
> >
> > /lib/libiconv.a
> > /lib/libiconv.dll.a
> > /lib/libiconv.la
> > /usr/lib/libiconv.a
> > /usr/lib/libiconv.dll.a
> > /usr/lib/libiconv.la
> >
> > /usr/include/iconv.h
> >
> > I shouldn't need to tell make to go looking for them there, right?
|