FreeBSD 12 and Postgres build failures

Поиск
Список
Период
Сортировка
От Karl Denninger
Тема FreeBSD 12 and Postgres build failures
Дата
Msg-id eb6e15af-5042-5965-ccba-a7af238db827@denninger.net
обсуждение исходный текст
Ответы Re: FreeBSD 12 and Postgres build failures  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: FreeBSD 12 and Postgres build failures  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список 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@denninger.net
The Market Ticker
[S/MIME encrypted email preferred]
Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: T L
Дата:
Сообщение: Re: printing JsonbPair values of input JSONB on server side?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes