[Refdb-users] undefined refs to _iconv on Cygwin
Status: Beta
Brought to you by:
mhoenicka
|
From: Michael S. <sm...@xm...> - 2004-01-26 14:05:28
|
Hi Markus,
You wrote:
> Hi Mike,
>
> you're facing two problems:
>
> - you're using an outdated libdbi version. The whole character
> conversion stuff relies on a libdbi function that I've added to the
> latest release only. You'll have to install libdbi-0.7.2 and
> libdbi-drivers-0.7.1 before RefDB will compile.
Oops -- OK, sorry for the noise about that one. I'll update my kit.
> - for some reason, configure does not perform the libiconv test
> properly. The ld commands show that there's no attempt to link
> against libiconv, hence the unresolved iconv* function calls. Could
> you please check what configure says about libiconv?
I've attached the whole config.log file. The relevant portion seems to be:
configure:1825: gcc -o conftest -L/usr/local/lib conftest.c -lz 1>&5
configure:1848: checking for library containing iconv
configure:1866: gcc -o conftest -L/usr/local/lib conftest.c 1>&5
/tmp/ccc0H8V0.o(.text+0x1f):conftest.c: undefined reference to `_iconv'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1855 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char iconv();
int main() {
iconv()
; return 0; }
configure:1888: gcc -o conftest -L/usr/local/lib conftest.c -liconv 1>&5
/tmp/ccy8e5Fc.o(.text+0x1f):conftest.c: undefined reference to `_iconv'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1877 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char iconv();
int main() {
iconv()
; return 0; }
> I've tested the latest prerelease on FreeBSD 4.7 and Debian 3.0
> without any problems. I hope we can resolve these issues on the other
> platforms asap.
This one definitely seems to be a Cygwin-specific problem. The only
problem I saw on Debian was because I hadn't updated my libdbi install.
--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?
|