[GRASS-de] Problem beim Compilieren von grass51 (gettext-Problem?)
Dirk Hessing
dhess at nefkom.net
So Apr 13 14:54:55 CEST 2003
Hi,
habe mir heute die aktuellen Entwicklerversionen aus dem cvs geholt (cvs co grass / cvs co grass51).
Grass50 läßt sich problemlos übersetzen:
./configure --prefix=/opt/ --bindir=/usr/local/bin --with-postgres-includes="/usr/include/pgsql /usr/include/pgsql/libpq /usr/include/pgsql/server" --with-freetype --with-nls --with-lapack --with-blas --with-readline --with-dbm --with-cxx
make
make install
# place documentation at the right site:
if [ -d "/opt/grass5/documents" ];then
mv /opt/grass5/documents /usr/share/doc/packages/%{name}-%{version}
fi
Das Compilieren von grass51 mit:
echo
echo building grass-5.1...
echo
cd ../grass-5.1
./configure --with-grass50=/usr/src/packages/BUILD/grass-5.0 --prefix=/opt/ --bindir=/usr/local/bin --with-postgres-includes="/usr/include/pgsql /usr/include/pgsql/libpq /usr/include/pgsql/server" --with-freetype --with-nls --with-lapack --with-blas --with-readline --with-dbm --with-cxx
bricht aber mit folgender Fehlermeldung ab:
[...]
make[2]: Entering directory `/usr/src/packages/BUILD/grass-5.1/lib/gis'
gcc -g -O2 -Wall -I/usr/src/packages/BUILD/grass-5.1/include -I/usr/src/packages/BUILD/grass-5.1/dist.i686-pc-linux-gnu/include -I/usr/src/packages/BUILD/grass-5.1/include -I/usr/src/packages/BUILD/grass-5.1/dist.i686-pc-linux-gnu/include \
-o OBJ.i686-pc-linux-gnu/adj_cellhd.o -c adj_cellhd.c
adj_cellhd.c: In function `G_adjust_Cell_head':
adj_cellhd.c:44: error: `PACKAGE' undeclared (first use in this function)
adj_cellhd.c:44: error: (Each undeclared identifier is reported only once
adj_cellhd.c:44: error: for each function it appears in.)
/usr/include/bits/stdio.h: At top level:
/usr/src/packages/BUILD/grass-5.1/include/gis.h:36: warning: `GRASS_copyright' defined but not used
make[2]: *** [OBJ.i686-pc-linux-gnu/adj_cellhd.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/grass-5.1/lib/gis'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/grass-5.1/lib'
make: *** [default] Error 1
----------------------------------------------
adj_cellhd.c:44: return (_("Illegal n-s resolution value"));
alpha:/home/gis/grass/cvs # grep -r 'Illegal n-s resolution value' *
grass/locale/ru/LC_MESSAGES/libgis.po:msgid "Illegal n-s resolution value"
grass/locale/templates/libgis.pot:msgid "Illegal n-s resolution value"
Sieht mir nach einem Problem bei der gettext-Auflösung aus.
Das configure-Script hat nichts beanstandet:
[...]
GRASS is now configured for i686-pc-linux-gnu
Source directory: /usr/src/packages/BUILD/grass-5.1
Build directory: /usr/src/packages/BUILD/grass-5.1
Installation directory: /opt//grass5
C compiler: gcc -g -O2
C++ compiler: c++ -g -O2
FORTRAN compiler: g77
NVIZ: yes
X11 support: yes
DBM support: yes
JPEG support: yes
TIFF support: yes
PNG support: yes
GD support: yes
Tcl/Tk support: yes
PostgreSQL support: yes
MySQL support: no
OpenGL(R) support: yes
ODBC support: yes
FFTW support: yes
BLAS support: yes
LAPACK support: yes
Motif support: no
FreeType support: yes
GLw support: no
NLS support: yes
Readline support: yes
C++ support: yes
PROJ.4 support: yes
------------------------
Gebaut wird unter SuSE Linux 8.2 (build in chroot-Umgebung)
Any hints?