You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Graham Leggett <mi...@sharp.fm> on 2004/07/02 14:34:22 UTC

apr-util build error - xlate.c

Hi all,

While trying to build apr-util from HEAD (as an RPM), the build bombs 
out like so:

/bin/sh /usr/lib/apr/build-1/libtool --silent --mode=compile gcc 
-pthread  -O2 -g -pipe -march=i386 -mcpu=i686 -DHAVE_CONFIG_H -DLINUX=2 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/usr/src/redhat/BUILD/apr-util-1.0.0/include 
-I/usr/src/redhat/BUILD/apr-util-1.0.0/include/private 
-I/usr/include/apr-1    -o xlate/xlate.lo -c xlate/xlate.c && touch 
xlate/xlate.lo
xlate/xlate.c:61: syntax error before "iconv_t"
xlate/xlate.c:61: warning: no semicolon at end of struct or union
xlate/xlate.c: In function `apr_xlate_cleanup':
xlate/xlate.c:91: dereferencing pointer to incomplete type
xlate/xlate.c:91: `iconv_t' undeclared (first use in this function)
xlate/xlate.c:91: (Each undeclared identifier is reported only once
xlate/xlate.c:91: for each function it appears in.)
xlate/xlate.c:92: dereferencing pointer to incomplete type
xlate/xlate.c: In function `check_sbcs':
xlate/xlate.c:119: dereferencing pointer to incomplete type
xlate/xlate.c:129: dereferencing pointer to incomplete type
xlate/xlate.c:129: dereferencing pointer to incomplete type
xlate/xlate.c:130: dereferencing pointer to incomplete type
xlate/xlate.c:131: dereferencing pointer to incomplete type
xlate/xlate.c:132: dereferencing pointer to incomplete type

It bombs out here:

#if APU_HAVE_ICONV
     iconv_t ich; <---
#elif APU_HAVE_APR_ICONV

The platform is Linux (RHEL3).

Anyone know what might be causing this, or is it something stupid I've done?

Regards,
Graham
--

Re: apr-util build error - xlate.c

Posted by Graham Leggett <mi...@sharp.fm>.
Joe Orton wrote:

> iconv.h hasn't been included... probably some configure screwup.  Do you 
> have apr-iconv installed?  If so try removing it and building again.

The problem lay between chair and keyboard - apr-util builds now on RHEL3 :)

Regards,
Graham
--

Re: apr-util build error - xlate.c

Posted by Joe Orton <jo...@redhat.com>.
On Fri, Jul 02, 2004 at 02:34:22PM +0200, Graham Leggett wrote:
> Hi all,
> 
> While trying to build apr-util from HEAD (as an RPM), the build bombs 
> out like so:
> 
> /bin/sh /usr/lib/apr/build-1/libtool --silent --mode=compile gcc 
> -pthread  -O2 -g -pipe -march=i386 -mcpu=i686 -DHAVE_CONFIG_H -DLINUX=2 
> -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
> -I/usr/src/redhat/BUILD/apr-util-1.0.0/include 
> -I/usr/src/redhat/BUILD/apr-util-1.0.0/include/private 
> -I/usr/include/apr-1    -o xlate/xlate.lo -c xlate/xlate.c && touch 
> xlate/xlate.lo
> xlate/xlate.c:61: syntax error before "iconv_t"

iconv.h hasn't been included... probably some configure screwup.  Do you 
have apr-iconv installed?  If so try removing it and building again.