Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[DXR] Fix for undefined symbol: sqlite3_auto_extension

17 views
Skip to first unread message

Negreanu Marius

unread,
May 29, 2012, 3:14:35 PM5/29/12
to dev-stati...@lists.mozilla.org
Hi,

While compiling git master dxr, I get
Could not load tokenizer:
/home/mariusn/workspace/code-indx/dxr/sqlite/libdxr-code-tokenizer.so:
undefined symbol: sqlite3_auto_extension
which is caused by linker option ordering (see below)

diff --git a/sqlite/Makefile b/sqlite/Makefile
index 3121138..2c9693b 100644
--- a/sqlite/Makefile
+++ b/sqlite/Makefile
@@ -5,7 +5,7 @@ LDFLAGS := `pkg-config --libs sqlite3`
$(CC) $(CFLAGS) -c $^ -o $@ -fPIC

libdxr-code-tokenizer.so: code-tokenizer.o
- $(CC) $(LDFLAGS) $^ -o $@ -shared
+ $(CC) $^ $(LDFLAGS) -o $@ -shared

clean:
rm -rf *.o libdxr-code-tokenizer.so


--
Regards!
http://groleo.wordpress.com

Ehsan Akhgari

unread,
May 29, 2012, 4:45:14 PM5/29/12
to Negreanu Marius, dev-stati...@lists.mozilla.org
Great! Could you please submit this as a pull request to
https://github.com/mozilla/dxr?

Thanks!
--
Ehsan
<http://ehsanakhgari.org/>
0 new messages