DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th August 2022
srivo srivo is offline
Port Guard
 
Join Date: Nov 2015
Location: Canada
Posts: 19
Default Anyone succeeded in installing pgadmin4 on OpenBSD 7.1?

I'm trying to install pgadmin4 on OpenBSD using Python3.9

pip always fail trying to install cryptography 3.4.8 with the following error:
Code:
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
Reply With Quote
  #2   (View Single Post)  
Old 27th August 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

I never installed that, but there is a port of an earlier version: https://openports.pl/search?file=&de...y=&maintainer=
Code:
Search result
    pgadmin3-1.22.1p8 - administration and development platform for PostgreSQL
    phpPgAdmin-5.6.0p1 - tool to handle the administration of PostgreSQL over the web
Maybe you can look in the source code files of that port to figure out what needs to be done to get the newer version 4 running

EDIT: Nope
According to https://www.pgadmin.org/download/ version 4 is:
Quote:
pgAdmin 4

pgAdmin 4 is a complete rewrite of pgAdmin, built using Python and Javascript/jQuery. A desktop runtime written in NWjs allows it to run standalone for individual users, or the web application code may be deployed directly on a web server for use by one or more users through their web browser. The software has the look and feels of a desktop application whatever the runtime environment is, and vastly improves on pgAdmin III with updated user interface elements, multi-user/web deployment options, dashboards, and a more modern design.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 27th August 2022 at 09:56 PM.
Reply With Quote
  #3   (View Single Post)  
Old 28th August 2022
srivo srivo is offline
Port Guard
 
Join Date: Nov 2015
Location: Canada
Posts: 19
Default

Like they said here: https://cryptography.io/en/latest/in...rted-platforms
I have make sure I have OpenSSl and libffi installed. It look like the error is related to openSSl.

Code:
build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:983:14: error: typedef redefinition with different types ('void' vs 'struct sct_st')
      typedef void SCT;
                   ^
      /usr/include/openssl/ossl_typ.h:190:23: note: previous definition is here
      typedef struct sct_st SCT;
                            ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1055:11: error: incomplete definition of type 'struct dh_st'
          if (dh->q) {
              ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1056:22: error: incomplete definition of type 'struct dh_st'
              if (BN_cmp(dh->g, BN_value_one()) <= 0)
                         ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1058:27: error: incomplete definition of type 'struct dh_st'
              else if (BN_cmp(dh->g, dh->p) >= 0)
                              ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1058:34: error: incomplete definition of type 'struct dh_st'
              else if (BN_cmp(dh->g, dh->p) >= 0)
                                     ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1062:35: error: incomplete definition of type 'struct dh_st'
                  if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx))
                                      ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1062:42: error: incomplete definition of type 'struct dh_st'
                  if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx))
                                             ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1062:49: error: incomplete definition of type 'struct dh_st'
                  if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx))
                                                    ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1067:30: error: incomplete definition of type 'struct dh_st'
              r = BN_is_prime_ex(dh->q, BN_prime_checks, ctx, NULL);
                                 ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1073:31: error: incomplete definition of type 'struct dh_st'
              if (!BN_div(t1, t2, dh->p, dh->q, ctx))
                                  ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1073:38: error: incomplete definition of type 'struct dh_st'
              if (!BN_div(t1, t2, dh->p, dh->q, ctx))
                                         ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1077:15: error: incomplete definition of type 'struct dh_st'
              if (dh->j && BN_cmp(dh->j, t1))
                  ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1077:31: error: incomplete definition of type 'struct dh_st'
              if (dh->j && BN_cmp(dh->j, t1))
                                  ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1080:29: error: incomplete definition of type 'struct dh_st'
          } else if (BN_is_word(dh->g, DH_GENERATOR_2)) {
                                ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1081:27: error: incomplete definition of type 'struct dh_st'
              l = BN_mod_word(dh->p, 24);
                              ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1086:29: error: incomplete definition of type 'struct dh_st'
          } else if (BN_is_word(dh->g, DH_GENERATOR_5)) {
                                ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1087:27: error: incomplete definition of type 'struct dh_st'
              l = BN_mod_word(dh->p, 10);
                              ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1095:26: error: incomplete definition of type 'struct dh_st'
          r = BN_is_prime_ex(dh->p, BN_prime_checks, ctx, NULL);
                             ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1100:17: error: incomplete definition of type 'struct dh_st'
          else if (!dh->q) {
                    ~~^
      /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st'
      typedef struct dh_st DH;
                     ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
Reply With Quote
  #4   (View Single Post)  
Old 28th August 2022
srivo srivo is offline
Port Guard
 
Join Date: Nov 2015
Location: Canada
Posts: 19
Default

OK, I think I found the problem! OpenBSD default libreSSL library is 3.5.2 and this version of python Cryptography 3.4.8 need an earlier version of it! So I probably need to tell python to use openssl11!

I'm far from a pyhton expert will search how to do that!

Last edited by srivo; 28th August 2022 at 04:37 PM. Reason: change openSSL for libreSSl
Reply With Quote
  #5   (View Single Post)  
Old 28th August 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You may need to actually use a packaged version of OpenSSL. OpenBSD replaced OpenSSL with LibreSSL in 2014.

Note the warning I've highlighted below. I've also redacted the ports@ mailing list to avoid email scrapers:
Code:
$ pkg_info openssl-3.0.5
Information for http://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/openssl-3.0.5.tgz

Comment:
TLS/SSL library and tools

Description:
OpenSSL is an open-source toolkit implementing the Secure Sockets
Layer (SSL) and Transport Layer Security (TLS) protocols as well as a
full-strength general purpose cryptography library.

This package is not intended for general-purpose use in OpenBSD - it
is present for test/comparison purposes, and occasionally to provide
support for applications which cannot be made compatible with LibreSSL
(mostly due to use of removed APIs); in the latter case care must be
taken - it will conflict if library dependencies use LibreSSL libraries.

Maintainer: The OpenBSD ports mailing-list <ports@ [redacted]>

WWW: https://www.openssl.org/
$
Reply With Quote
  #6   (View Single Post)  
Old 28th August 2022
srivo srivo is offline
Port Guard
 
Join Date: Nov 2015
Location: Canada
Posts: 19
Default

Ok thanks!

I think the solution will be to put the openSSL library in the Python virtual environment to avoid conflict.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-installing OpenBSD stanl OpenBSD Installation and Upgrading 13 19th August 2022 07:25 AM
Installing KDE on OpenBSD 5.2 EverydayDiesel OpenBSD General 3 17th January 2013 11:25 PM
Installing Cacti on OpenBSD 4.9 ai-danno Guides 6 23rd September 2011 06:59 PM
OpenBSD installing OpenBSD from USB ocicat News 5 5th April 2010 10:51 PM
installing openbsd bsdnewbie999 OpenBSD Installation and Upgrading 12 4th May 2009 11:55 AM


All times are GMT. The time now is 12:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick