Compiling Geocoder on Cygwin

19 views
Skip to first unread message

Jordi Albornoz Mulligan

unread,
Oct 1, 2010, 6:28:35 PM10/1/10
to GeoCommons Geocoder
Hello,

Has anyone had success compiling the geocoder in Windows using cygwin?

It seems that the prereqs are there (ruby, libsqlite3 and libsqlite3-
devel which includes the sqlite3ext.h, etc.). But I haven't had any
luck with it. When I run make I get:
...
cc -fPIC -shared extension.o wkb_compress.o util.o metaphon.o
levenshtein.o -o libsqlite3_geocoder.so
metaphon.o:metaphon.c:(.text+0x24): undefined reference to
`_sqlite3_malloc'
metaphon.o:metaphon.c:(.text+0x100): undefined reference to
`_sqlite3_free'
metaphon.o:metaphon.c:(.text+0x7f1): undefined reference to
`_sqlite3_free'
collect2: ld returned 1 exit status
...
That's using the Makefile.redhat in the src/libsqlite3_geocoder
directory.

libsqlite3.a seems to have the exports there:
$ nm /lib/libsqlite3.a | grep sqlite3_free
00000810 T _sqlite3_free
00005610 T _sqlite3_free_table

$ nm /lib/libsqlite3.a | grep sqlite3_malloc
00013f50 T _sqlite3_malloc

Thanks.

--
Jordi Albornoz Mulligan
Reply all
Reply to author
Forward
0 new messages