Re: [gmime-devel] Build troubles on Illumos - related to iconv?



On 11/20/2013 10:30 AM, Lou Picciano wrote:
Jeff, tks for getting back. I'd like to get to the bottom of this, this go-around... Am putting in a good 
'college try'; have been digging through email archives - such as Bugzilla - from 10 yrs ago! Is this some 
vestigial Solaris thing?

Have just rebuilt iconv-1.14 (solidifying the chain)...

configure, gmime-2.6.19:

...
checking for iconv... yes
checking for working iconv... no
checking for iconv declaration...
          extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t 
*outbytesleft);
checking preferred charset formats for system iconv... no
not found
         *** The iconv-detect program was unable to determine the
         *** preferred charset formats recognized by your system
         *** iconv library. It is suggested that you install a
         *** working iconv library such as the one found at
         *** ftp://ftp.gnu.org/pub/gnu/libiconv
         ***
         *** Default charset formats will be used.

What does the generated iconv-detect.h look like?  -- Can't find any!

It should be in your build directory (whatever directory you are running the configure script from) and it should look something like this:

/* This is an auto-generated header, DO NOT EDIT! */

#define ICONV_ISO_INT_FORMAT "iso-%u-%u"
#define ICONV_ISO_STR_FORMAT "iso-%u-%s"
#define ICONV_10646 "iso-10646"

The configure script compiles iconv-detect.c in the toplevel source directory of gmime and then runs it to get the format for the various charset names and writes out an iconv-detect.h that gmime references at compile time.

This program is failing for some reason (it might tell you more in the config.log file). For example, you might need to pass the --with-libiconv-prefix option to the configure script.


Yes, #define ICONV_CONST is defined in config.h

make output:  ------------
...
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../gmime -I.. -I../.. -I../../util "-DG_LOG_DOMAIN=\"gmime\"" 
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -g -O2 
-fno-strict-aliasing -MT internet-address.lo -MD -MP -MF .deps/internet-address.Tpo -c ../../gmime/internet-address.c  -fPIC 
-DPIC -o .libs/internet-address.o
   CCLD   libgmime-2.6.la
   CC     gen-table.o
   CCLD   gen-table
   CC     charset-map.o
   CCLD   charset-map
Undefined                       first referenced
  symbol                             in file
libiconv_close                      charset-map.o
libiconv_open                       charset-map.o
libiconv                            charset-map.o
ld: fatal: symbol referencing errors. No output written to charset-map
collect2: error: ld returned 1 exit status

This might be the same reason that the iconv-detect program is failing. If you don't have an iconv-detect.h file, then it suggests that the configure script failed to even compile iconv-detect.c and/or link it with libiconv.so.

Jeff


Lou Picciano


----- Original Message -----
From: "Jeffrey Stedfast" <fejj gnome org>
To: gmime-devel-list gnome org
Sent: Tuesday, November 19, 2013 8:04:17 PM
Subject: Re: [gmime-devel] Build troubles on Illumos - related to iconv?

On 11/19/2013 1:50 PM, Lou Picciano wrote:
Jeff et al,

Having some troubles building v2.6.19 on Illumos. I do have GNU libiconv 1.14 on this system, though its 
'detection' capabilites don't seem to be getting accessed:

Config: checking preferred charset formats for system iconv... no
not found
          *** The iconv-detect program was unable to determine the
          *** preferred charset formats recognized by your system
          *** iconv library. It is suggested that you install a
          *** working iconv library such as the one found at
          *** ftp://ftp.gnu.org/pub/gnu/libiconv
What does the generated iconv-detect.h look like?

For the other error, you might be able to simply add:

#define ICONV_CONST

to config.h or something, although it should be getting detected if it
finds iconv.h

Jeff



_______________________________________________
gmime-devel-list mailing list
gmime-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gmime-devel-list



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]