[GRASS-dev] v.what compiling error
William Kyngesburye
woklist at kyngchaos.com
Fri Aug 24 10:25:03 EDT 2007
No problems here.
The obvious: I see you did "make clean" in the v.what dir. What
about make clean the whole GRASS source?
I have exactly the same warnings at the end, AND NO MORE. The only
difference with my compile is that I use different optimization
settings. I turn off debug symbols and optimize with Apple's
default, -Os. Before configuring:
export CFLAGS=-Os
export CXXFLAGS=-Os
I don't know if that could affect the link step (that long gcc line).
On Aug 24, 2007, at 1:22 AM, Michael Barton wrote:
> Well, I just updated and recompiled from the cvs and v.what won't
> compile. I'll list the error below.
>
> ========= v.what compile error ===============
>
> cmb-MBP:~/grass_dev/grass6/vector/v.what cmbarton$ make clean
> rm -rf OBJ.i686-apple-darwin8.10.1
> cmb-MBP:~/grass_dev/grass6/vector/v.what cmbarton$ make
> gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/
> include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/
> include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/
> grass6/dist.i686-apple-darwin8.10.1/include \
> -o OBJ.i686-apple-darwin8.10.1/main-1.12work.o -c
> main-1.12work.c
> gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/
> include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/
> include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/
> grass6/dist.i686-apple-darwin8.10.1/include \
> -o OBJ.i686-apple-darwin8.10.1/main.o -c main.c
> gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/
> include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/
> include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/
> grass6/dist.i686-apple-darwin8.10.1/include \
> -o OBJ.i686-apple-darwin8.10.1/what.o -c what.c
> gcc -L/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/
> lib -I/Library/Frameworks/GDAL.framework/unix/include -
> DPACKAGE=\""grassmods"\" -o /Users/cmbarton/grass_dev/grass6/
> dist.i686-apple-darwin8.10.1/bin/v.what OBJ.i686-apple-darwin8.10.1/
> main-1.12work.o OBJ.i686-apple-darwin8.10.1/main.o OBJ.i686-apple-
> darwin8.10.1/what.o -lgrass_display -lgrass_gis -lgrass_datetime -
> lz -lgrass_raster -lgrass_pngdriver -lgrass_driver -lgrass_gis -
> lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/
> unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -
> L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz -
> lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
> -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -
> liconv -lgrass_gis -lgrass_datetime -lz -lgrass_driver -
> lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/
> FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -
> lgrass_datetime -lz -lgrass_raster -lgrass_pngdriver -
> lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/
> Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -
> lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/
> UnixImageIO.framework/unix/lib -lpng -lz -lgrass_psdriver -
> lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/
> Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -
> lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis -
> lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/
> unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz
> -lgrass_vect -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz
> -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -
> lz -lgrass_gis -lgrass_datetime -lz -lgrass_dgl -
> lgrass_dig2 -lgrass_gis -lgrass_datetime -lz -lgrass_rtree -
> lgrass_gis -lgrass_datetime -lz -lgrass_linkm -lgrass_rtree -
> lgrass_dig2 -lgrass_gis -lgrass_datetime -lz -lgrass_rtree -
> lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -
> lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -
> lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -
> lgrass_datetime -lz -L/Library/Frameworks/GDAL.framework/unix/
> lib -lgdal -lgrass_form -lgrass_dbmibase -lgrass_gis -
> lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -
> lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -
> lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -
> lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -
> lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -
> lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lz
> /usr/bin/ld: multiple definitions of symbol _main
> OBJ.i686-apple-darwin8.10.1/main-1.12work.o definition of _main in
> section (__TEXT,__text)
> OBJ.i686-apple-darwin8.10.1/main.o definition of _main in section
> (__TEXT,__text)
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_rtree.dylib(gammavol.o) definition of _main
> /usr/bin/ld: warning multiple definitions of symbol _init_color_table
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_psdriver.dylib(Color_table.o) definition of _init_color_table
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_pngdriver.dylib(Color_table.o) definition of
> _init_color_table
> /usr/bin/ld: warning multiple definitions of symbol _true_color
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_pngdriver.dylib(Graph_set.o) definition of _true_color
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_psdriver.dylib(Graph_set.o) definition of _true_color
> /usr/bin/ld: warning multiple definitions of symbol _file_name
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_pngdriver.dylib(Graph_set.o) definition of _file_name
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_psdriver.dylib(Graph_set.o) definition of _file_name
> /usr/bin/ld: warning multiple definitions of symbol _height
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_pngdriver.dylib(Graph_set.o) definition of _height
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_psdriver.dylib(Graph_set.o) definition of _height
> /usr/bin/ld: warning multiple definitions of symbol _width
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_pngdriver.dylib(Graph_set.o) definition of _width
> /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_psdriver.dylib(Graph_set.o) definition of _width
> /usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding
> may result in errors or different symbols being used
> symbol _init_color_table used from dynamic library /Users/cmbarton/
> grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/
> libgrass_psdriver.dylib(Color_table.o) not from earlier dynamic
> library /Applications/Grass/GRASS-6.3.app/Contents/Resources/lib/
> libgrass_pngdriver.dylib(Color_table.o)
> collect2: ld returned 1 exit status
> make: *** [/Users/cmbarton/grass_dev/grass6/dist.i686-apple-
> darwin8.10.1/bin/v.what] Error 1
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
[Trillian] What are you supposed to do WITH a maniacally depressed
robot?
[Marvin] You think you have problems? What are you supposed to do
if you ARE a maniacally depressed robot? No, don't try and answer,
I'm 50,000 times more intelligent than you and even I don't know the
answer...
- HitchHiker's Guide to the Galaxy
More information about the grass-dev
mailing list