Makefile bug

ldjohn at u... ldjohn at u...
Thu Jan 31 11:56:03 EST 2002


Hello Frank,

One of our team members had a problem with a fresh build of GDAL. Here is
the error:

ld32: WARNING 84 : ../ogrsf_frmts.a is not used for resolving any symbol.
ld32: FATAL 9 : I/O error (../../ogr.a): No such file or directory
make[3]: *** [gmlview] Error 2
make[3]: Leaving directory 
`/sg1/csb/tbeckman/las/newio/gdal/ogr/ogrsf_frmts/gml'
make[2]: *** [default] Error 2
make[2]: Leaving directory 
`/sg1/csb/tbeckman/las/newio/gdal/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/sg1/csb/tbeckman/las/newio/gdal/ogr'
make: *** [ogr-target] Error 2

Looking at the gdal/ogr/GNUmakefile, it appears that the ogrsf_frmts
directory is built before ogr.a, but stuff in the newly-added gml
directory wants to link with ../../ogr.a.

So here is the proposed patch:

gdal/ogr/GNUmakefile
66c66
< $(FRMTS_LIB):
---
> $(FRMTS_LIB): $(OGR_LIB)

It seems to work for us.

By the way, my work on the GDAL interface is coming to a close, so that
work will be passed to a teammate from whom you will probably be hearing
in the near future.

Thanks for all of you help!


Lowell
-- 
--------------------------------------------------
Lowell D. Johnson ldjohn at u...
Software Engineering
Raytheon Systems
EROS Data Center
47914 252nd Street, Mundt Federal Bldg
Sioux Falls, SD 57198
--------------------------------------------------








More information about the Gdal-dev mailing list