[redland-dev] mingw rasqal compilation failure

Cheen Qian qianc at vmware.com
Mon Sep 19 22:51:00 CEST 2011


Hi,
I ran into a rasqal compilation error against raptor2 lib.
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2 `pkg-config raptor2 --lib
s`  -o roqet.exe roqet.o  ../src/librasqal.la
libtool: link: gcc -g -O2 -o .libs/roqet.exe roqet.o  -LE:/MinGW/msys/1.0/local/
lib -L/e/toolchain/win32/curl-7.17.0-vc80/bin -L/e/toolchain/win32/expat-1.95.8-
vc80/bin -L/e/toolchain/win32/libxml2-2.6.30-vc80/bin ../src/.libs/librasqal.a /
usr/local/lib/libraptor2.a -lcurl -lexpat -lxml2
roqet.o: In function `roqet_graph_pattern_walk':
e:\rasqal-0.9.20\utils/roqet.c:223: undefined reference to `_imp__raptor_sequenc
e_size'
roqet.o: In function `roqet_log_handler':
e:\rasqal-0.9.20\utils/roqet.c:149: undefined reference to `_imp__raptor_locator
_print'
roqet.o: In function `main':

but I am sure that raptor_sequence_size is defined in libraptor2.a, see below.
bash-3.1$ nm /usr/local/lib/libraptor2.a | grep raptor_sequence_size
         U _raptor_sequence_size
00000218 T _raptor_sequence_size
         U _raptor_sequence_size
         U _raptor_sequence_size
         U _raptor_sequence_size

I don't know why the linker is searching for _imp__raptor_sequence_size instead?
Is that the root cause of the problem?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.librdf.org/pipermail/redland-dev/attachments/20110919/3423ee27/attachment.htm 


More information about the redland-dev mailing list