Opened 5 years ago

Last modified 2 months ago

#60090 new defect

postgresql83: configure: error: library 'ssl' is required for OpenSSL

Reported by: drjlevi6 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: mojave Cc: cooljeanius (Eric Gallager), ballapete (Peter "Pete" Dyballa)
Port: postgresql83

Description (last modified by mf2k (Frank Schima))

With any of these commands, I get:

--->  Configuring postgresql83
Error: Failed to configure postgresql83, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgresql83/postgresql83/work/postgresql-8.3.23/config.log
Error: Failed to configure postgresql83: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgresql83/postgresql83/main.log for details.

Attachments (3)

configPlusMainLogs.log.txt (144.5 KB) - added by drjlevi6 5 years ago.
merged files config.log and main.log referred to by installation log
main.log (84.1 KB) - added by ballapete (Peter "Pete" Dyballa) 2 months ago.
Main.log from PPC Tiger, Mac OS X 10.4.11
config.log (43.8 KB) - added by ballapete (Peter "Pete" Dyballa) 2 months ago.
Config.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (19)

Changed 5 years ago by drjlevi6

Attachment: configPlusMainLogs.log.txt added

merged files config.log and main.log referred to by installation log

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

The Milestone field is for use by Macports team members only, please do not set it.

In the future, please use WikiFormatting.

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

Description: modified (diff)
Milestone: MacPorts 2.7.0

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

Error is:

:info:configure configure: error: library 'ssl' is required for OpenSSL
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgresql83/postgresql83/work/postgresql-8.3.23" && ./configure --prefix=/opt/local --sysconfdir=/opt/local/etc/postgresql83 --bindir=/opt/local/lib/postgresql83/bin --libdir=/opt/local/lib/postgresql83 --includedir=/opt/local/include/postgresql83 --datadir=/opt/local/share/postgresql83 --mandir=/opt/local/share/man --without-docdir --with-includes=/opt/local/include --with-libraries=/opt/local/lib --with-openssl --without-bonjour --with-readline --with-zlib --with-libxml --with-libxslt --enable-thread-safety --enable-integer-datetimes --with-ossp-uuid

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

See also #58630.

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

Summary: Configure Error: Cannot Install/Upgrade/Rebuild postgresql83postgresql83: configure: error: library 'ssl' is required for OpenSSL

comment:6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

While we should fix this, is there a good reason why you need postgresql83? It is highly obsolete. The current version is postgresql12.

comment:7 Changed 5 years ago by drjlevi6

postgresql83 was a dependency of one of the ports I was trying to install yesterday, I believe either gs, gv or ghostscript. Unfortunately, it appears to have been at the end of a chain of dependencies of one of these, and I can't tell which.

comment:8 Changed 4 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:9 Changed 6 months ago by barracuda156

It should likely use openssl 1.0.

Too many ports were broken by MacPorts-wide switches to a newer version of something without checking if that actually works.

comment:10 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

comment:11 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

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@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.

comment:12 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

postgresql84 has the correct dependency and enters the build stage:

Full Name: postgresql84 @8.4.22_7
Extract Dependencies: lbzip2
Build Dependencies:   bison
Library Dependencies: readline, openssl10, zlib, libxml2, libxslt, ossp-uuid

comment:13 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

With a little change, bringing postgresql83's Portfile closer to that of postgresql84, postgresql83 configures, builds, installs, and tests fine.

comment:14 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Since postgresql84 exists, builds, and is supported by select this could be removed?

comment:15 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

The case is similar to #71787.

comment:16 Changed 2 months ago by ballapete (Peter "Pete" Dyballa)

A similar failure happens on PPC Tiger, Mac OS X 10.4.11. Obviously openssl10 is needed, not openssl.

Changed 2 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

Changed 2 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: config.log added

Config.log from PPC Tiger, Mac OS X 10.4.11

Note: See TracTickets for help on using tickets.