I got a successful build of 0.9.4.1 from source.  However, I had to make
one minor patch, because ICONV_CONST is defined differently in the two
different places where it's defined (abi/src/af/util/xp/ut_types.h and
wv/config.h).

wv/config.h contains:

#ifdef ICONV_REQUIRES_CONST
#define ICONV_CONST const
#else
#define ICONV_CONST
#endif

which is fine.  However, abi/src/af/util/xp/ut_types.h contains this code:

#if defined (WIN32) || defined(__QNXNTO__) ||  \
(defined (__MACH__) && defined (__APPLE__)) || \
(defined(TARGET_OS_MAC) && TARGET_OS_MAC) || \
defined(__BEOS__) || defined (__AIX__) || \
(defined(__linux__) && defined(__powerpc__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 
1))

#define ICONV_CONST const
#else
#define ICONV_CONST
#endif

This code makes the assumption that, on Linux, ICONV_CONST should be const
only when the glibc version is strictly less than 2.2 *AND* the hardware
platform is powerpc.  This last assumption appears not to be correct.  It
was necessary to remove the '&& defined(__powerpc__)' term to obtain a
successful build on a Slackware 7.0-based machine.  I suspect the powerpc
test is probably surplus to requirements on most, if not all, Linux
installations.

As a further note, this system already had libpng-1.0.5 installed, but 
Abiword would not link against it.  Configure insisted on using the system 
installed libpng rather than that included with Abiword, though.  Updating 
to libpng-1.2.0 solved the problem, but the configure behavior in this 
case should probably be examined.  Not all users will necessarily have the 
choice of updating the system libpng.


-- 
  *********  Fight Back!  It may not be just YOUR life at risk.  *********
  phil stracchino   ::   [EMAIL PROTECTED]   ::   [EMAIL PROTECTED]
    unix ronin     ::::   renaissance man   ::::   mystic zen biker geek
     2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
       Linux Now! ...because friends don't let friends use Microsoft.

-----------------------------------------------
To unsubscribe from this list, send a message to
[EMAIL PROTECTED] with the word
unsubscribe in the message body.

Reply via email to