Hi there

I'm trying to build pylucene on OS X Leopard. I have python 2.5 installed
via ports. I originally tried to install the egg provided by Kapil
Thangavelu, but I also got the error "Library not loaded:
@rpath/libjcc.dylib" that Oliver Eilhard got.

Then I tried to build JCC from source. I checked out the latest version from
trunk, and successfully built and installed jcc into site-packages.

However, trying to build lucene yields the following error:

ld: -rpath can only be used when targeting Mac OS X 10.5 or later

The full output of the build is pasted below. Any advice would be
appreciated.

Peter



olivia$ CC=CC make

ant -Dlucene.dir=lucene-java-2.4.0-649619
Buildfile: build.xml

compile:
    [mkdir] Created dir:
/Users/petermacrobert/development/dism/jcc/build/classes
    [javac] Compiling 25 source files to
/Users/petermacrobert/development/dism/jcc/build/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

jar:
    [mkdir] Created dir:
/Users/petermacrobert/development/dism/jcc/build/jar
      [jar] Building jar:
/Users/petermacrobert/development/dism/jcc/build/jar/extensions.jar

BUILD SUCCESSFUL
Total time: 0 seconds
CFLAGS="" /opt/local/bin/python -m jcc --shared --jar
lucene-java-2.4.0-649619/build/lucene-core-2.4.0-649619.jar --jar
lucene-java-2.4.0-649619/build/contrib/snowball/lucene-snowball-2.4.0-649619.jar
--jar
lucene-java-2.4.0-649619/build/contrib/highlighter/lucene-highlighter-2.4.0-649619.jar
--jar
lucene-java-2.4.0-649619/build/contrib/analyzers/lucene-analyzers-2.4.0-649619.jar
--jar
lucene-java-2.4.0-649619/build/contrib/regex/lucene-regex-2.4.0-649619.jar
--jar
lucene-java-2.4.0-649619/build/contrib/queries/lucene-queries-2.4.0-649619.jar
--jar build/jar/extensions.jar --package java.lang java.lang.System
java.lang.Runtime --package java.util java.text.SimpleDateFormat --package
java.io java.io.StringReader java.io.InputStreamReader
java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token
--exclude org.apache.lucene.queryParser.TokenMgrError --exclude
org.apache.lucene.queryParser.QueryParserTokenManager --exclude
org.apache.lucene.queryParser.ParseException --python lucene --mapping
org.apache.lucene.document.Document
'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties
'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
org.apache.lucene.search.Hits 'length:()I'
'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.0-649619
--files 1 --build
running build_ext
building 'lucene._lucene' extension
creating build/temp.macosx-10.3-i386-2.5
creating build/temp.macosx-10.3-i386-2.5/build
creating build/temp.macosx-10.3-i386-2.5/build/_lucene
CC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYTHON=1
-D_jcc_shared=1
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-Ibuild/_lucene
-I/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg/jcc/sources
-I/opt/local/include/python2.5 -c build/_lucene/__init__.cpp -o
build/temp.macosx-10.3-i386-2.5/build/_lucene/__init__.o
-fno-strict-aliasing
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
CC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYTHON=1
-D_jcc_shared=1
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-Ibuild/_lucene
-I/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg/jcc/sources
-I/opt/local/include/python2.5 -c build/_lucene/__wrap__.cpp -o
build/temp.macosx-10.3-i386-2.5/build/_lucene/__wrap__.o
-fno-strict-aliasing
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
CC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYTHON=1
-D_jcc_shared=1
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-Ibuild/_lucene
-I/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg/jcc/sources
-I/opt/local/include/python2.5 -c build/_lucene/functions.cpp -o
build/temp.macosx-10.3-i386-2.5/build/_lucene/functions.o
-fno-strict-aliasing
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
CC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYTHON=1
-D_jcc_shared=1
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-Ibuild/_lucene
-I/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg/jcc/sources
-I/opt/local/include/python2.5 -c build/_lucene/JObject.cpp -o
build/temp.macosx-10.3-i386-2.5/build/_lucene/JObject.o -fno-strict-aliasing
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
CC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYTHON=1
-D_jcc_shared=1
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-Ibuild/_lucene
-I/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg/jcc/sources
-I/opt/local/include/python2.5 -c build/_lucene/lucene.cpp -o
build/temp.macosx-10.3-i386-2.5/build/_lucene/lucene.o -fno-strict-aliasing
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
CC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYTHON=1
-D_jcc_shared=1
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
-Ibuild/_lucene
-I/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg/jcc/sources
-I/opt/local/include/python2.5 -c build/_lucene/types.cpp -o
build/temp.macosx-10.3-i386-2.5/build/_lucene/types.o -fno-strict-aliasing
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
creating build/lib.macosx-10.3-i386-2.5
creating build/lib.macosx-10.3-i386-2.5/lucene
/usr/bin/g++-4.0 -L/opt/local/lib -bundle -undefined dynamic_lookup
build/temp.macosx-10.3-i386-2.5/build/_lucene/__init__.o
build/temp.macosx-10.3-i386-2.5/build/_lucene/__wrap__.o
build/temp.macosx-10.3-i386-2.5/build/_lucene/functions.o
build/temp.macosx-10.3-i386-2.5/build/_lucene/JObject.o
build/temp.macosx-10.3-i386-2.5/build/_lucene/lucene.o
build/temp.macosx-10.3-i386-2.5/build/_lucene/types.o
-L/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg
-ljcc -o build/lib.macosx-10.3-i386-2.5/lucene/_lucene.so -framework JavaVM
-Wl,-S -Wl,-rpath
/opt/local/lib/python2.5/site-packages/JCC-1.9-py2.5-macosx-10.3-i386.egg
ld: -rpath can only be used when targeting Mac OS X 10.5 or later

collect2: ld returned 1 exit status
error: command '/usr/bin/g++-4.0' failed with exit status 1
make: *** [compile] Error 1


-- 
Peter MacRobert
_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to