[redland-dev] Re: Python bindings compile problem (OS X)

Dave Beckett Dave.Beckett at bristol.ac.uk
Mon Feb 7 20:26:04 GMT 2005


On Sun, 2005-02-06 at 20:55 +0100, René Puls wrote:
> Am 06.02.2005 um 19:36 schrieb Dave Beckett:
> 
> >     Redland RDF Application Framework Language Bindings 1.0.0.1
> > 		     http://librdf.org/bindings/
> 
> Compiling the Python bindings fails with a linker error on my OS X 
> 10.3.7:
> 
> > gcc -g -O2  -I/opt/extra/include -I/usr/local/berkeleydb/include  -g 
> > -O2   -Wl,-F. -Wl,-F. -bundle -framework Python Redland_wrap.so 
> > `redland-config --libs` -o Redland.so
> > ld: Redland_wrap.so illegal reference to symbol: 
> > _raptor_unicode_char_to_utf8 defined in indirectly referenced dynamic 
> > library /opt/extra/lib/libraptor.1.dylib
> > make[2]: *** [Redland-stamp] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all-recursive] Error 1
> 
> The package was configured with:
> 
> ./configure --prefix=/opt/extra --with-perl --with-python
> 
> If I edit python/Makefile and add `raptor-config --libs` right before 
> it says `redland-config --libs`, it compiles correctly. (That was just 
> a lucky guess. I have no idea why this is necessary...)

That's mysterious,  I can't think what it means there.  What's
an illegal reference?

I've constructed a script from what I just I tested worked on OSX,
getting, building and compiling redland on OSX with python.
I've not run this exact script but it could be used to test things
out even if you cut'n'paste from it:

 http://librdf.org/2005/02/build-all.sh

Dave




More information about the redland-dev mailing list