[GRASS5] GRASS 5.1: MacOSX compilation?

Markus Neteler neteler at itc.it
Fri Aug 22 07:50:09 EDT 2003


Hi again,

the *current* 5.1 CVS contains new updates to compile 5.1 on Mac OSX.
Run
 make distclean
before re-trying.

Now all libraries compile except
lib/db/sqlp

gcc -fno-common -L/sw/lib
-L/Users/markus/grass51exp/dist.powerpc-apple-darwin6.6/lib    -dynamiclib
-flat_namespace
-undefined suppress -fno-common -L/sw/lib
-L/Users/markus/grass51exp/dist.powerpc-apple-darwin6.6/lib      \
        OBJ.powerpc-apple-darwin6.6/alloc.o
OBJ.powerpc-apple-darwin6.6/print.o OBJ.powerpc-apple-darwin6.6/sql.o
OBJ.powerpc-apple-darwin6.6/lex.yy.o OBJ.powerpc-apple-darwin6.6/y.tab.o  -o
/Users/markus/grass51exp/dist.powerpc-apple-darwin6.6/lib/libgrass_sqlp.dylib
ld: multiple definitions of symbol _sqlpStmt
OBJ.powerpc-apple-darwin6.6/alloc.o definition of _sqlpStmt in section (__DATA,__common)
OBJ.powerpc-apple-darwin6.6/print.o definition of _sqlpStmt in section (__DATA,__common)
OBJ.powerpc-apple-darwin6.6/sql.o definition of _sqlpStmt in section (__DATA,__common)
/usr/bin/libtool: internal link edit command failed

If I make sqlpStmt in
include/sqlp.h
extern, it compiles, but then fails in
db/drivers/dbf/

Same story there in db/drivers/dbf/ with
 db
 errMsg
 drv_mode
variables. Should MAIN be defined somewhere? The same problem may apply to
Linux where 'gcc' seems to catch it somehow.

Markus




More information about the grass-dev mailing list