[MacPorts] #60090: postgresql83: configure: error: library 'ssl' is required for OpenSSL

MacPorts noreply at macports.org
Wed Jan 8 10:10:32 UTC 2025


#60090: postgresql83: configure: error: library 'ssl' is required for OpenSSL
---------------------------+--------------------
  Reporter:  drjlevi6      |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.2
Resolution:                |   Keywords:  mojave
      Port:  postgresql83  |
---------------------------+--------------------

Comment (by ballapete):

 `openssl10` is the missing dependency, because `configure` checks for
 `SSL_library_init()`:

 {{{
 configure:7592: checking for SSL_library_init in -lssl
 configure:7622: /usr/bin/gcc-4.2 -no-cpp-precomp -o conftest -pipe -Os
 -arch ppc -Wall -Wmissing-prototypes -Wpointer-arith -Winline
 -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
 -I/opt/local/include -I/opt/local/include/ossp
 -I/opt/local/include/libxml2  -I/opt/local/include -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -L/opt/local/lib
 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib  -L/opt/local/lib
 conftest.c -lssl  -lcrypto -lz -lreadline -lm  >&5
 Undefined symbols:
   "_SSL_library_init", referenced from:
       _main in cckBIV4r.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 configure:7628: $? = 1
 configure: failed program was:
 | /* confdefs.h.  */
 |
 | #define PACKAGE_NAME "PostgreSQL"
 | #define PACKAGE_TARNAME "postgresql"
 | #define PACKAGE_VERSION "8.3.23"
 | #define PACKAGE_STRING "PostgreSQL 8.3.23"
 | #define PACKAGE_BUGREPORT "pgsql-bugs at postgresql.org"
 | #define PG_VERSION "8.3.23"
 | #define USE_INTEGER_DATETIMES 1
 | #define DEF_PGPORT 5432
 | #define DEF_PGPORT_STR "5432"
 | #define PG_VERSION_STR "PostgreSQL 8.3.23 on powerpc-apple-darwin9.8.0,
 compiled by GCC powerpc-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc.
 build 5577)"
 | #define ENABLE_THREAD_SAFETY 1
 | #define PG_KRB_SRVNAM "postgres"
 | #define USE_BONJOUR 1
 | #define USE_SSL 1
 | #define USE_LIBXML 1
 | #define USE_LIBXSLT 1
 | #define PG_VERSION_NUM 80323
 | #define HAVE_LIBM 1
 | #define HAVE_LIBREADLINE 1
 | #define HAVE_LIBZ 1
 | #define HAVE_SPINLOCKS 1
 | #define HAVE_LIBCRYPTO 1
 | /* end confdefs.h.  */
 |
 | /* Override any GCC internal prototype to avoid an error.
 |    Use char because int might match the return type of a GCC
 |    builtin and then its argument prototype would still apply.  */
 | #ifdef __cplusplus
 | extern "C"
 | #endif
 | char SSL_library_init ();
 | int
 | main ()
 | {
 | return SSL_library_init ();
 |   ;
 |   return 0;
 | }
 configure:7654: result: no
 configure:7664: error: library 'ssl' is required for OpenSSL
 }}}

 This sis similar to #71786.

-- 
Ticket URL: <https://trac.macports.org/ticket/60090#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list