Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646888 - dev-db/pgpool2-3.7.1 - add support for dev-libs/libressl - main.c:(.text.startup+0x31b): undefined reference to `OPENSSL_init_ssl'
Summary: dev-db/pgpool2-3.7.1 - add support for dev-libs/libressl - main.c:(.text.star...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on: 665104
Blocks: libressl-support
  Show dependency tree
 
Reported: 2018-02-07 10:53 UTC by Sandino Araico Sanchez
Modified: 2018-09-21 16:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,52.41 KB, text/plain)
2018-02-07 10:53 UTC, Sandino Araico Sanchez
Details
emerge --info (pgpool2-3.7.1-emerge-info,8.97 KB, text/plain)
2018-02-07 10:55 UTC, Sandino Araico Sanchez
Details
emerge -pqv (pgpool2-3.7.1-emerge-pqv,304 bytes, text/plain)
2018-02-07 10:58 UTC, Sandino Araico Sanchez
Details
libressl patch (pgpool-II-3.7.1-libressl.patch,2.04 KB, patch)
2018-02-07 11:14 UTC, Sandino Araico Sanchez
Details | Diff
ebuild with libressl USE flag (pgpool2-3.7.1-r1.ebuild,2.55 KB, text/plain)
2018-02-07 11:32 UTC, Sandino Araico Sanchez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandino Araico Sanchez 2018-02-07 10:53:57 UTC
Created attachment 518344 [details]
build.log

libtool: link: x86_64-pc-linux-gnu-gcc -O3 -mtune=native -march=native -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -o pgpool main/main.o main/pool_globals.o main/pgpool_main.o main/health_check.o config/pool_config.o config/pool_config_variables.o pcp_con/pcp_child.o pcp_con/pcp_worker.o pcp_con/recovery.o auth/md5.o auth/pool_auth.o auth/pool_passwd.o auth/pool_hba.o protocol/pool_proto2.o protocol/child.o protocol/pool_process_query.o protocol/pool_connection_pool.o protocol/pool_proto_modules.o query_cache/pool_memqcache.o protocol/CommandComplete.o context/pool_session_context.o context/pool_process_context.o context/pool_query_context.o streaming_replication/pool_worker_child.o rewrite/pool_timestamp.o rewrite/pool_lobj.o utils/pool_select_walker.o utils/strlcpy.o utils/psprintf.o utils/pool_params.o utils/ps_status.o utils/pool_shmem.o utils/pool_sema.o utils/pool_signal.o utils/pool_path.o utils/pool_ip.o utils/pool_relcache.o utils/pool_process_reporting.o utils/pool_ssl.o utils/pool_stream.o utils/getopt_long.o utils/mmgr/mcxt.o utils/mmgr/aset.o utils/error/elog.o utils/error/assert.o utils/pcp/pcp_stream.o utils/regex_array.o utils/json_writer.o utils/json.o utils/statistics.o parser/nodes.o  -L/usr/lib64/postgresql-10/lib64 -lpq parser/libsql-parser.a watchdog/lib-watchdog.a -lpthread -lpam -lssl -lcrypto -lcrypt -lresolv -lnsl -lm
main/main.o: In function `main':
main.c:(.text.startup+0x31b): undefined reference to `OPENSSL_init_ssl'
watchdog/lib-watchdog.a(wd_utils.o): In function `wd_calc_hash':
wd_utils.c:(.text+0x52e): undefined reference to `HMAC_CTX_new'
wd_utils.c:(.text+0x53b): undefined reference to `HMAC_CTX_reset'
wd_utils.c:(.text+0x58b): undefined reference to `HMAC_CTX_reset'
wd_utils.c:(.text+0x595): undefined reference to `HMAC_CTX_free'
collect2: error: ld returned 1 exit status
Comment 1 Sandino Araico Sanchez 2018-02-07 10:55:45 UTC
Created attachment 518346 [details]
emerge --info
Comment 2 Sandino Araico Sanchez 2018-02-07 10:58:08 UTC
Created attachment 518348 [details]
emerge -pqv
Comment 3 Sandino Araico Sanchez 2018-02-07 11:14:31 UTC
Created attachment 518352 [details, diff]
libressl patch

=dev-db/pgpool2-3.7.1 compiles correctly on my machine with attached patch.
Please try.
Comment 4 Sandino Araico Sanchez 2018-02-07 11:32:30 UTC
Created attachment 518354 [details]
ebuild with libressl USE flag
Comment 5 Sandino Araico Sanchez 2018-02-10 19:05:58 UTC
Patch accepted in upstream

http://www.sraoss.jp/pipermail/pgpool-hackers/2018-February/002717.html
Comment 6 Aaron W. Swenson gentoo-dev 2018-07-29 18:34:44 UTC
This is included with the 3.7.3 bump. We'll be aiming to stable 3.7.4.

commit 1f0b3b500534f88286f870d6d610b8a15d676f62
Author: Aaron W. Swenson <titanofold@gentoo.org>
Date:   Fri Apr 27 16:58:59 2018 -0400

    dev-db/pgpool2: Bump to 3.7.3

    Package-Manager: Portage-2.3.24, Repoman-2.3.6
Comment 7 Larry the Git Cow gentoo-dev 2018-08-03 13:27:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=079ff486c23fdb326e5d58df1433b854ca900e94

commit 079ff486c23fdb326e5d58df1433b854ca900e94
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2018-08-03 13:26:51 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2018-08-03 13:26:51 +0000

    dev-db/pgpool2: Bump to 3.7.5
    
    Add a couple patches to fix a few options in
    configure.ac. --without-pam no longer acts as if --with-pam was
    given. Now uses pkg-config to get any special settings for
    libmemcached rather than using fixed sub-directories
    (${user_provided_path}/{include,lib,…}). Lastly, introduced AX_PTHREAD
    to link in the appropriate threading library to fix bug 616302.
    
    If libmemcached was built with USE=sasl which builds against
    cyrus-sasl. cyrus-sasl builds against a threading library which
    necessitates including the same threading in pgpool2 despite pgpool2
    not being a threaded program.
    
    pgpool2 is now able to build against LibreSSL as well as OpenSSL. The
    ebuild now reflects this fact
    
    Bug: https://bugs.gentoo.org/616302
    Bug: https://bugs.gentoo.org/646888
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-db/pgpool2/Manifest                            |   1 +
 .../pgpool2/files/pgpool-configure-memcached.patch |  64 +++++++++++++
 dev-db/pgpool2/files/pgpool-configure-pam.patch    |  25 +++++
 .../pgpool2/files/pgpool-configure-pthread.patch   |  13 +++
 dev-db/pgpool2/files/pgpool2.initd                 |  14 ++-
 dev-db/pgpool2/pgpool2-3.7.5.ebuild                | 104 +++++++++++++++++++++
 dev-db/pgpool2/pgpool2-9999.ebuild                 |  42 +++++----
 dev-db/pgpool2/pgpool2-9999.ebuild.orig            | 104 +++++++++++++++++++++
 8 files changed, 343 insertions(+), 24 deletions(-)