unresolved symbols with iconv

From: ldg@ulysium.net
Date: Mon Feb 17 2003 - 19:49:52 EST


Hi all,

I've been browsing all the archives and everything I could find about my
problem and didn't find a hint to help me solve it. I even posted on the
apache users list and there seem to be hardly any traffic there.

I'm trying to compile apache2 on tru64 5.1b. I have installed most of the
open source rpms from the cd and it's creating a confusion with iconv.

When trying to compile apache2 (2.0.44) with any of the --enable-static-
options (such as --enable-static-htpasswd), I get errors from unresolved
symbols for iconv, iconv_open and iconv_close, the errors happen I think
when linking, during the "make all in support" part.

If I don't add any --enable-static- options, then it compiles all the way
unless I also add --enable-mem-cache or --enable-asapi, which also cause
other errors but unrelated to iconv (I will try to solve this later).

When it compiles all the way and I try to start it, the error from the
unresolved symbol on iconv happens then.

I also tried compiling the latest gcc and it has the same problem with
iconv.

A little more poking around made me think there must be some kind of
confusion with the iconv libraries, due to the fact that an other set of
headers/libs was added by the open source packages, so I do have an iconv.h
in both /usr/include and /usr/local/include and there is a libiconv.a in
both /usr/ccs/lib and /usr/local/lib (and probably more duplicate files
involved with iconv).

I'm not a C programmer and I wouldn't know what to do to fix this.
What I'm wondering is if it's actually possible to let both versions of
iconv coexist on the system, or do I have to remove an instance of them and
how to go about this.

Is there any way to prevent this confusion, short of removing something, so
I can compile things properly?

I have a few more issues to resolved but I'll start with this one, thanks to
all in advance for any helpful hints..

-- 
mailto:dg@ulysium.net


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:08 EDT