[sylpheed:34395] Re: FreeBSD and Iconv

heymanj at acm.org heymanj at acm.org
Tue Jan 25 11:34:53 JST 2011


On 25 January 2011 at 3:13, Silvio Siefke <siefke_listen at web.de>wrote:

> Hello,
> 
> i try to install Sylpheed from the sourcen direct, because in the
> FreeBSD Ports is Version 1.
> 
> What i not understand, when i run the ./configure Script, come the
> message that libiconv not install. But i know it is install.
> 
> freebsd# pkg_info | grep iconv
> libiconv-1.13.1_1
> p5-Text-Iconv-1.7
> psiconv-0.9.8_1
> 
> 
> So i started the make, but thats end in:
> 
> - -DSYSCONFDIR=\"/usr/local/etc\" -DLOCALEDIR=\"/usr/local/share/locale\"
> - -g -O2 -D_REENTRANT -I/usr/local/include/glib-2.0
> - -I/usr/local/lib/glib-2.0/include -MT codeconv.lo -MD -MP -MF
> .deps/codeconv.Tpo -c codeconv.c  -fPIC -DPIC -o .libs/codeconv.o
> codeconv.c: In function 'conv_iconv_strdup_with_cd':
> codeconv.c:1566: error: 'ICONV_CONST' undeclared (first use in this
> function)
> codeconv.c:1566: error: (Each undeclared identifier is reported only once
> codeconv.c:1566: error: for each function it appears in.)
> codeconv.c:1566: error: expected ')' before 'gchar'
> *** Error code 1
> 
> Stop in /tmp/sylpheed-3.1.0rc/libsylph.
> *** Error code 1
> 
> Stop in /tmp/sylpheed-3.1.0rc/libsylph.
> *** Error code 1
> 
> Stop in /tmp/sylpheed-3.1.0rc.
> *** Error code 1
> 
> Stop in /tmp/sylpheed-3.1.0rc.
> 
> Im not really sure what i can do now.

ICONV_CONST value is created during the 'configure' process.  On my 
Linux system, I have the following in config.h

/* Define as const if the declaration of iconv() needs const. */
#define ICONV_CONST

Basically it's a no-op for Linux.  Check the parameters to the implementation
of the iconv() function on your BSD system.  You can always hand edit the
config.h file to the above or whatever value you need it to be for the first
parameter to the function.

> Thanks for help.
> 
> 
> Regards
> Silvio

jerry
       //  Jerry Heyman           | "Congress does not draw to its halls
      //   Amiga Forever :-)      | those who love liberty, it draws those
  \\ //    heymanj at acm dot org | who love power." Judge Andrew Napolitano
   \X/     http://www.hobbeshollow.com


More information about the Sylpheed mailing list