On Thu, Aug 03, 2006 at 12:03:14PM +0100, Keith Bennett wrote:
> On Thu, Aug 03, 2006, Nick White wrote:
> > I couldn't get libkarma-0.0.5 to compile - it kept complaining about
> > "undefined reference to `libiconv'"
> > 
> > I have libiconv 0.9.2 and gcc 3.4.5, and tried compiling with just "make
> > all".
> 
> Do you mean libiconv-1.9.2 ? 0.9.2 must be awfully old by now.

Sorry, yes, I meant libiconv-1.9.2.

> At any rate, it sounds like the library is not being found. If libiconv
> is installed as a separate package on your machine then there is most
> likely a libiconv.a file located on your system somewhere. You need to
> add the full pathname for this to your makefile. This is most easily
> done by changing the LDFLAGS line in tools/Makefile.
> 
> Something like:
> 
> LDFLAGS+=-ltag_c -lz /usr/local/lib/libiconv.a
> 
> Hope this helps.
> 
> Keith.
> 

Well, I upgraded gcc (to 3.4.6), as well as glibc and all the related 
packages, no difference. I compiled my own libiconv; no difference. I tried
adding /usr/lib/libiconv.a (where the file is on my system) to the Makefile,
but nothing.

So, I went for the nasty hack approach; I changed the #include <iconv> in
src/utf.c to #include "iconv2.h", copying /usr/include/iconv.h to
src/iconv2.h, and it worked.

I'm bumbling along reasonably unaware of why this worked, so if it reveals
why it wasn't working normally I'd be pleased to know.

As I said previously, my computer is somewhat of a mess, so I suspect I broke
something a long time ago and am now paying the price. Such is the price of
discovery.

Thanks,

Nick

Attachment: pgpr0RaxdmmEV.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to