[GRASS-dev] compilation of grass on solaris

hi,

i try to get GRASS 6.2.2. running on SunOS os-wrk2 5.10
Generic_118833-20 sun4u sparc SUNW,A70 but the compilation failes

./configure --with-postgres-includes=/usr/include/pgsql/
--with-fftw-includes=/usr/local/ --with-freetype
--with-freetype-includes=/usr/local/include/freetype2/ --with-cxx
--srcdir=`pwd` --with-fftw-libs=/usr/local/lib/ --with-fftw=no
--with-png-libs=/usr/local/lib
--with-zlib-includes=/usr/local/include/
--with-zlib-libs=/usr/local/lib/
--with-gdal=/usr/local/bin/gdal-config --with-nls --without-opendwg

make
[error in many modules]

cd lib/init

make

gcc -L/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib
-Wl,-R,/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib
  -o /export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/etc/set_data
OBJ.sparc-sun-solaris2.10/set_data.o
OBJ.sparc-sun-solaris2.10/mke_mapset.o
OBJ.sparc-sun-solaris2.10/mke_loc.o
OBJ.sparc-sun-solaris2.10/chk_dbase.o
OBJ.sparc-sun-solaris2.10/other.o -lgrass_edit -lgrass_gis
-lgrass_datetime -lnsl -I/usr/local/include/ -L/usr/local/lib/ -lz
-lsocket -lgrass_vask -lgrass_gis -lgrass_datetime -lnsl
-I/usr/local/include/ -L/usr/local/lib/ -lz -lsocket
-lgrass_datetime -lgrass_vask -lncurses -lm -lnsl
-I/usr/local/include/ -L/usr/local/lib/ -lz
Undefined first referenced
symbol in file
initscr32
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib/libgrass_vask.so
w32addch
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib/libgrass_vask.so
ld: fatal: Symbol referencing errors. No output written to
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/etc/set_data
collect2: ld returned 1 exit status
make: *** [/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/etc/set_data]
Error 1

echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/sfw/lib/:/usr/lib/:/usr/xpg4/lib/

could anybody give me a hint, how to approach?

thanks

jachym
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Hi Jachym,

this is related to (n)curses.
I found this thread:

http://www.webservertalk.com/archive100-2005-9-1216600.html
"...
When configuring Mutt, Mutt doesn't find the <ncurses.h> because the
new version of ncurses install this header under <ncurses/ncurses.h>
(at least, under Solaris).
...
"

I dunno, but maybe check in this direction.

Ah, even better of course searching in this list:
http://www.nabble.com/Grass-6.0cvs-21-05-2005-on-Solaris-Sparc-tf30910.html#a92096
http://www.nabble.com/-GRASS5--binaries-for-5.0.3---1-for-testing-(Linux)%2C-2-(Sun%2CMac)-problems-tf3093099.html#a8586854

Markus

Jachym Cepicky-4 wrote:

hi,

i try to get GRASS 6.2.2. running on SunOS os-wrk2 5.10
Generic_118833-20 sun4u sparc SUNW,A70 but the compilation failes

./configure --with-postgres-includes=/usr/include/pgsql/
--with-fftw-includes=/usr/local/ --with-freetype
--with-freetype-includes=/usr/local/include/freetype2/ --with-cxx
--srcdir=`pwd` --with-fftw-libs=/usr/local/lib/ --with-fftw=no
--with-png-libs=/usr/local/lib
--with-zlib-includes=/usr/local/include/
--with-zlib-libs=/usr/local/lib/
--with-gdal=/usr/local/bin/gdal-config --with-nls --without-opendwg

make
[error in many modules]

cd lib/init

make

gcc
-L/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib

-Wl,-R,/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib
  -o
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/etc/set_data
OBJ.sparc-sun-solaris2.10/set_data.o
OBJ.sparc-sun-solaris2.10/mke_mapset.o
OBJ.sparc-sun-solaris2.10/mke_loc.o
OBJ.sparc-sun-solaris2.10/chk_dbase.o
OBJ.sparc-sun-solaris2.10/other.o -lgrass_edit -lgrass_gis
-lgrass_datetime -lnsl -I/usr/local/include/ -L/usr/local/lib/ -lz
-lsocket -lgrass_vask -lgrass_gis -lgrass_datetime -lnsl
-I/usr/local/include/ -L/usr/local/lib/ -lz -lsocket
-lgrass_datetime -lgrass_vask -lncurses -lm -lnsl
-I/usr/local/include/ -L/usr/local/lib/ -lz
Undefined first referenced
symbol in file
initscr32
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib/libgrass_vask.so
w32addch
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/lib/libgrass_vask.so
ld: fatal: Symbol referencing errors. No output written to
/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/etc/set_data
collect2: ld returned 1 exit status
make: ***
[/export/home/meteo/src/grass/grass-6.3.cvs_src_snapshot_2007_08_25/dist.sparc-sun-solaris2.10/etc/set_data]
Error 1

echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/sfw/lib/:/usr/lib/:/usr/xpg4/lib/

could anybody give me a hint, how to approach?

thanks

jachym
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

--
View this message in context: http://www.nabble.com/compilation-of-grass-on-solaris-tf4340879.html#a12367417
Sent from the Grass - Dev mailing list archive at Nabble.com.