[GRASS-user] Compiling weekly source; two make errors
Seth Price
seth at pricepages.org
Wed Jun 24 20:42:42 EDT 2009
I'm having two errors while compiling. The first is "no rule to make
target", so perhaps something wrong with the build system? The second is a
missing include file, which is odd because it's there. I'm not exactly
sure what to make of it. (see the last few commands in the included log)
Am I doing anything wrong?
Thanks,
Seth
$ ./configure --enable-shared --prefix=/Applications --enable-macosx-app
--with-opengl=aqua --with-freetype-includes=/usr/local/include/freetype2
&& make && sudo make install
checking host system type... i386-apple-darwin9.7.0
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
[...]
creating include/config.h
include/config.h is unchanged
Copying config.status to config.status.i386-apple-darwin9.7.0
GRASS is now configured for: i386-apple-darwin9.7.0
Source directory:
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20
Build directory:
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20
Installation directory: ${prefix}/GRASS-7.0.app/Contents/MacOS
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -g -O2
C++ compiler:
Building shared libraries: yes
64bit support: no
OpenGL platform: Aqua
MacOSX application: yes
NVIZ: yes
BLAS support: no
C++ support: no
Cairo support: yes
DWG support: no
FFMPEG support: no
FFTW support: yes
FreeType support: yes
GDAL support: yes
GEOS support: no
JPEG support: yes
LAPACK support: no
Large File support (LFS): yes
MySQL support: no
NLS support: no
ODBC support: no
OGR support: yes
OpenGL support: yes
PNG support: yes
PostgreSQL support: no
Python support: no
Readline support: no
SQLite support: no
Tcl/Tk support: yes
wxWidgets support: no
TIFF support: yes
X11 support: yes
Regex support: yes
POSIX thread support: no
test -d
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0
|| mkdir -p -m 755
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0
[...]
VERSION_NUMBER=7.0.svn
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/tools/g.html2man.py
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/docs/html/r.li.patchnum.html
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/man/man1/r.li.patchnum.1
rm r.li.patchnum.tmp.html
make -C r.li.setup || echo
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.setup
>> /usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/error.log
make[3]: *** No rule to make target
`/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/scripts/r.li.setup',
needed by `script'. Stop.
make -C r.li.shape || echo
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.shape
>> /usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/error.log
test -d OBJ.i386-apple-darwin9.7.0 || mkdir -p OBJ.i386-apple-darwin9.7.0
[...]
gcc
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-g -O2
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\"\"
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-o OBJ.i386-apple-darwin9.7.0/togl.o -c togl.c
In file included from togl.c:53:
/usr/include/tkMacOSX.h:19:19: error: tkInt.h: No such file or directory
In file included from /usr/include/tkMacOSX.h:32,
from togl.c:53:
/usr/include/tkPlatDecls.h:107: error: syntax error before * token
/usr/include/tkPlatDecls.h:152: error: syntax error before * token
togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
togl.c:265: error: syntax error before XVisualInfo
togl.c:265: warning: no semicolon at end of struct or union
togl.c:271: error: syntax error before } token
togl.c:310: error: invalid use of incomplete typedef Togl
togl.c:313: error: invalid use of incomplete typedef Togl
[...]
GRASS GIS compilation log
-------------------------
Started compilation: Wed Jun 24 17:35:32 MDT 2009
--
Errors in:
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.setup
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/visualization/nviz
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Wed Jun 24 17:43:24 MDT 2009
make: *** [default] Error 1
$ locate tkMacOSX.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/tkMacOSX.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
/Developer/SDKs/MacOSX10.5.sdk/usr/include/tkMacOSX.h
/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
/usr/include/tkMacOSX.h
$ ls -l /usr/include/tkMacOSX.h
lrwxr-xr-x 1 root wheel 76 Apr 10 16:51 /usr/include/tkMacOSX.h ->
../../System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
$ locate tkInt.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk-private/tkInt.h
/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk-private/tkInt.h
More information about the grass-user
mailing list