Opened 15 years ago
Closed 14 years ago
#22902 closed defect (worksforme)
Keep getting some Java error or something related with db46.
Reported by: | the.justin.mueller@… | Owned by: | blair (Blair Zajac) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.1 |
Keywords: | Cc: | jbhuw@…, jakub.moskal@…, flip@…, billmcn@…, Michael.Tiernan@… | |
Port: | db46 |
Description
I was trying to install Subversion and every time I get the error below. I am running MacPorts 1.8.1 on Mac OS 10.5.8. I am running Java 1.5.0_22, and I have tried the renaming of the /usr/local, any help or pointers if this is not a bug would be nice, but as of now I can't find anything wrong. Thank you, this is for my computer at my new job and need to get it running as soon as I can.
---> Computing dependencies for subversion ---> Fetching apr ---> Attempting to fetch apr-1.3.9.tar.bz2 from http://apache.mirror.rafal.ca/apr ---> Verifying checksum(s) for apr ---> Extracting apr ---> Configuring apr ---> Building apr ---> Staging apr into destroot ---> Installing apr @1.3.9_0 ---> Activating apr @1.3.9_0 ---> Cleaning apr ---> Fetching db46 ---> Attempting to fetch patch.4.6.21.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/ ---> Attempting to fetch patch.4.6.21.2 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/ ---> Attempting to fetch patch.4.6.21.3 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/ ---> Attempting to fetch patch.4.6.21.4 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/ ---> Attempting to fetch db-4.6.21.tar.gz from http://distfiles.macports.org/db4/4.6.21_6 ---> Verifying checksum(s) for db46 ---> Extracting db46 ---> Applying patches to db46 ---> Configuring db46 ---> Building db46 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work/db-4.6.21/build_unix" && /usr/bin/make -j2 all " returned error 2 Command output: ../dist/../libdb_java/db_java_wrap.c:10017: error: 'jarg1' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10019: error: 'jarg2' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10030: error: 'jobject' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10041: error: 'jbyte' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10041: error: syntax error before ')' token ../dist/../libdb_java/db_java_wrap.c: At top level: ../dist/../libdb_java/db_java_wrap.c:10046: error: syntax error before 'void' ../dist/../libdb_java/db_java_wrap.c:10046: error: syntax error before '*' token ../dist/../libdb_java/db_java_wrap.c: In function 'Java_com_sleepycat_db_internal_db_1javaJNI_DbTxn_1set_1timeout': ../dist/../libdb_java/db_java_wrap.c:10052: error: 'jenv' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10053: error: 'jcls' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10054: error: 'jarg1' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10055: error: 'jarg2' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10056: error: 'jarg3' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10065: error: 'jobject' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c: At top level: ../dist/../libdb_java/db_java_wrap.c:10071: error: syntax error before 'void' ../dist/../libdb_java/db_java_wrap.c:10071: error: syntax error before '*' token ../dist/../libdb_java/db_java_wrap.c: In function 'Java_com_sleepycat_db_internal_db_1javaJNI_DbTxn_1set_1name': ../dist/../libdb_java/db_java_wrap.c:10076: error: 'jenv' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10077: error: 'jcls' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10078: error: 'jarg1' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10080: error: 'jarg2' undeclared (first use in this function) ../dist/../libdb_java/db_java_wrap.c:10092: error: 'jobject' undeclared (first use in this function) env CLASSPATH="./classes" javac -d ./classes ../dist/../java/src/com/sleepycat/bind/ByteArrayBinding.java ../dist/../java/src/com/sleepycat/bind/EntityBinding.java ../dist/../java/src/com/sleepycat/bind/EntryBinding.java ../dist/../java/src/com/sleepycat/bind/RecordNumberBinding.java ../dist/../java/src/com/sleepycat/bind/serial/ClassCatalog.java ../dist/../java/src/com/sleepycat/bind/serial/SerialBase.java ../dist/../java/src/com/sleepycat/bind/serial/SerialBinding.java ../dist/../java/src/com/sleepycat/bind/serial/SerialInput.java ../dist/../java/src/com/sleepycat/bind/serial/SerialOutput.java ../dist/../java/src/com/sleepycat/bind/serial/SerialSerialBinding.java ../dist/../java/src/com/sleepycat/bind/serial/SerialSerialKeyCreator.java ../dist/../java/src/com/sleepycat/bind/serial/StoredClassCatalog.java ../dist/../java/src/com/sleepycat/bind/serial/TupleSerialBinding.java ../dist/../java/src/com/sleepycat/bind/serial/TupleSerialKeyCreator.java ../dist/../java/src/com/sleepycat/bind/serial/TupleSerialMarshalledBinding.java ../dist/../java/src/com/sleepycat/bind/serial/TupleSerialMarshalledKeyCreator.java ../dist/../java/src/com/sleepycat/bind/tuple/BigIntegerBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/BooleanBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/ByteBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/CharacterBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/DoubleBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/FloatBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/IntegerBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/LongBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/MarshalledTupleEntry.java ../dist/../java/src/com/sleepycat/bind/tuple/MarshalledTupleKeyEntity.java ../dist/../java/src/com/sleepycat/bind/tuple/ShortBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/SortedDoubleBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/SortedFloatBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/StringBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleBase.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleInput.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleInputBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleMarshalledBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleOutput.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleTupleBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleTupleKeyCreator.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleTupleMarshalledBinding.java ../dist/../java/src/com/sleepycat/bind/tuple/TupleTupleMarshalledKeyCreator.java ../dist/../java/src/com/sleepycat/collections/BaseIterator.java ../dist/../java/src/com/sleepycat/collections/BlockIterator.java ../dist/../java/src/com/sleepycat/collections/CurrentTransaction.java ../dist/../java/src/com/sleepycat/collections/DataCursor.java ../dist/../java/src/com/sleepycat/collections/DataView.java ../dist/../java/src/com/sleepycat/collections/MapEntryParameter.java ../dist/../java/src/com/sleepycat/collections/MyRangeCursor.java ../dist/../java/src/com/sleepycat/collections/PrimaryKeyAssigner.java ../dist/../java/src/com/sleepycat/collections/StoredCollection.java ../dist/../java/src/com/sleepycat/collections/StoredCollections.java ../dist/../java/src/com/sleepycat/collections/StoredContainer.java ../dist/../java/src/com/sleepycat/collections/StoredEntrySet.java ../dist/../java/src/com/sleepycat/collections/StoredIterator.java ../dist/../java/src/com/sleepycat/collections/StoredKeySet.java ../dist/../java/src/com/sleepycat/collections/StoredList.java ../dist/../java/src/com/sleepycat/collections/StoredMap.java ../dist/../java/src/com/sleepycat/collections/StoredMapEntry.java ../dist/../java/src/com/sleepycat/collections/StoredSortedEntrySet.java ../dist/../java/src/com/sleepycat/collections/StoredSortedKeySet.java ../dist/../java/src/com/sleepycat/collections/StoredSortedMap.java ../dist/../java/src/com/sleepycat/collections/StoredSortedValueSet.java ../dist/../java/src/com/sleepycat/collections/StoredValueSet.java ../dist/../java/src/com/sleepycat/collections/TransactionRunner.java ../dist/../java/src/com/sleepycat/collections/TransactionWorker.java ../dist/../java/src/com/sleepycat/collections/TupleSerialFactory.java ../dist/../java/src/com/sleepycat/compat/DbCompat.java ../dist/../java/src/com/sleepycat/db/BtreePrefixCalculator.java ../dist/../java/src/com/sleepycat/db/BtreeStats.java ../dist/../java/src/com/sleepycat/db/CacheFile.java ../dist/../java/src/com/sleepycat/db/CacheFilePriority.java ../dist/../java/src/com/sleepycat/db/CacheFileStats.java ../dist/../java/src/com/sleepycat/db/CacheStats.java ../dist/../java/src/com/sleepycat/db/CheckpointConfig.java ../dist/../java/src/com/sleepycat/db/CompactConfig.java ../dist/../java/src/com/sleepycat/db/CompactStats.java ../dist/../java/src/com/sleepycat/db/Cursor.java ../dist/../java/src/com/sleepycat/db/CursorConfig.java ../dist/../java/src/com/sleepycat/db/Database.java ../dist/../java/src/com/sleepycat/db/DatabaseConfig.java ../dist/../java/src/com/sleepycat/db/DatabaseEntry.java ../dist/../java/src/com/sleepycat/db/DatabaseException.java ../dist/../java/src/com/sleepycat/db/DatabaseStats.java ../dist/../java/src/com/sleepycat/db/DatabaseType.java ../dist/../java/src/com/sleepycat/db/DeadlockException.java ../dist/../java/src/com/sleepycat/db/Environment.java ../dist/../java/src/com/sleepycat/db/EnvironmentConfig.java ../dist/../java/src/com/sleepycat/db/ErrorHandler.java ../dist/../java/src/com/sleepycat/db/EventHandler.java ../dist/../java/src/com/sleepycat/db/EventHandlerAdapter.java ../dist/../java/src/com/sleepycat/db/FeedbackHandler.java ../dist/../java/src/com/sleepycat/db/HashStats.java ../dist/../java/src/com/sleepycat/db/Hasher.java ../dist/../java/src/com/sleepycat/db/JoinConfig.java ../dist/../java/src/com/sleepycat/db/JoinCursor.java ../dist/../java/src/com/sleepycat/db/KeyRange.java ../dist/../java/src/com/sleepycat/db/Lock.java ../dist/../java/src/com/sleepycat/db/LockDetectMode.java ../dist/../java/src/com/sleepycat/db/LockMode.java ../dist/../java/src/com/sleepycat/db/LockNotGrantedException.java ../dist/../java/src/com/sleepycat/db/LockOperation.java ../dist/../java/src/com/sleepycat/db/LockRequest.java ../dist/../java/src/com/sleepycat/db/LockRequestMode.java ../dist/../java/src/com/sleepycat/db/LockStats.java ../dist/../java/src/com/sleepycat/db/LogCursor.java ../dist/../java/src/com/sleepycat/db/LogRecordHandler.java ../dist/../java/src/com/sleepycat/db/LogSequenceNumber.java ../dist/../java/src/com/sleepycat/db/LogStats.java ../dist/../java/src/com/sleepycat/db/MemoryException.java ../dist/../java/src/com/sleepycat/db/MessageHandler.java ../dist/../java/src/com/sleepycat/db/MultipleNIODataEntry.java ../dist/../java/src/com/sleepycat/db/MultipleKeyNIODataEntry.java ../dist/../java/src/com/sleepycat/db/MultipleRecnoNIODataEntry.java ../dist/../java/src/com/sleepycat/db/MultipleDataEntry.java ../dist/../java/src/com/sleepycat/db/MultipleEntry.java ../dist/../java/src/com/sleepycat/db/MultipleKeyDataEntry.java ../dist/../java/src/com/sleepycat/db/MultipleRecnoDataEntry.java ../dist/../java/src/com/sleepycat/db/MutexStats.java ../dist/../java/src/com/sleepycat/db/OperationStatus.java ../dist/../java/src/com/sleepycat/db/PanicHandler.java ../dist/../java/src/com/sleepycat/db/PreparedTransaction.java ../dist/../java/src/com/sleepycat/db/QueueStats.java ../dist/../java/src/com/sleepycat/db/RecordNumberAppender.java ../dist/../java/src/com/sleepycat/db/RecoveryOperation.java ../dist/../java/src/com/sleepycat/db/ReplicationConfig.java ../dist/../java/src/com/sleepycat/db/ReplicationDuplicateMasterException.java ../dist/../java/src/com/sleepycat/db/ReplicationHandleDeadException.java ../dist/../java/src/com/sleepycat/db/ReplicationHoldElectionException.java ../dist/../java/src/com/sleepycat/db/ReplicationHostAddress.java ../dist/../java/src/com/sleepycat/db/ReplicationJoinFailureException.java ../dist/../java/src/com/sleepycat/db/ReplicationLeaseExpiredException.java ../dist/../java/src/com/sleepycat/db/ReplicationLeaseTimeoutException.java ../dist/../java/src/com/sleepycat/db/ReplicationLockoutException.java ../dist/../java/src/com/sleepycat/db/ReplicationManagerAckPolicy.java ../dist/../java/src/com/sleepycat/db/ReplicationManagerStats.java ../dist/../java/src/com/sleepycat/db/ReplicationManagerStartPolicy.java ../dist/../java/src/com/sleepycat/db/ReplicationSiteUnavailableException.java ../dist/../java/src/com/sleepycat/db/ReplicationStats.java ../dist/../java/src/com/sleepycat/db/ReplicationStatus.java ../dist/../java/src/com/sleepycat/db/ReplicationTimeoutType.java ../dist/../java/src/com/sleepycat/db/ReplicationTransport.java ../dist/../java/src/com/sleepycat/db/RunRecoveryException.java ../dist/../java/src/com/sleepycat/db/SecondaryConfig.java ../dist/../java/src/com/sleepycat/db/SecondaryCursor.java ../dist/../java/src/com/sleepycat/db/SecondaryDatabase.java ../dist/../java/src/com/sleepycat/db/SecondaryKeyCreator.java ../dist/../java/src/com/sleepycat/db/SecondaryMultiKeyCreator.java ../dist/../java/src/com/sleepycat/db/Sequence.java ../dist/../java/src/com/sleepycat/db/SequenceConfig.java ../dist/../java/src/com/sleepycat/db/SequenceStats.java ../dist/../java/src/com/sleepycat/db/StatsConfig.java ../dist/../java/src/com/sleepycat/db/Transaction.java ../dist/../java/src/com/sleepycat/db/TransactionConfig.java ../dist/../java/src/com/sleepycat/db/TransactionStats.java ../dist/../java/src/com/sleepycat/db/VerboseConfig.java ../dist/../java/src/com/sleepycat/db/VerifyConfig.java ../dist/../java/src/com/sleepycat/db/VersionMismatchException.java ../dist/../java/src/com/sleepycat/db/internal/Db.java ../dist/../java/src/com/sleepycat/db/internal/DbConstants.java ../dist/../java/src/com/sleepycat/db/internal/DbEnv.java ../dist/../java/src/com/sleepycat/db/internal/DbLock.java ../dist/../java/src/com/sleepycat/db/internal/DbLogc.java ../dist/../java/src/com/sleepycat/db/internal/DbMpoolFile.java ../dist/../java/src/com/sleepycat/db/internal/DbSequence.java ../dist/../java/src/com/sleepycat/db/internal/DbTxn.java ../dist/../java/src/com/sleepycat/db/internal/DbUtil.java ../dist/../java/src/com/sleepycat/db/internal/Dbc.java ../dist/../java/src/com/sleepycat/db/internal/db_java.java ../dist/../java/src/com/sleepycat/db/internal/db_javaJNI.java ../dist/../java/src/com/sleepycat/util/ExceptionUnwrapper.java ../dist/../java/src/com/sleepycat/util/ExceptionWrapper.java ../dist/../java/src/com/sleepycat/util/FastInputStream.java ../dist/../java/src/com/sleepycat/util/FastOutputStream.java ../dist/../java/src/com/sleepycat/util/IOExceptionWrapper.java ../dist/../java/src/com/sleepycat/util/PackedInteger.java ../dist/../java/src/com/sleepycat/util/RuntimeExceptionWrapper.java ../dist/../java/src/com/sleepycat/util/UtfOps.java ../dist/../java/src/com/sleepycat/util/keyrange/KeyRange.java ../dist/../java/src/com/sleepycat/util/keyrange/KeyRangeException.java ../dist/../java/src/com/sleepycat/util/keyrange/RangeCursor.java make: *** [db_java_wrap.lo] Error 1 make: *** Waiting for unfinished jobs.... Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. cd ./classes && jar cf ../db.jar ./com/sleepycat Error: The following dependencies failed to build: apr-util db46 expat libiconv gperf sqlite3 ncurses ncursesw readline cyrus-sasl2 openssl zlib gettext neon serf Error: Status 1 encountered during processing.
Attachments (1)
Change History (26)
comment:1 follow-up: 3 Changed 15 years ago by the.justin.mueller@…
Cc: | the.justin.mueller@… added |
---|
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Cc: | the.justin.mueller@… removed |
---|---|
Owner: | changed from macports-tickets@… to blair@… |
Priority: | High → Normal |
comment:3 Changed 15 years ago by the.justin.mueller@…
Forgot to add, using a MacBookPro5,3 Intel. Have tried 3.1.3 and 3.1.2 Xcode.
comment:4 Changed 15 years ago by the.justin.mueller@…
The more I look, the more I am seeing Java as the potential issue. Could it be that perhaps the latest Java (1.5.0_22) doesn't like what db46 is trying to do in Mac OS 10.5?
comment:5 Changed 15 years ago by blair (Blair Zajac)
Not clear what's going on here, but this is the first report of such a problem.
Have you tried Java 1.6?
comment:6 Changed 15 years ago by the.justin.mueller@…
Just switched to Java 1.6 and still getting the error above when it tries to build... I wish I knew more so I could understand the error better.
comment:7 Changed 15 years ago by blair (Blair Zajac)
Try a
port -v clean db46 port -v install db46 2>&1 | tee db46-log.txt
and attach the log here.
comment:8 Changed 15 years ago by blair (Blair Zajac)
And do you have a /usr/local? If so, try moving it out of the way.
Changed 15 years ago by the.justin.mueller@…
Attachment: | db46-log-new.txt added |
---|
Log, with the /usr/local/ moved
comment:9 Changed 15 years ago by Nomis101@…
Yesterday I did a clean install of MacPorts, but I think this was a bad idea, because now I'm not able anymore to install Mercurial. db46 doesn't install because of the same "error: jni.h: No such file or directory" as in the attachment. So I found out there was a dead link to the Headers folder in /System/Library/Frameworks/JavaVM.framework. So I removed it and reinstalled the "JavaForMacOSX10.6Update1", but after that I had the dead link back. So I fixed this by hand. But it still doesn't work. So I've tried:
export JINCLUDE=-I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
Doesn't work. Than:
export JAVA_INCLUDES="-I/System/Library/Frameworks/JavaVM.framework/Headers"
Doesn't work. db46 doesn't build because of "error: jni.h: No such file or directory
". I'am sure it builds without any problem before this "JavaForMacOSX10.6Update1".
Please, how can I fix this? I need Mercurial!
Mac OS X 10.6.2, Java 1.6, x86_64
comment:12 Changed 15 years ago by blair (Blair Zajac)
Nomis101, the.justin.mueller,
Could both of you cd into
/System/Library/Frameworks/JavaVM.framework
and attach the output of ls -lR.
Thanks, Blair
comment:13 Changed 15 years ago by flip@…
I have been having similar problems getting db46 to compile. As above, it can't find jni.h As above, the link to 'headers' in /System/Library/Frameworks/JavaVM.framework is bad I have a fully patched up 10.6 The only place I could find a jni.h was, via locate,
blarg:Versions> locate jni.h /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Headers/jni.h /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/jni.h /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/jni.h /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/jni.h /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h
so, I linked it back to the 'headers' in the framework bingo- worked.
comment:16 Changed 14 years ago by billmcn@…
Replying to billmcn@…:
Cc Me!
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Headers/jni.h /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/jni.h /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/jni.h /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Versions/a/Headers/jni.h
All the various softlinks in the Java headers directories look correct.
Is there a workaround here?
comment:17 follow-up: 19 Changed 14 years ago by Michael.Tiernan@…
flip@… said:
so, I linked it back to the 'headers' in the framework bingo- worked.
May I ask for clarification of exactly what sequence of commands you used to fix the problem? Yes I could probably figure it out myself but I really want to do it the exact same way you did to make it easier to undo should the problem be identified in the port.
I too am getting the errors as mentioned in building db46 but it is standing in the way of building ImageMagick.
comment:19 Changed 14 years ago by Michael.Tiernan@…
Replying to Michael.Tiernan@…:
I too am getting the errors as mentioned in building db46 but it is standing in the way of building ImageMagick.
That was stupid of me. Sorry.
If there's any info I can provide to make fixing this easier, please let me know.
My system: MacBook Pro w/10.6.4 w/all current updates installed.
System Profile: Model: MacBookPro5,2, BootROM MBP52.008E.B05, 2 processors, Intel Core 2 Duo, 3.06 GHz, 8 GB, SMC 1.42f4 Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 512 MB Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB Memory Module: global_name
comment:20 Changed 14 years ago by danielluke (Daniel J. Luke)
See also #26947
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers /System/Library/Frameworks/JavaVM.framework/Home/include
Will let things build again, but is a hack.
comment:21 Changed 14 years ago by Michael.Tiernan@…
Thanks for the reply dluke!
I experimented to see what info I could turn up and I found that the two things missing are fixed by this:
sudo ls -l /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/jni.h /usr/include/jni.h sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/jni_md.h /usr/include/
I know it's not very sophistocated but maybe it will help others.
I know that the stuff in the Java world is outside of my domain so I'm actually going to take these two changes out after the build.
Can your change be left in without breaking anything?
Thanks very much for your time!
comment:22 Changed 14 years ago by danielluke (Daniel J. Luke)
It probably won't hurt anything to leave a symlink there (it's how the headers were packaged before the latest update) - however it's not a solution we can realistically use for these ports. We'll have to do something else to make the header available.
comment:23 Changed 14 years ago by arya+macports@…
Same problem here. Running a fully patched 10.4.6 imac. Solution was to install Java Developer Package update 3 (for 10.6) and create this symlink:
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers /System/Library/Frameworks/JavaVM.framework/Home/include
comment:24 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Can't this be closed now? Isn't this a duplicate of the resolved #26939 now?
comment:25 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Not a dupe of #26939, but the same fix should work.
Cc Me!