[GRASS5] Autoconf problems, Grass 5.1 solaris 8 sparc

cheg01 at attbi.com cheg01 at attbi.com
Sat Mar 15 18:38:44 EST 2003


----- Original Message -----
From: "Glynn Clements" <glynn.clements at virgin.net>
To: <cheg01 at attbi.com>
Cc: "grass5 developers list" <grass5 at grass.itc.it>
Sent: Saturday, March 15, 2003 12:32 PM
Subject: Re: [GRASS5] Autoconf problems, Grass 5.1 solaris 8 sparc


>
> cheg01 at attbi.com wrote:
>
> > I decided to enable everything in the configure script and I cannot get
3
> > of the optional libraries to work.
>
> Look in error.log. In all three cases, the problem is almost certainly
> because the library which is being checked requires some other library
> which configure hasn't been told about.
>

Yes, there are missing dependencies.

For GLw, I edited configure line 11229 to include "-lm" in the LIBS.
Apparently it is needed by libGLu.

For MySQL, I edited line 9521 in configure to include "-lm -lresolv" in
LIBS. The need for libresolv may be unique to Solaris.

For Readline, I added "-lncurses" on line 5347. That fixed several errors,
but I still get some errors in readline:

configure:5361: gcc -o conftest -g -Wall
   conftest.c -lreadline  -lncurses  1>&5
/usr/local/lib/libreadline.so: In function `_init':
/usr/local/lib/libreadline.so(.init+0x0): multiple definition of `_init'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crti.o(.init+0x0): first
defined here
/usr/local/lib/libreadline.so: In function `_start':
/usr/local/lib/libreadline.so(.text+0x0): multiple definition of `_start'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crt1.o(.text+0x0): first
defined here
/usr/local/lib/libreadline.so: In function `_fini':
/usr/local/lib/libreadline.so(.fini+0x0): multiple definition of `_fini'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crti.o(.fini+0x0): first
defined here
/usr/local/lib/libreadline.so(.rodata+0x0): multiple definition of
`_lib_version'
/usr/ccs/lib/values-Xa.o(.rodata+0x0): first defined here
collect2: ld returned 1 exit status
configure: failed program was:
#line 5350 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }






More information about the grass-dev mailing list