Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails: unable to find symbols #326

Closed
yurivict opened this issue Sep 23, 2024 · 2 comments
Closed

Compilation fails: unable to find symbols #326

yurivict opened this issue Sep 23, 2024 · 2 comments

Comments

@yurivict
Copy link

compile:
    [javac] Compiling 106 source files to /usr/ports/misc/hdfview/work/HDFView-3.3.2/build/classes
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5Datatype.java:1045: error: cannot find symbol
    [javac]                         tsize = HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE;
    [javac]                                              ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5Datatype.java:1427: error: cannot find symbol
    [javac]                                                          : HDF5Constants.H5T_NATIVE_FLOAT16);
    [javac]                                                                         ^
    [javac]   symbol:   variable H5T_NATIVE_FLOAT16
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5Datatype.java:2350: error: cannot find symbol
    [javac]         String region_desc = H5.H5Rget_name_string(container, HDF5Constants.H5R_OBJECT, refarr);
    [javac]                                ^
    [javac]   symbol:   method H5Rget_name_string(long,int,byte[])
    [javac]   location: class H5
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5Datatype.java:2368: error: cannot find symbol
    [javac]         String region_desc = H5.H5Rget_name_string(container, HDF5Constants.H5R_DATASET_REGION, refarr);
    [javac]                                ^
    [javac]   symbol:   method H5Rget_name_string(long,int,byte[])
    [javac]   location: class H5
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5ReferenceType.java:445: error: cannot find symbol
    [javac]                                 H5.H5Rget_name_string(getFID(), HDF5Constants.H5R_DATASET_REGION, refarr);
    [javac]                                   ^
    [javac]   symbol:   method H5Rget_name_string(long,int,byte[])
    [javac]   location: class H5
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5ReferenceType.java:453: error: cannot find symbol
    [javac]                             rf.obj_name = H5.H5Rget_name_string(getFID(), HDF5Constants.H5R_OBJECT, refarr);
    [javac]                                             ^
    [javac]   symbol:   method H5Rget_name_string(long,int,byte[])
    [javac]   location: class H5
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.hdfview/hdf/view/TableView/DefaultBaseTableView.java:2736: error: cannot find symbol
    [javac]                 if (rElements.length == HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE) {
    [javac]                                                      ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.hdfview/hdf/view/TableView/DefaultCompoundDSTableView.java:747: error: cannot find symbol
    [javac]                     valIsRegRef = (selectedType.getDatatypeSize() == HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE);
    [javac]                                                                                   ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.hdfview/hdf/view/TableView/DefaultScalarDSTableView.java:1003: error: cannot find symbol
    [javac]         if (refarr.length == HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE)
    [javac]                                           ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.hdfview/hdf/view/TreeView/DefaultTreeView.java:3340: error: cannot find symbol
    [javac]                                   HDF5Constants.H5F_LIBVER_V114,     HDF5Constants.H5F_LIBVER_LATEST};
    [javac]                                                ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.hdfview/hdf/view/TreeView/DefaultTreeView.java:3343: error: cannot find symbol
    [javac]                                    HDF5Constants.H5F_LIBVER_V112, HDF5Constants.H5F_LIBVER_V114,
    [javac]                                                                                ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5CompoundAttr.java:1775: error: cannot find symbol
    [javac]                                          HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE) {
    [javac]                                                       ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5CompoundAttr.java:1825: error: cannot find symbol
    [javac]                     else if (dtypesize == HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE) {
    [javac]                                                        ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:141: error: cannot find symbol
    [javac]     public static final int LIBVER_V114 = HDF5Constants.H5F_LIBVER_V114;
    [javac]                                                        ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:1098: error: cannot find symbol
    [javac]             low = HDF5Constants.H5F_LIBVER_V114;
    [javac]                                ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:1113: error: cannot find symbol
    [javac]             high = HDF5Constants.H5F_LIBVER_V114;
    [javac]                                 ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:1158: error: cannot find symbol
    [javac]                 low = HDF5Constants.H5F_LIBVER_V114;
    [javac]                                    ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:1173: error: cannot find symbol
    [javac]                 high = HDF5Constants.H5F_LIBVER_V114;
    [javac]                                     ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:1245: error: cannot find symbol
    [javac]         else if (libver[0] == HDF5Constants.H5F_LIBVER_V114)
    [javac]                                            ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5File.java:1258: error: cannot find symbol
    [javac]         else if (libver[1] == HDF5Constants.H5F_LIBVER_V114)
    [javac]                                            ^
    [javac]   symbol:   variable H5F_LIBVER_V114
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5ScalarAttr.java:1090: error: cannot find symbol
    [javac]                                          HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE) {
    [javac]                                                       ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] /usr/ports/misc/hdfview/work/HDFView-3.3.2/src/org.hdfgroup.object/hdf/object/h5/H5ScalarAttr.java:1139: error: cannot find symbol
    [javac]                     else if (dtype.getDatatypeSize() == HDF5Constants.H5R_DSET_REG_REF_BUF_SIZE) {
    [javac]                                                                      ^
    [javac]   symbol:   variable H5R_DSET_REG_REF_BUF_SIZE
    [javac]   location: class HDF5Constants
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 22 errors

Version: 3.3.2
hdf-4.2.15_5
hdf5-1.12.2
Java 21
FreeBSD 14.1

@byrnHDF
Copy link
Collaborator

byrnHDF commented Sep 23, 2024

HDFView 3.3.2 release was built and tested with HDF 4.3.0 and HDF5 1.14.4.

@yurivict
Copy link
Author

yurivict commented Sep 24, 2024

The build succeeded with these versions.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants