Mac OS X compile problem in 0.5 and 0.6pre1
I run into two similar problems trying to compile either 0.5 or 0.6pre1 on
my Mac OS X (10.4) system: mdb_backends multiply defined.
With 0.5, I get:
gcc -dynamiclib -flat_namespace -undefined suppress -o
.libs/libmdb.0.0.0.dylib catalog.lo mem.lo file.lo kkd.lo table.lo data.lo
dump.lo backend.lo money.lo sargs.lo index.lo like.lo write.lo stats.lo
-L/opt/local/lib -lglib-2.0 -lintl -liconv -lc -install_name
/usr/local/lib/libmdb.0.dylib -compatibility_version 1 -current_version 1.0
ld: multiple definitions of symbol _mdb_backends
catalog.lo definition of _mdb_backends in section (__DATA,__common)
mem.lo definition of _mdb_backends in section (__DATA,__common)
file.lo definition of _mdb_backends in section (__DATA,__common)
kkd.lo definition of _mdb_backends in section (__DATA,__common)
table.lo definition of _mdb_backends in section (__DATA,__common)
data.lo definition of _mdb_backends in section (__DATA,__common)
backend.lo definition of _mdb_backends in section (__DATA,__common)
money.lo definition of _mdb_backends in section (__DATA,__common)
sargs.lo definition of _mdb_backends in section (__DATA,__common)
index.lo definition of _mdb_backends in section (__DATA,__common)
write.lo definition of _mdb_backends in section (__DATA,__common)
stats.lo definition of _mdb_backends in section (__DATA,__common)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit
command failed
make: *** [libmdb.la] Error 1
With 0.6pre1 I get:
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -g -O2 -DSQL -DUNIXODBC -MT backend.lo -MD -MP -MF
.deps/backend.Tpo -c backend.c -fno-common -DPIC -o .libs/backend.o
backend.c:31: error: static declaration of 'mdb_backends' follows non-static
declaration
../../include/mdbtools.h:150: error: previous declaration of 'mdb_backends'
was here
make[2]: *** [backend.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
What should I do differently?
I checked the archives and it looks like this has been encountered in the
past but fixed. Any help will be appreciated. Thank you.
Regards,
David.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
mdbtools-dev mailing list
mdbtools-dev@...
https://lists.sourceforge.net/lists/listinfo/mdbtools-dev