FreeBSD 12 and Postgres build failures

From: Karl Denninger <karl(at)denninger(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: FreeBSD 12 and Postgres build failures
Date: 2019-03-19 21:48:47
Message-ID: eb6e15af-5042-5965-ccba-a7af238db827@denninger.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Both 10.7 and 11.2 fail on FreeBSD 12-STABLE if --with-openssl is part
of the configure string.

The issue appears to be that FreeBSD updated OpenSSL to OpenSSL
1.1.1a-freebsd  20 Nov 2018 where the 11.x release of FreeBSD (and
previous was on 1.0.x -- e.g. OpenSSL 1.0.2o-freebsd  27 Mar 2018)

The errors start here:

gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -Wno-format-truncation
-Wno-stringop-truncation -O2 -I../../../src/include    -c -o
be-secure-openssl.o be-secure-openssl.c
be-secure-openssl.c: In function 'be_tls_init':
be-secure-openssl.c:85:3: warning: implicit declaration of function
'OPENSSL_init_ssl'; did you mean 'OPENSSL_init'?
[-Wimplicit-function-declaration]
   OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
   ^~~~~~~~~~~~~~~~
   OPENSSL_init
be-secure-openssl.c:85:20: error: 'OPENSSL_INIT_LOAD_CONFIG' undeclared
(first use in this function); did you mean 'OPENSSL_NO_PADLOCK'?
   OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    OPENSSL_NO_PADLOCK
be-secure-openssl.c:85:20: note: each undeclared identifier is reported
only once for each function it appears in
be-secure-openssl.c: In function 'my_sock_read':
be-secure-openssl.c:665:35: warning: implicit declaration of function
'BIO_get_data'; did you mean 'BIO_get_ex_data'?
[-Wimplicit-function-declaration]
   res = secure_raw_read(((Port *) BIO_get_data(h)), buf, size);
                                   ^~~~~~~~~~~~
                                   BIO_get_ex_data
be-secure-openssl.c:665:26: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   res = secure_raw_read(((Port *) BIO_get_data(h)), buf, size);
                          ^

Has anyone looked into and dealt with this yet or have suggestions?

--
Karl Denninger
karl(at)denninger(dot)net <mailto:karl(at)denninger(dot)net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-03-19 21:50:59 Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes
Previous Message T L 2019-03-19 20:49:09 Re: printing JsonbPair values of input JSONB on server side?