[redland-dev] [Redland Language Bindings 0000477]: make fails for python bindings on Mac OS X Lion x86_64
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Mon Oct 17 22:09:35 CEST 2011
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=477
======================================================================
Reported By: andyl
Assigned To:
======================================================================
Project: Redland Language Bindings
Issue ID: 477
Category: installation
Reproducibility: always
Severity: block
Priority: immediate
Status: new
Binding Language (java, perl, php, python, ruby, tcl): python
======================================================================
Date Submitted: 2011-10-17 20:09
Last Modified: 2011-10-17 20:09
======================================================================
Summary: make fails for python bindings on Mac OS X Lion
x86_64
Description:
Python bindings cannot be built on Mac OS X Lion - default arch is x86_64
Tried with --with-python, which takes Apple's python from
/System/Library/Frameworks/Python.framework and also tried with MacPorts'
python: --with-python=/opt/local/bin/python2.7 - no difference
All dependencies have been successfully built:
$ file /opt/local/lib/librdf.dylib
/opt/local/lib/librdf.dylib: Mach-O 64-bit dynamically linked shared library
x86_64
python $ file Redland_wrap.so
Redland_wrap.so: Mach-O 64-bit object x86_64
but compiling Redland.so fails:
gcc -g -O2 -I/opt/local/include -I/opt/local/include/raptor2
-I/opt/local/include/rasqal -DSWIG_PYTHON_SILENT_MEMLEAK -g -O2
Redland_wrap.so -Wl,-F. -Wl,-F. -bundle -F/opt/local/Library/Frameworks
-framework Python -L/opt/local/lib -lrdf -o Redland.so
Undefined symbols for architecture x86_64:
"_raptor_locator_uri", referenced from:
__wrap_raptor_locator_uri in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_rasqal_version_string", referenced from:
_Swig_var_rasqal_version_string_get in Redland_wrap.so
"_raptor_version_string", referenced from:
_Swig_var_raptor_version_string_get in Redland_wrap.so
"_raptor_locator_file", referenced from:
__wrap_raptor_locator_file in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_locator_byte", referenced from:
__wrap_raptor_locator_byte in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_locator_column", referenced from:
__wrap_raptor_locator_column in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_locator_line", referenced from:
__wrap_raptor_locator_line in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_version_major", referenced from:
_Swig_var_raptor_version_major_get in Redland_wrap.so
"_raptor_version_minor", referenced from:
_Swig_var_raptor_version_minor_get in Redland_wrap.so
"_raptor_version_release", referenced from:
_Swig_var_raptor_version_release_get in Redland_wrap.so
"_raptor_version_decimal", referenced from:
_Swig_var_raptor_version_decimal_get in Redland_wrap.so
"_rasqal_version_major", referenced from:
_Swig_var_rasqal_version_major_get in Redland_wrap.so
"_rasqal_version_minor", referenced from:
_Swig_var_rasqal_version_minor_get in Redland_wrap.so
"_rasqal_version_release", referenced from:
_Swig_var_rasqal_version_release_get in Redland_wrap.so
"_rasqal_version_decimal", referenced from:
_Swig_var_rasqal_version_decimal_get in Redland_wrap.so
"_raptor_unicode_utf8_string_put_char", referenced from:
_librdf_python_unicode_to_bytes in Redland_wrap.so
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
see additional information for complete output
Steps to Reproduce:
get sources:
drwxr-xr-x@ 57 1000 1000 1938 Oct 17 20:47 raptor2-2.0.4
drwxr-xr-x@ 53 1000 1000 1802 Oct 17 18:46 rasqal-0.9.27
drwxr-xr-x@ 66 1000 1000 2244 Oct 17 19:36 redland-1.0.14
drwxr-xr-x@ 54 1000 1000 1836 Oct 17 22:00 redland-bindings-1.0.13.1
build raptor2, rasqal, redland (btw: I had to comment-out "-lltdl" to make it
work!) and then build redland-bindings with ./configure --with-python
Additional Information:
redland-bindings-1.0.13.1 $ sudo ./configure
--with-python=/opt/local/bin/python2.7 --prefix=/opt/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking whether build environment is sane... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc...
/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker
(/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option
to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker
(/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin11.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gnutar... gnutar
checking for lua... no
checking for python... python
checking for perl... perl
checking for php... php
checking for ruby... ruby
checking for swig... no
checking for pkg-config... pkg-config
checking SWIG support... not present - using pre-generated interface files
checking Enable LUA API... no
checking for php-config... php-config
checking PHP Linking... compile '-fno-common' link '-bundle -flat_namespace
-undefined suppress' suffix bundle
checking Enable Perl API... no
checking Enable Python API... yes 2.7
checking Python includes...
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
checking Python libs...
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
checking Python LDFLAGS... guessed flags: -Wl,-F. -Wl,-F. -bundle
-F/opt/local/Library/Frameworks -framework Python
checking Python shared library file extension... .so
checking Ruby installation dir...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8 from
Config::CONFIG rubylibdir
checking Ruby arch installation dir...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0
from Config::CONFIG archdir
checking Enable PHP API... no
checking Enable Ruby API... no
checking for redland... 1.0.14
checking if redland was built with raptor2... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bindings.rdf
config.status: creating docs/Makefile
config.status: creating perl/Makefile
config.status: creating perl/t/Makefile
config.status: creating perl/lib/Makefile
config.status: creating perl/lib/RDF/Makefile
config.status: creating perl/lib/RDF/Redland/Makefile
config.status: creating lua/Makefile
config.status: creating php/Makefile
config.status: creating python/Makefile
config.status: creating python/test/Makefile
config.status: creating ruby/Makefile
config.status: creating ruby/test/Makefile
config.status: creating ruby/lib/Makefile
config.status: creating ruby/lib/rdf/Makefile
config.status: creating ruby/lib/rdf/redland/Makefile
config.status: creating ruby/lib/rdf/redland/schemas/Makefile
config.status: creating data/Makefile
config.status: creating redland-bindings.spec
config.status: creating perl/lib/RDF/Redland.pm
config.status: creating bindings_config.h
config.status: bindings_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Redland build summary:
Redland: 1.0.14
Language APIs built: python
redland-bindings-1.0.13.1 $ sudo make
make all-recursive
Making all in python
Making all in test
make[3]: Nothing to be done for `all'.
gcc -DHAVE_CONFIG_H -I. -I./.. -DREDLAND_PRE_I -DREDLAND_POST_I -DREDLAND_DECL_I
-DREDLAND_TYPEMAP_I -I/opt/local/include -I/opt/local/include/raptor2
-I/opt/local/include/rasqal
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-DSWIG_PYTHON_SILENT_MEMLEAK -g -O2 -I/opt/local/include
-I/opt/local/include/raptor2 -I/opt/local/include/rasqal
-DSWIG_PYTHON_SILENT_MEMLEAK -g -O2 -fPIC -DPIC ./Redland_wrap.c -c -o
Redland_wrap.so
./Redland_wrap.c: In function ‘_wrap_librdf_node_to_string’:
./Redland_wrap.c:5139: warning: ‘librdf_node_to_string’ is deprecated
(declared at /opt/local/include/rdf_node.h:171)
./Redland_wrap.c: In function ‘_wrap_librdf_statement_to_string’:
./Redland_wrap.c:5847: warning: ‘librdf_statement_to_string’ is deprecated
(declared at /opt/local/include/rdf_statement.h:112)
./Redland_wrap.c: In function ‘_wrap_librdf_parser_guess_name’:
./Redland_wrap.c:8750: warning: ‘librdf_parser_guess_name’ is deprecated
(declared at /opt/local/include/rdf_parser.h:111)
./Redland_wrap.c: In function ‘_wrap_librdf_query_results_to_file’:
./Redland_wrap.c:9671: warning: ‘librdf_query_results_to_file’ is deprecated
(declared at /opt/local/include/rdf_query.h:103)
./Redland_wrap.c: In function ‘_wrap_librdf_query_results_to_string’:
./Redland_wrap.c:9803: warning: ‘librdf_query_results_to_string’ is
deprecated (declared at /opt/local/include/rdf_query.h:95)
./Redland_wrap.c: In function ‘_wrap_librdf_stream_get_context’:
./Redland_wrap.c:10805: warning: ‘librdf_stream_get_context’ is deprecated
(declared at /opt/local/include/rdf_stream.h:98)
gcc -g -O2 -I/opt/local/include -I/opt/local/include/raptor2
-I/opt/local/include/rasqal -DSWIG_PYTHON_SILENT_MEMLEAK -g -O2
Redland_wrap.so -Wl,-F. -Wl,-F. -bundle -F/opt/local/Library/Frameworks
-framework Python -L/opt/local/lib -lrdf -o Redland.so
Undefined symbols for architecture x86_64:
"_raptor_locator_uri", referenced from:
__wrap_raptor_locator_uri in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_rasqal_version_string", referenced from:
_Swig_var_rasqal_version_string_get in Redland_wrap.so
"_raptor_version_string", referenced from:
_Swig_var_raptor_version_string_get in Redland_wrap.so
"_raptor_locator_file", referenced from:
__wrap_raptor_locator_file in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_locator_byte", referenced from:
__wrap_raptor_locator_byte in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_locator_column", referenced from:
__wrap_raptor_locator_column in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_locator_line", referenced from:
__wrap_raptor_locator_line in Redland_wrap.so
_librdf_python_logger_handler in Redland_wrap.so
"_raptor_version_major", referenced from:
_Swig_var_raptor_version_major_get in Redland_wrap.so
"_raptor_version_minor", referenced from:
_Swig_var_raptor_version_minor_get in Redland_wrap.so
"_raptor_version_release", referenced from:
_Swig_var_raptor_version_release_get in Redland_wrap.so
"_raptor_version_decimal", referenced from:
_Swig_var_raptor_version_decimal_get in Redland_wrap.so
"_rasqal_version_major", referenced from:
_Swig_var_rasqal_version_major_get in Redland_wrap.so
"_rasqal_version_minor", referenced from:
_Swig_var_rasqal_version_minor_get in Redland_wrap.so
"_rasqal_version_release", referenced from:
_Swig_var_rasqal_version_release_get in Redland_wrap.so
"_rasqal_version_decimal", referenced from:
_Swig_var_rasqal_version_decimal_get in Redland_wrap.so
"_raptor_unicode_utf8_string_put_char", referenced from:
_librdf_python_unicode_to_bytes in Redland_wrap.so
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [Redland-stamp] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-10-17 20:09 andyl New Issue
======================================================================
More information about the redland-dev
mailing list