Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#59692 closed defect (fixed)

ds9 does not build with OpenSSL 1.1.0

Reported by: carolinestraatman Owned by: lpsinger (Leo Singer)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: ds9

Description (last modified by mf2k (Frank Schima))

Hi,

I've migrated my ports following wiki:Migration. Unfortunately ds9 does not work anymore. I uninstalled it and cleaned the port. I've attached the log of trying to install it from scratch. Do you have any idea what I can do?

sudo port install ds9
--->  Computing dependencies for ds9
--->  Fetching archive for ds9
--->  Attempting to fetch ds9-7.6_0+x11.darwin_19.x86_64.tbz2 from https://packages.macports.org/ds9
--->  Attempting to fetch ds9-7.6_0+x11.darwin_19.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/ds9
--->  Attempting to fetch ds9-7.6_0+x11.darwin_19.x86_64.tbz2 from http://cph.dk.packages.macports.org/ds9
--->  Fetching distfiles for ds9
--->  Verifying checksums for ds9
--->  Extracting ds9
--->  Applying patches to ds9
--->  Configuring ds9
--->  Building ds9
Error: Failed to build ds9: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_ds9/ds9/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port ds9 failed

Regards,

Caroline

Attachments (3)

main.log (1.1 MB) - added by carolinestraatman 4 years ago.
main-ds9-fix-mp-59692.log (1.9 MB) - added by lpsinger (Leo Singer) 4 years ago.
main.2.log (1.1 MB) - added by carolinestraatman 4 years ago.
new build log 18 Nov

Change History (17)

Changed 4 years ago by carolinestraatman

Attachment: main.log added

comment:1 Changed 4 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting and add the port maintainer(s) to Cc (port info --maintainers ds9), if any.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: set to lpsinger
Status: newassigned
Type: updatedefect

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 4 years ago by lpsinger (Leo Singer)

I'm going to need some help from another MacPorts contributor here, since my employer will not permit me to update to Catalina yet.

comment:5 in reply to:  4 Changed 4 years ago by reneeotten (Renee Otten)

Replying to lpsinger:

I'm going to need some help from another MacPorts contributor here, since my employer will not permit me to update to Catalina yet.

I don't think this is related to Catalina (it fails for me on Mojave as well when building from source). If you look at the log file it complains about openssl on which this port doesn't declare a dependency... I guess that's the reason it wasn't checked/updated with the change to openssl 1.1. I suspect it might still require v1.0, but haven't tested that yet (probably using the old_openssl PG would be sufficient here?). On the other hand, updating to the latest version (8.0.1) first might be a good idea as could solve some compatibility issues already.

comment:6 Changed 4 years ago by lpsinger (Leo Singer)

Aha. From https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes:

All structures in libssl public header files have been removed so that they are "opaque" to library users. You should use the provided accessor functions instead

comment:7 Changed 4 years ago by lpsinger (Leo Singer)

Keywords: catalina removed
Status: assignedaccepted
Summary: ds9 does not build after OS upgrade to Catalinads9 does not build with OpenSSL 1.1.0

comment:8 Changed 4 years ago by carolinestraatman

Thanks for looking into this!

Your suggestions are quite technical.

What... should be updated to version 8.0.1? No clue about accessor functions. Something I should do? Or you as maintainer of ds9?

My openssl version is openssl @1.1.1d_0 (active).

comment:9 Changed 4 years ago by lpsinger (Leo Singer)

Your suggestions are quite technical.

Sorry about that, carolinestraatman. I don't have a resolution for you yet; I am still working on this and I simply leaving notes about my debugging.

What... should be updated to version 8.0.1?

