Re: [greenstone-devel] Configure Problems

From John R. McPherson
DateMon, 20 Dec 2004 16:02:50 +1300
Subject Re: [greenstone-devel] Configure Problems
In-Reply-To (5-2-0-9-2-20041217174135-031e7428-psulias-psu-edu)
On Sat, 2004-12-18 at 12:14, Kurt Baker wrote:
> Hello Greenstone developers:
> We are attempting to install Greenstone from the source code on
> Solaris 9 SPARC. With some help from this list, we managed the configure
> step and have made some progress with the make. The latest snafu is all
> the wide-character functions (wmemmove, wmemcpy ...) are undefined using
> Gnu g++. (man pages include all of these wide character functions). We
> currently are using the Sun ld which is configured with NLS disabled which
> may be part of the problem. Several questions follow.

The man page for wmemcpy says that you need to #include <wchar.h>.
I'm not sure why those functions are causing problems during your
compile because greenstone doesn't use wmemmove/wmemcpy etc functions,
so I'm guessing its something to do with the header files on your
installation. I'd suggest it might be a bug in the solaris distribution
of gcc/g++ if their std header files are referencing these functions
without including the header files of their prototypes.

Someone else recently had problems on solaris during the linking of
greenstone that they resolved:

> We found that the problem was ultimately with the linker. My path
> was set up so that the linker which was used was in /usr/ucb
> rather than the Solaris version in /usr/ccs/bin/ld. When I changed
> this, the problem vanished and Greenstone has since compiled.

> Is there anybody out there that has built Greenstone on Solaris 9 SPARC
> that can advise of the "work arounds" that are needed?
> Is a Linux box an easier installation process for Greenstone?

The greenstone team develop greenstone on linux, using the GNU
toolchain. We do not have any solaris machines in our department
anymore, although occasionally I test greenstone releases on
sourceforge's solaris 9 machine. They have all the gnu tools installed
on them, though, so might not reflect the typical solaris install.

John McPherson