[redland-dev] help in raptor

Dave Beckett dave.beckett at bristol.ac.uk
Wed Aug 11 11:44:57 BST 2004


On Wed, 11 Aug 2004 13:47:47 +0530, "Bintu G. Vasudevan" <Bintu_Vasudevan at infosys.com> wrote:

> HI
>  
> I am trying to use raptor-1.3.2  to create come rdf output file using
> the API libraptor.

on cygwin from what I can decode from the compiler output below

> I have install the raptor as shown
> In raptor-1.3.2 directory
>  
> ./configure --with-xml2-name=libxml2

This isn't a configure option that raptor uses.
I suspect you mean --with-xml-parser=libxml
which is the default anyway if libxml and expat are both available.


> then 
> make 
> then 
> make install
> then tested the 
> $ rapper dc.rdf
> the output is 
> rapper: Parsing file dc.rdf
> rapper: Statement: [http://purl.org/net/dajobe/,
> http://purl.org/dc/elements/1.1/title, "Dave Beckett's Home Page"]
> rapper: Statement: [http://purl.org/net/dajobe/,
> http://purl.org/dc/elements/1.1/creator, "Dave Beckett"]
> rapper: Parsing returned 2 statements
>  
> Problem is in examples directory
> $ make raptor_abort
>  
> gcc -g -O2 -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2     raptor_abort.c
> -o raptor_abort
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x77): In
> function `handle_statements':
> /cygdrive/c/raptor-1.3.3/examples/raptor_abort.c:69: undefined reference
> to `_raptor_parse_abort'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x17b): In
> function `main':
> /cygdrive/c/raptor-1.3.3/examples/raptor_abort.c:94: undefined reference
> to `_raptor_init'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x1b5):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:106: undefined reference to `_raptor_new_uri'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x1c4):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:107: undefined reference to `_raptor_new_parser'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x1dc):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:111: undefined reference to
> `_raptor_set_statement_handler'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x1fa):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:114: undefined reference to `_raptor_parse_uri'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x23f):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:121: undefined reference to `_raptor_free_parser'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x24a):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:123: undefined reference to `_raptor_free_uri'
> /cygdrive/c/DOCUME~1/BINTU_~1/LOCALS~1/Temp/ccSxZZYw.o(.text+0x24f):/cyg
> drive/c/raptor-1.3.3/example
> s/raptor_abort.c:125: undefined reference to `_raptor_finish'
> collect2: ld returned 1 exit status
> make: *** [raptor_abort] Error 1
>  
> can you help me, How to solve this problem

I'm not really sure.  This is just an example program for testing
aborting the parser at some point, and not terribly exciting.  If
rapper builds OK, that should be enough.

My guess is that it should be using different defines, such as not
using -DRAPTOR_INTERNAL since it tests the public API, not internals.

Dave






More information about the redland-dev mailing list