Opened 5 years ago

Closed 5 years ago

#59086 closed defect (fixed)

pgAdmin3 @1.22.2 / libssh2 @1.9.0: fails to compile (error appears to originate from libssh2)

Reported by: scorpion7-7 Owned by: Chih-Hsuan Yen <yan12125@…>
Priority: Normal Milestone:
Component: ports Version: 2.6.0
Keywords: Cc: yan12125 (Chih-Hsuan Yen)
Port: pgAdmin3

Description

Upon attempting to install pgAdmin3, the dependency of libssh2 appears to create an error, yet "port install libssh2" appears to work without issue:

:info:build     mv -f $depbase.Tpo $depbase.Po
:info:build libssh2/crypt.c:70:25: error: field has incomplete type 'EVP_CIPHER_CTX' (aka 'struct evp_cipher_ctx_st')
:info:build     _libssh2_cipher_ctx h;
:info:build                         ^
:info:build /opt/local/include/openssl/ossl_typ.h:90:16: note: forward declaration of 'struct evp_cipher_ctx_st'
:info:build typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
:info:build                ^
:info:build 1 error generated.
:info:build make[3]: *** [libssh2/crypt.o] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_pgAdmin3/pgAdmin3/work/pgadmin3-1.22.2/pgadmin'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_pgAdmin3/pgAdmin3/work/pgadmin3-1.22.2/pgadmin'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_pgAdmin3/pgAdmin3/work/pgadmin3-1.22.2'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_pgAdmin3/pgAdmin3/work/pgadmin3-1.22.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_pgAdmin3/pgAdmin3/work/pgadmin3-1.22.2" && /usr/bin/make -w all install 
:info:build Exit code: 2
:error:build Failed to build pgAdmin3: command execution failed
UNAME = Darwin 18.7.0
OS = Mojave 10.14.6
Xcode = 11.0

Change History (3)

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

Keywords: pgAdmin3 libssh2 removed
Port: pgAdmin3 added; libssh2 removed

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

Cc: yan12125 added

comment:3 Changed 5 years ago by Chih-Hsuan Yen <yan12125@…>

Owner: set to Chih-Hsuan Yen <yan12125@…>
Resolution: fixed
Status: newclosed

In 754012d7ecde34437769b5ea4967997c6f89b351/macports-ports (master):

pgAdmin3: fix building by switching to libgcrypt

The best fix is going to pgAdmin4, but the latter is now a Python
package and requires many dependencies missing from MacPorts [1].

Also tried debundling libssh2 - need way too many patches.

No revbump as it's a build fix.

[1] https://www.archlinux.org/packages/community/x86_64/pgadmin4/

Closes: #59086

Note: See TracTickets for help on using tickets.