Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674416 - dev-cpp/commoncpp2-1.8.1-r3 : ssl.cpp:358:23: error: SSLv3_client_method was not declared in this scope
Summary: dev-cpp/commoncpp2-1.8.1-r3 : ssl.cpp:358:23: error: SSLv3_client_method was ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: openssl-1.1 libressl-2.8.0
  Show dependency tree
 
Reported: 2019-01-03 16:51 UTC by Toralf Förster
Modified: 2019-04-23 13:47 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.01 KB, text/plain)
2019-01-03 16:51 UTC, Toralf Förster
Details
dev-cpp:commoncpp2-1.8.1-r3:20190103-000708.log (dev-cpp:commoncpp2-1.8.1-r3:20190103-000708.log,112.39 KB, text/plain)
2019-01-03 16:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,221.11 KB, text/plain)
2019-01-03 16:51 UTC, Toralf Förster
Details
environment (environment,89.62 KB, text/plain)
2019-01-03 16:51 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.75 KB, application/x-bzip)
2019-01-03 16:51 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,15.22 KB, application/x-bzip)
2019-01-03 16:52 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,31.80 KB, application/x-bzip)
2019-01-03 16:52 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-01-03 16:51:40 UTC
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -O2 -pipe -march=native -c ssl.cpp  -fPIC -DPIC -o .libs/ssl.o
ssl.cpp: In member function ‘bool ost::SSLStream::getSession()’:
ssl.cpp:358:23: error: ‘SSLv3_client_method’ was not declared in this scope
     ctx = SSL_CTX_new(SSLv3_client_method());
                       ^~~~~~~~~~~~~~~~~~~
ssl.cpp:358:23: note: suggested alternative: ‘SSLv23_client_method’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-developer_20181229-151642

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.31.1 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-cpp/commoncpp2
[ebuild  N    ] dev-cpp/commoncpp2-1.8.1-r3  USE="ipv6 ssl -debug -doc -examples -gnutls -static-libs"
Comment 1 Toralf Förster gentoo-dev 2019-01-03 16:51:43 UTC
Created attachment 559594 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-01-03 16:51:47 UTC
Created attachment 559596 [details]
dev-cpp:commoncpp2-1.8.1-r3:20190103-000708.log
Comment 3 Toralf Förster gentoo-dev 2019-01-03 16:51:52 UTC
Created attachment 559598 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-01-03 16:51:57 UTC
Created attachment 559600 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-01-03 16:51:59 UTC
Created attachment 559602 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-01-03 16:52:02 UTC
Created attachment 559604 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-01-03 16:52:05 UTC
Created attachment 559606 [details]
temp.tbz2
Comment 8 Stefan Strogin gentoo-dev 2019-02-20 20:16:36 UTC
Exactly the same error with libressl-2.8.3. Can we add it to the tracker 651228?

libtool: link: x86_64-pc-linux-gnu-g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbeginS.o  .libs/thread.o .libs/mutex.o .libs/semaphore.o .libs/threadkey.o .libs/friends.o .libs/event.o .libs/slog.o .libs/dir.o .libs/file.o .libs/inaddr.o .libs/peer.o .libs/timer.o .libs/socket.o .libs/strchar.o .libs/simplesocket.o .libs/mempager.o .libs/keydata.o .libs/dso.o .libs/exception.o .libs/missing.o .libs/process.o .libs/string.o .libs/in6addr.o .libs/buffer.o .libs/lockfile.o .libs/nat.o .libs/runlist.o .libs/assoc.o .libs/pointer.o .libs/linked.o .libs/map.o .libs/cidr.o   -Wl,--as-needed -lrt -lpthread -ldl -lssl -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/crtn.o  -march=skylake -O2 -Wl,-O1 -pthread   -pthread -Wl,-soname -Wl,libccgnu2-1.8.so.0 -o .libs/libccgnu2-1.8.so.0.0.1
ssl.cpp: In member function ‘bool ost::SSLStream::getSession()’:
ssl.cpp:358:23: error: ‘SSLv3_client_method’ was not declared in this scope
     ctx = SSL_CTX_new(SSLv3_client_method());
                       ^~~~~~~~~~~~~~~~~~~
ssl.cpp:358:23: note: suggested alternative: ‘SSLv23_client_method’
     ctx = SSL_CTX_new(SSLv3_client_method());
                       ^~~~~~~~~~~~~~~~~~~
                       SSLv23_client_method
libtool: link: (cd ".libs" && rm -f "libccgnu2-1.8.so.0" && ln -s "libccgnu2-1.8.so.0.0.1" "libccgnu2-1.8.so.0")
libtool: link: (cd ".libs" && rm -f "libccgnu2.so" && ln -s "libccgnu2-1.8.so.0.0.1" "libccgnu2.so")
libtool: link: ( cd ".libs" && rm -f "libccgnu2.la" && ln -s "../libccgnu2.la" "libccgnu2.la" )
make[2]: *** [Makefile:708: ssl.lo] Error 1
Comment 9 Larry the Git Cow gentoo-dev 2019-02-22 23:36:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88ff70ab3b857a8e6aa63061028d8475b63816bc

commit 88ff70ab3b857a8e6aa63061028d8475b63816bc
Author:     Stefan Strogin <stefan.strogin@gmail.com>
AuthorDate: 2019-02-20 21:37:45 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-02-22 23:36:28 +0000

    dev-cpp/commoncpp2: add patch for openssl-1.1 and libressl support
    
    SSLv3_client_method() is deprecated in openssl-1.1 and libressl.
    They suggest to use SSLv23_client_method.
    
    Closes: https://bugs.gentoo.org/674416
    Package-Manager: Portage-2.3.61, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/11120
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild | 73 +++++++++++++++++++++++++++
 dev-cpp/commoncpp2/files/1.8.1-libressl.patch | 15 ++++++
 2 files changed, 88 insertions(+)
Comment 10 Amel Hodzic 2019-04-23 03:42:07 UTC
I see that this was resolved for libressl, but I am seeing this issue right now with openssl-1.1.0j-r1.  Did the patch miss this?
Comment 11 Amel Hodzic 2019-04-23 13:47:28 UTC
Never mind; sorry about that.  The issue was there with the stable version (dev-cpp/commoncpp2-1.8.1-r3).  Removing restriction for r4 to resolve the issue.