[GRASS5] Darwin: unixODBC

Jeshua Lacock jeshua at SierraMaps.com
Mon Jun 11 02:45:04 EDT 2001


Hi,

Thanks in no small part to Mr. Nick Gorham (the co-author of unixODBC), 
I have built and installed  unixODBC 2.0.7 here.

When I attempt to build the ODBC driver, I get the error "ld: can't 
locate file for: -lodbc".

What might the header look like for the ODBC entries?

Mine is:
ODBCINC             =  -I/usr/local/include
ODBCLIB             =  -L/usr/local/lib

I checked and those are indeed the correct locations that unixODBC was 
installed to.

Any ideas?

Here's the full message:

#################################################################
/usr/src/grass/src/libes/dbmi/drivers/odbc
   make -f OBJ.powerpc-apple-darwin1.3.3/make.rules

gcc  -o /usr/src/grass/dist.powerpc-apple-darwin1.3.3/driver/odbc 
OBJ.powerpc-apple-darwin1.3.3/main.o OBJ.powerpc-apple-
darwin1.3.3/driver.o error.c OBJ.powerpc-apple-darwin1.3.3/listdb.o 
OBJ.powerpc-apple-darwin1.3.3/db.o OBJ.powerpc-apple-
darwin1.3.3/listtab.o OBJ.powerpc-apple-darwin1.3.3/connect.o 
OBJ.powerpc-apple-darwin1.3.3/describe.o OBJ.powerpc-apple-
darwin1.3.3/cursor.o OBJ.powerpc-apple-darwin1.3.3/select.o 
OBJ.powerpc-apple-darwin1.3.3/fetch.o OBJ.powerpc-apple-
darwin1.3.3/execute.o OBJ.powerpc-apple-darwin1.3.3/table.o 
/usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libdbmi.a 
../LIB.powerpc-apple-darwin1.3.3/libstubs.a 
/usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libgis.a  
-I/unixODBC -I/usr/local/include -I/usr/src/grass/src/include  -lodbc  
-I/usr/include  -L/usr/local/lib -lz
/usr/bin/ld: can't locate file for: -lodbc


Thanks,

Jeshua Lacock
Cartographer/Owner
http://SierraMaps.com
http://3dTopoMaps.com
Telephone: (760) 935-4481



More information about the grass-dev mailing list