Compiling 1.8.3 on Solaris 8

Derek Atkins warlord at MIT.EDU
Thu May 22 11:14:43 CDT 2003


Charles Gagnon <charlesg at unixrealm.com> writes:

> Hey everyone,
> 
> In the 1.8.3 distribution, the configure script uses /bin/sh but has
> some $(...) in it (not supported in /bin/sh). Probably works anyway
> on Linux since /bin/sh is a link to bash. To run configure on
> Solaris, I have to force bash:
> 
>   % bash ./configure
>
> Otherwise it doesn't work.

Yep.  This is unfortunately a problem in the intltool autoconf script.
It's nothing we can change -- we include it by reference.  :(

> Second, I probably have something outdated somewhere but I can't
> shake off this errors. Any ideas?

I noticed this, too.  getc_unlocked does exist in libc, but is not
referenced in any header I could find.  OTOH, I had a local copy of
libintl already installed, but I noticed that the configure script
didn't find it.  What I had to do was:

env CPPFLAGS=-D_nl_domain_bindings=_nl_domain_bindings__ LD=gcc bash ./configure

This would get it to find the locally installed libintl and then it wouldn't
try to build its own version and fail.

> gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DIN_LIBINTL -DHAVE_CONFIG_H -I.. -I.  -I../intl -g -O2 -Wall -Wunused -Werror localcharset.c   -fPIC -o .libs/localcharset.o
> cc1: warnings being treated as errors
> localcharset.c: In function `get_charset_aliases':
> localcharset.c:144: warning: implicit declaration of function `getc_unlocked'
> make[2]: *** [localcharset.lo] Error 1
> make[2]: Leaving directory `/usr/local/src/gnucash-1.8.3/intl'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/gnucash-1.8.3'
> make: *** [all-recursive-am] Error 2

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list