I am getting following error when I try to build ghidra using command gradle buildGhidra:
Task :DMG:compileDmgJava FAILED
Note: /nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
100 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':DMG:compileDmgJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings
Importantly, every other builds are working fine, without any errors.
Stack trace:
[r668v698@themata ghidra]$ ../../../gradle-manual-5/gradle-5.0/bin/gradle -s buildGhidra
> Task :DMG:compileDmgJava FAILED
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:10: error: package org.catacombae.dmgextractor.encodings.encrypted does not exist
import org.catacombae.dmgextractor.encodings.encrypted.ReadableCEncryptedEncodingStream;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:11: error: cannot find symbol
import org.catacombae.hfsexplorer.FileSystemRecognizer;
^
symbol: class FileSystemRecognizer
location: package org.catacombae.hfsexplorer
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:12: error: cannot find symbol
import org.catacombae.hfsexplorer.PartitionSystemRecognizer;
^
symbol: class PartitionSystemRecognizer
location: package org.catacombae.hfsexplorer
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:13: error: cannot find symbol
import org.catacombae.hfsexplorer.UDIFRecognizer;
^
symbol: class UDIFRecognizer
location: package org.catacombae.hfsexplorer
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:14: error: package org.catacombae.hfsexplorer.partitioning does not exist
import org.catacombae.hfsexplorer.partitioning.Partition;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:15: error: package org.catacombae.hfsexplorer.partitioning does not exist
import org.catacombae.hfsexplorer.partitioning.PartitionSystem;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:16: error: package org.catacombae.hfsexplorer.win32 does not exist
import org.catacombae.hfsexplorer.win32.WindowsLowLevelIO;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:18: error: cannot find symbol
import org.catacombae.jparted.lib.DataLocator;
^
symbol: class DataLocator
location: package org.catacombae.jparted.lib
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:19: error: cannot find symbol
import org.catacombae.jparted.lib.ReadableStreamDataLocator;
^
symbol: class ReadableStreamDataLocator
location: package org.catacombae.jparted.lib
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:21: error: package org.catacombae.jparted.lib.fs.FileSystemHandlerFactory does not exist
import org.catacombae.jparted.lib.fs.FileSystemHandlerFactory.StandardAttribute;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:22: error: package org.catacombae.jparted.lib.fs.hfsx does not exist
import org.catacombae.jparted.lib.fs.hfsx.HFSXFileSystemHandler;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:23: error: package org.catacombae.udif does not exist
import org.catacombae.udif.UDIFFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:24: error: package org.catacombae.udif does not exist
import org.catacombae.udif.UDIFRandomAccessStream;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:10: error: cannot find symbol
import org.catacombae.hfsexplorer.fs.ImplHFSXFileSystemView;
^
symbol: class ImplHFSXFileSystemView
location: package org.catacombae.hfsexplorer.fs
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:12: error: package org.catacombae.hfsexplorer.types.hfscommon does not exist
import org.catacombae.hfsexplorer.types.hfscommon.CommonHFSCatalogFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:13: error: package org.catacombae.hfsexplorer.types.hfscommon does not exist
import org.catacombae.hfsexplorer.types.hfscommon.CommonHFSForkData;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:15: error: package org.catacombae.jparted.lib.fs does not exist
import org.catacombae.jparted.lib.fs.FSFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:16: error: package org.catacombae.jparted.lib.fs.hfscommon does not exist
import org.catacombae.jparted.lib.fs.hfscommon.HFSCommonFSFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:17: error: package org.catacombae.jparted.lib.fs.hfsx does not exist
import org.catacombae.jparted.lib.fs.hfsx.HFSXFileSystemHandler;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:39: error: cannot find symbol
private List<FSFolder> rootFolders = new ArrayList<FSFolder>();
^
symbol: class FSFolder
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:40: error: cannot find symbol
private List<FileSystemHandler> fileSystemHandlers = new ArrayList<FileSystemHandler>();
^
symbol: class FileSystemHandler
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:92: error: cannot find symbol
private void openPartition( Partition selectedPartition ) throws IOException {
^
symbol: class Partition
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:166: error: cannot find symbol
public InputStream getData( FSEntry entry ) throws IOException {
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:218: error: cannot find symbol
private InputStream decompressResourceFork( FSEntry entry,
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:264: error: cannot find symbol
public List<FSEntry> getListing( String path ) {
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:289: error: cannot find symbol
public long getLength( FSEntry entry ) {
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:331: error: cannot find symbol
public FSEntry getFileByPath( String path ) {
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:30: error: cannot find symbol
private Map<FSFile, DecmpfsHeader> map = new HashMap<FSFile, DecmpfsHeader>();
^
symbol: class FSFile
location: class AttributesFileParser
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:34: error: cannot find symbol
public AttributesFileParser( HFSXFileSystemHandler handler, String prefix ) throws IOException {
^
symbol: class HFSXFileSystemHandler
location: class AttributesFileParser
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:59: error: cannot find symbol
private int getFileID(FSFile file) {
^
symbol: class FSFile
location: class AttributesFileParser
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:73: error: cannot find symbol
private File writeVolumeHeaderFile( ImplHFSXFileSystemView hfsxFileSystemView,
^
symbol: class ImplHFSXFileSystemView
location: class AttributesFileParser
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:74: error: cannot find symbol
HFSPlusForkData volumeHeaderFile,
^
symbol: class HFSPlusForkData
location: class AttributesFileParser
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:94: error: cannot find symbol
public DecmpfsHeader getDecmpfsHeader(FSFile file) throws IOException {
^
symbol: class FSFile
location: class AttributesFileParser
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:20: error: package org.catacombae.jparted.lib.fs does not exist
import org.catacombae.jparted.lib.fs.*;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/hfsplus/AttributesFileParser.java:14: error: package org.catacombae.hfsexplorer.types.hfsplus does not exist
import org.catacombae.hfsexplorer.types.hfsplus.*;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:11: error: cannot find symbol
import org.catacombae.hfsexplorer.ObjectContainer;
^
symbol: class ObjectContainer
location: package org.catacombae.hfsexplorer
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:12: error: package org.catacombae.hfsexplorer.types.hfscommon does not exist
import org.catacombae.hfsexplorer.types.hfscommon.CommonHFSCatalogFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:13: error: package org.catacombae.hfsexplorer.types.hfsplus does not exist
import org.catacombae.hfsexplorer.types.hfsplus.HFSCatalogNodeID;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:14: error: package org.catacombae.hfsexplorer.types.hfsplus does not exist
import org.catacombae.hfsexplorer.types.hfsplus.HFSPlusCatalogFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:16: error: package org.catacombae.jparted.lib.fs.FSAttributes does not exist
import org.catacombae.jparted.lib.fs.FSAttributes.POSIXFileAttributes;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:17: error: package org.catacombae.jparted.lib.fs.hfscommon does not exist
import org.catacombae.jparted.lib.fs.hfscommon.HFSCommonFSFile;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:31: error: cannot find symbol
private FSEntry entry;
^
symbol: class FSEntry
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:123: error: cannot find symbol
private void appendFileID(List<String> infoList, FSFile file) {
^
symbol: class FSFile
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:138: error: cannot find symbol
private void appendPosixInformation(FSAttributes attrs, List<String> infoList) {
^
symbol: class FSAttributes
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:147: error: cannot find symbol
private void appendWindowsInformation(FSAttributes attrs, List<String> infoList) {
^
symbol: class FSAttributes
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:166: error: cannot find symbol
private void appendDateInformation(FSAttributes attributes, List<String> infoList) {
^
symbol: class FSAttributes
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:189: error: cannot find symbol
private String startFolderSizeCalculation(FSFolder folder) {
^
symbol: class FSFolder
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:203: error: cannot find symbol
private void calculateFolderSize(FSFolder folder, ObjectContainer<Long> result) {
^
symbol: class FSFolder
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:203: error: cannot find symbol
private void calculateFolderSize(FSFolder folder, ObjectContainer<Long> result) {
^
symbol: class ObjectContainer
location: class DmgInfoGenerator
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgInfoGenerator.java:15: error: package org.catacombae.jparted.lib.fs does not exist
import org.catacombae.jparted.lib.fs.*;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/server/DmgServer.java:156: error: cannot find symbol
private static FSFile toFile(DmgFileReader dmgFileReader, String path) {
^
symbol: class FSFile
location: class DmgServer
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/server/DmgServer.java:9: error: package org.catacombae.jparted.lib.fs does not exist
import org.catacombae.jparted.lib.fs.*;
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:39: error: cannot find symbol
private List<FSFolder> rootFolders = new ArrayList<FSFolder>();
^
symbol: class FSFolder
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:40: error: cannot find symbol
private List<FileSystemHandler> fileSystemHandlers = new ArrayList<FileSystemHandler>();
^
symbol: class FileSystemHandler
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:50: error: cannot find symbol
if (WindowsLowLevelIO.isSystemSupported()) {
^
symbol: variable WindowsLowLevelIO
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:51: error: cannot find symbol
rras = new WindowsLowLevelIO(file.getAbsolutePath());
^
symbol: class WindowsLowLevelIO
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:57: error: cannot find symbol
if (ReadableCEncryptedEncodingStream.isCEncryptedEncoding(rras)) {
^
symbol: variable ReadableCEncryptedEncodingStream
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:62: error: cannot find symbol
if (UDIFRecognizer.isUDIF(rras)) {
^
symbol: variable UDIFRecognizer
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:65: error: cannot find symbol
UDIFFile udifFile = new UDIFFile(new ReadableFileStream(file.getAbsolutePath()));
^
symbol: class UDIFFile
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:65: error: cannot find symbol
UDIFFile udifFile = new UDIFFile(new ReadableFileStream(file.getAbsolutePath()));
^
symbol: class UDIFFile
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:68: error: cannot find symbol
UDIFRandomAccessStream stream = new UDIFRandomAccessStream(rras);
^
symbol: class UDIFRandomAccessStream
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:68: error: cannot find symbol
UDIFRandomAccessStream stream = new UDIFRandomAccessStream(rras);
^
symbol: class UDIFRandomAccessStream
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:75: error: cannot find symbol
PartitionSystemRecognizer partitionSystemRecognizer = new PartitionSystemRecognizer(rras);
^
symbol: class PartitionSystemRecognizer
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:75: error: cannot find symbol
PartitionSystemRecognizer partitionSystemRecognizer = new PartitionSystemRecognizer(rras);
^
symbol: class PartitionSystemRecognizer
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:76: error: cannot find symbol
PartitionSystem partitionSystem = partitionSystemRecognizer.getPartitionSystem();
^
symbol: class PartitionSystem
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:82: error: cannot find symbol
Partition[] partitions = partitionSystem.getUsedPartitionEntries();
^
symbol: class Partition
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:83: error: cannot find symbol
for (Partition partition : partitions) {
^
symbol: class Partition
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:96: error: cannot find symbol
FileSystemRecognizer fsr = new FileSystemRecognizer( rras, fsOffset );
^
symbol: class FileSystemRecognizer
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:96: error: cannot find symbol
FileSystemRecognizer fsr = new FileSystemRecognizer( rras, fsOffset );
^
symbol: class FileSystemRecognizer
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:97: error: package FileSystemRecognizer does not exist
FileSystemRecognizer.FileSystemType fsType = fsr.detectFileSystem();
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:99: error: package FileSystemRecognizer does not exist
if ( fsType == FileSystemRecognizer.FileSystemType.HFS_PLUS ||
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:100: error: package FileSystemRecognizer does not exist
fsType == FileSystemRecognizer.FileSystemType.HFSX ||
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:101: error: package FileSystemRecognizer does not exist
fsType == FileSystemRecognizer.FileSystemType.HFS ) {
^
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:103: error: cannot find symbol
final FileSystemMajorType fsMajorType;
^
symbol: class FileSystemMajorType
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:105: error: cannot find symbol
case HFS:
^
symbol: variable HFS
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:106: error: cannot find symbol
fsMajorType = FileSystemMajorType.APPLE_HFS;
^
symbol: variable FileSystemMajorType
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:108: error: cannot find symbol
case HFS_PLUS:
^
symbol: variable HFS_PLUS
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:109: error: cannot find symbol
fsMajorType = FileSystemMajorType.APPLE_HFS_PLUS;
^
symbol: variable FileSystemMajorType
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:111: error: cannot find symbol
case HFSX:
^
symbol: variable HFSX
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:112: error: cannot find symbol
fsMajorType = FileSystemMajorType.APPLE_HFSX;
^
symbol: variable FileSystemMajorType
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:119: error: cannot find symbol
FileSystemHandlerFactory factory = fsMajorType.createDefaultHandlerFactory();
^
symbol: class FileSystemHandlerFactory
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:120: error: cannot find symbol
if ( factory.isSupported( StandardAttribute.CACHING_ENABLED ) ) {
^
symbol: variable StandardAttribute
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:122: error: cannot find symbol
setBooleanAttribute(StandardAttribute.CACHING_ENABLED,
^
symbol: variable StandardAttribute
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:135: error: cannot find symbol
DataLocator dataLocator = new ReadableStreamDataLocator(stage1);
^
symbol: class DataLocator
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:135: error: cannot find symbol
DataLocator dataLocator = new ReadableStreamDataLocator(stage1);
^
symbol: class ReadableStreamDataLocator
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:137: error: cannot find symbol
FileSystemHandler fileSystemHandler = factory.createHandler(dataLocator);
^
symbol: class FileSystemHandler
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:142: error: cannot find symbol
if ( fileSystemHandler instanceof HFSXFileSystemHandler ) {
^
symbol: class HFSXFileSystemHandler
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:143: error: cannot find symbol
parser = new AttributesFileParser( (HFSXFileSystemHandler)fileSystemHandler, fileSystemHandler.getRoot( ).getName( ) );
^
symbol: class HFSXFileSystemHandler
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:168: error: cannot find symbol
FSFile fsFile = (FSFile)entry;
^
symbol: class FSFile
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:168: error: cannot find symbol
FSFile fsFile = (FSFile)entry;
^
symbol: class FSFile
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:169: error: cannot find symbol
FSFork mainFork = fsFile.getMainFork();
^
symbol: class FSFork
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:178: error: cannot find symbol
FSFork resourceFork = fsFile.getForkByType( FSForkType.MACOS_RESOURCE );
^
symbol: class FSFork
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:178: error: cannot find symbol
FSFork resourceFork = fsFile.getForkByType( FSForkType.MACOS_RESOURCE );
^
symbol: variable FSForkType
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:265: error: cannot find symbol
List<FSEntry> list = new ArrayList<FSEntry>();
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:265: error: cannot find symbol
List<FSEntry> list = new ArrayList<FSEntry>();
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:267: error: cannot find symbol
for ( FileSystemHandler handler : fileSystemHandlers ) {
^
symbol: class FileSystemHandler
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:272: error: cannot find symbol
FSEntry fileByPath = getFileByPath( path );
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:275: error: cannot find symbol
FSEntry [] listEntries = fileByPath.asFolder().listEntries();
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:276: error: cannot find symbol
for ( FSEntry entry : listEntries ) {
^
symbol: class FSEntry
location: class DmgFileReader
/nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/reader/DmgFileReader.java:291: error: cannot find symbol
FSFork mainFork = entry.asFile().getMainFork();
^
symbol: class FSFork
location: class DmgFileReader
Note: /nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
100 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':DMG:compileDmgJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':DMG:compileDmgJava'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:96)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:65)
at org.gradle.api.internal.tasks.execution.ActionEventFiringTaskExecuter.execute(ActionEventFiringTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.TimeoutTaskExecuter.execute(TimeoutTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.SnapshotAfterExecutionTaskExecuter.execute(SnapshotAfterExecutionTaskExecuter.java:38)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:49)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:61)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:55)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:44)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:337)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:325)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:318)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:304)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:51)
at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:37)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:39)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:110)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:106)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:59)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:43)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:152)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:120)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:117)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:106)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:85)
... 35 more
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 48s
234 actionable tasks: 35 executed, 199 up-to-date
Would you mind running the same command with the "-s" option and provide the stacktrace? Thanks.
@ghidra4 thanks for your reply. Updated my question with the stack trace.
It looks like you are missing dependencies for DMG. Be sure to follow the dev guide to get the entire catalog of dependencies.
I think I am not missing anything.
my flatRepo file:
[r668v698@themata final_tool]$ ls ~/flatRepo/
AXMLPrinter2.jar dex-reader-2.0.jar dex-translator-2.0.jar hfsx.jar
csframework.jar dex-reader-api-2.0.jar dex-writer-2.0.jar iharder-base64.jar
dex-ir-2.0.jar dex-tools-2.0.jar hfsx_dmglib.jar
The jars are there, maybe Gradle can't find them....
Did you follow the instructions to setup a flatDir-style repository ?
Thanks @ghidra4 I followed your instructions.
So, I was using the latest version of hfsexplorer (0.23). The problem solved by when I installed the latest version. Thanks for your help. Now I am getting build successful. I assume everything should work as expected.
Output:
[r668v698@themata ghidra]$ ../../../gradle-manual-5/gradle-5.0/bin/gradle -s buildGhidra
> Task :DMG:compileDmgJava
Note: /nfs/projects/zephyr/Ruturaj/ghidra_github/git/ghidra/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :Decompiler:buildDecompilerDocumentationPdfs
** Checking if required executables are installed. **
which: no fop in (/usr/share/Modules/bin:/usr/system/bin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/sbin:/tools/matlab/bin)
buildDecompilerDocumentationPdfs: An error occurred with this task. Here is the output:
** Checking if required executables are installed. **
which: no fop in (/usr/share/Modules/bin:/usr/system/bin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/sbin:/tools/matlab/bin)
Skipping task buildDecompilerDocumentationPdfs
> Task :createLocalInstallationZip
updateSlaFilesTimestamp: Updated timestamps to 89 .sla files.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 59s
374 actionable tasks: 161 executed, 213 up-to-date
Most helpful comment
It looks like you are missing dependencies for DMG. Be sure to follow the dev guide to get the entire catalog of dependencies.