Unfortunately, the latest version of ds9, 8.0.1, is still broken. The problem is that ds9 comes with a copy of tcltls which is too old to build against openssl >= 1.1.0. I was able to work around this by substituting a more recent version of tcltls (https://github.com/macports/macports-ports/pull/5814). It is getting further now, but I am getting a new error message. I see some similar issues in Trac for other ports, and this has to do with icu/libxml2 issues.

:info:build /usr/bin/clang -DPACKAGE_NAME=\"tksao\" -DPACKAGE_TARNAME=\"tksao\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tksao\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_tksao=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SHM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1  -I. -I./colorbar -I./fitsy++ -I./frame -I./list -I./magnifier -I./panner -I./util -I./vector -I./wcssubs -I./widget -I/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/include -I/opt/local/include/libxml2 -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tcl8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/unix" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic/ttk" -I/opt/local/include    -pipe  -g -Wall   -c `echo frame/fvcontour.C` -o frame/fvcontour.o
:info:build In file included from frame/frmarkerxml.C:7:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlreader.h:14:
:info:build In file included from /opt/local/include/libxml2/libxml/tree.h:1307:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlmemory.h:218:
:info:build In file included from /opt/local/include/libxml2/libxml/threads.h:35:
:info:build In file included from /opt/local/include/libxml2/libxml/globals.h:18:
:info:build In file included from /opt/local/include/libxml2/libxml/parser.h:810:
:info:build In file included from /opt/local/include/libxml2/libxml/encoding.h:31:
:info:build In file included from /opt/local/include/unicode/ucnv.h:53:
:info:build In file included from /opt/local/include/libxml2/unicode/uenum.h:23:
:info:build /opt/local/include/libxml2/unicode/localpointer.h:71:51: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
:info:build     static void* U_EXPORT2 operator new(size_t) = delete;
:info:build                                                   ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:72:53: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
:info:build     static void* U_EXPORT2 operator new[](size_t) = delete;
:info:build                                                     ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:74:58: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
:info:build     static void* U_EXPORT2 operator new(size_t, void*) = delete;
:info:build                                                          ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:224:34: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
:info:build     LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                                  ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:224:40: error: expected ';' at end of declaration list
:info:build     LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                                        ^
:info:build                                        ;
:info:build /opt/local/include/libxml2/unicode/localpointer.h:405:30: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
:info:build     LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                              ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:405:36: error: expected ';' at end of declaration list
:info:build     LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                                    ^
:info:build                                    ;
:info:build In file included from frame/frmarkerxml.C:7:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlreader.h:14:
:info:build In file included from /opt/local/include/libxml2/libxml/tree.h:1307:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlmemory.h:218:
:info:build In file included from /opt/local/include/libxml2/libxml/threads.h:35:
:info:build In file included from /opt/local/include/libxml2/libxml/globals.h:18:
:info:build In file included from /opt/local/include/libxml2/libxml/parser.h:810:
:info:build In file included from /opt/local/include/libxml2/libxml/encoding.h:31:
:info:build In file included from /opt/local/include/unicode/ucnv.h:53:
:info:build /opt/local/include/libxml2/unicode/uenum.h:68:1: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
:info:build U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
:info:build ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:568:53: note: expanded from macro 'U_DEFINE_LOCAL_OPEN_POINTER'
:info:build         LocalPointerClassName(LocalPointerClassName &&src) U_NOEXCEPT \
:info:build                                                     ^
:info:build In file included from frame/frmarkerxml.C:7:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlreader.h:14:
:info:build In file included from /opt/local/include/libxml2/libxml/tree.h:1307:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlmemory.h:218:
:info:build In file included from /opt/local/include/libxml2/libxml/threads.h:35:
:info:build In file included from /opt/local/include/libxml2/libxml/globals.h:18:
:info:build In file included from /opt/local/include/libxml2/libxml/parser.h:810:
:info:build In file included from /opt/local/include/libxml2/libxml/encoding.h:31:
:info:build In file included from /opt/local/include/unicode/ucnv.h:53:
:info:build /opt/local/include/libxml2/unicode/uenum.h:68:1: error: expected ';' at end of declaration list
:info:build /opt/local/include/libxml2/unicode/localpointer.h:568:60: note: expanded from macro 'U_DEFINE_LOCAL_OPEN_POINTER'
:info:build         LocalPointerClassName(LocalPointerClassName &&src) U_NOEXCEPT \
:info:build                                                            ^
:info:build /opt/local/include/libxml2/unicode/platform.h:529:23: note: expanded from macro 'U_NOEXCEPT'
:info:build #   define U_NOEXCEPT noexcept
:info:build                       ^
:info:build In file included from frame/frmarkerxml.C:7:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlreader.h:14:
:info:build In file included from /opt/local/include/libxml2/libxml/tree.h:1307:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlmemory.h:218:
:info:build In file included from /opt/local/include/libxml2/libxml/threads.h:35:
:info:build In file included from /opt/local/include/libxml2/libxml/globals.h:18:
:info:build In file included from /opt/local/include/libxml2/libxml/parser.h:810:
:info:build In file included from /opt/local/include/libxml2/libxml/encoding.h:31:
:info:build /opt/local/include/unicode/ucnv.h:585:1: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
:info:build U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterPointer, UConverter, ucnv_close);
:info:build ^
:info:build /opt/local/include/libxml2/unicode/localpointer.h:568:53: note: expanded from macro 'U_DEFINE_LOCAL_OPEN_POINTER'
:info:build         LocalPointerClassName(LocalPointerClassName &&src) U_NOEXCEPT \
:info:build                                                     ^
:info:build In file included from frame/frmarkerxml.C:7:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlreader.h:14:
:info:build In file included from /opt/local/include/libxml2/libxml/tree.h:1307:
:info:build In file included from /opt/local/include/libxml2/libxml/xmlmemory.h:218:
:info:build In file included from /opt/local/include/libxml2/libxml/threads.h:35:
:info:build In file included from /opt/local/include/libxml2/libxml/globals.h:18:
:info:build In file included from /opt/local/include/libxml2/libxml/parser.h:810:
:info:build In file included from /opt/local/include/libxml2/libxml/encoding.h:31:
:info:build /opt/local/include/unicode/ucnv.h:585:1: error: expected ';' at end of declaration list
:info:build /opt/local/include/libxml2/unicode/localpointer.h:568:60: note: expanded from macro 'U_DEFINE_LOCAL_OPEN_POINTER'
:info:build         LocalPointerClassName(LocalPointerClassName &&src) U_NOEXCEPT \
:info:build                                                            ^
:info:build /opt/local/include/libxml2/unicode/platform.h:529:23: note: expanded from macro 'U_NOEXCEPT'
:info:build #   define U_NOEXCEPT noexcept
:info:build                       ^
:info:build /usr/bin/clang -DPACKAGE_NAME=\"tksao\" -DPACKAGE_TARNAME=\"tksao\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tksao\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_tksao=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SHM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1  -I. -I./colorbar -I./fitsy++ -I./frame -I./list -I./magnifier -I./panner -I./util -I./vector -I./wcssubs -I./widget -I/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/include -I/opt/local/include/libxml2 -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tcl8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/unix" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic/ttk" -I/opt/local/include    -pipe  -g -Wall   -c `echo frame/grid.C` -o frame/grid.o
:info:build /usr/bin/clang -DPACKAGE_NAME=\"tksao\" -DPACKAGE_TARNAME=\"tksao\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tksao\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_tksao=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SHM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1  -I. -I./colorbar -I./fitsy++ -I./frame -I./list -I./magnifier -I./panner -I./util -I./vector -I./wcssubs -I./widget -I/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/include -I/opt/local/include/libxml2 -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tcl8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/unix" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic/ttk" -I/opt/local/include    -pipe  -g -Wall   -c `echo frame/grid25d.C` -o frame/grid25d.o
:info:build /usr/bin/clang -DPACKAGE_NAME=\"tksao\" -DPACKAGE_TARNAME=\"tksao\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tksao\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_tksao=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SHM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1  -I. -I./colorbar -I./fitsy++ -I./frame -I./list -I./magnifier -I./panner -I./util -I./vector -I./wcssubs -I./widget -I/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/include -I/opt/local/include/libxml2 -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tcl8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/unix" -I"/opt/local/var/macports/build/_Users_lpsinger_src_lscsoft-macports_testing_science_ds9/ds9/work/SAOImageDS9/tk8.6/generic/ttk" -I/opt/local/include    -pipe  -g -Wall   -c `echo frame/grid2d.C` -o frame/grid2d.o
:info:build 7 warnings and 4 errors generated.

Changed 4 years ago by lpsinger (Leo Singer)

Attachment: main-ds9-fix-mp-59692.log added

comment:10 Changed 4 years ago by lpsinger (Leo Singer)

Resolution: fixed
Status: acceptedclosed

In 5f64515ab893fb63aff60e43d90c08775de9ef94/macports-ports (master):

ds9: build against openssl 1.0, fix numerous other issues

Fixes: #59692

comment:11 Changed 4 years ago by lpsinger (Leo Singer)

carolinestraatman, is this working now?

comment:12 Changed 4 years ago by carolinestraatman

Hi Leo, unfortunately it still does not build... I'll attach the log file again.

Changed 4 years ago by carolinestraatman

Attachment: main.2.log added

new build log 18 Nov

comment:13 Changed 4 years ago by lpsinger (Leo Singer)

carolinestraatman, did you run 'sudo port selfupdate' first?

comment:14 Changed 4 years ago by carolinestraatman

Thank you, Leo. I did now and managed to build it. Thanks so much for your help!

Note: See TracTickets for help on using tickets.