|
From: Joe R. J. <jj...@cl...> - 2002-10-13 06:38:41
|
On Sat, 12 Oct 2002, Jim Cole wrote:
> Date: Sat, 12 Oct 2002 19:06:08 -0600 (MDT)
> From: Jim Cole <gre...@yg...>
> To: Joe R. Jah <jj...@cl...>
> Cc: Geoff Hutchison <ghu...@ws...>,
htd...@li...
> Subject: Re: [htdig-dev] Mifluz merge 10-10-2002
>
> Joe R. Jah's bits of Fri, 11 Oct 2002 translated to:
>
> >mifluz-merge-20021010:
> >.../htword/.libs/libhtword.so: undefined reference to `libiconv_open'
> >.../htword/.libs/libhtword.so: undefined reference to `libiconv_close'
> >.../htword/.libs/libhtword.so: undefined reference to `libiconv'
> >gmake[1]: *** [htfuzzy] Error 1
> >gmake[1]: Leaving directory `/tmp/htdig/mifluz-merge-20021010/htfuzzy'
> >gmake: *** [all-recursive] Error 1
> >
> >Nothing to run;(
>
> Do you have the iconv library installed in a standard location?
I have installed it in /usr/local, the default location.
> The library base name is the same as the symbol prefixes above
> (i.e. libiconv). It appears that configure checks for iconv, but
> continues along without complaint if it is not found (actually it
> kicks out a message "suggesting" that you install the library).
Configure actually finds it, but it still complains about types conflicts.
> I had to use the --with-libiconv-prefix= option with configure,
> but the errors I ran into when iconv weren't found were different
> than what you report above. In my case, the build failed when the
> iconv header file wasn't found.
In my case the header file was found, but it had types conflicts.
Here is an excerpt from config.log:
-------------------------------8<-------------------------------
configure:21399: checking for iconv
configure:21429: gcc -o conftest -pg -Wall -W -Wmissing-declarations -Wmissing-prototypes -I/usr/local/include -L/usr/local/lib conftest.c >&5
/var/tmp/cctBmmGZ.o: In function `main':
/var/tmp/cctBmmGZ.o(.text+0x22): undefined reference to `libiconv_open'
/var/tmp/cctBmmGZ.o(.text+0x3e): undefined reference to `libiconv'
/var/tmp/cctBmmGZ.o(.text+0x4d): undefined reference to `libiconv_close'
configure:21432: $? = 1
configure: failed program was:
#line 21407 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <iconv.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);
;
return 0;
}
configure:21471: gcc -o conftest -pg -Wall -W -Wmissing-declarations -Wmissing-prototypes -I/usr/local/include -L/usr/local/lib conftest.c -liconv >&5
configure:21474: $? = 0
configure:21477: test -s conftest
configure:21480: $? = 0
configure:21493: result: yes
configure:21501: checking for iconv declaration
configure:21538: gcc -c -pg -Wall -W -Wmissing-declarations -Wmissing-prototypes conftest.c >&5
configure:21516: conflicting types for `libiconv'
/usr/local/include/iconv.h:82: previous declaration of `libiconv'
-------------------------------8<-------------------------------
I am curious why previous mifluz-merge versions compiled, although
identical message was in their config.log files. Any ideas?
Regards,
Joe
--
_/ _/_/_/ _/ ____________ __o
_/ _/ _/ _/ ______________ _-\<,_
_/ _/ _/_/_/ _/ _/ ......(_)/ (_)
_/_/ oe _/ _/. _/_/ ah jj...@cl...
|