Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691352 - net-libs/google-cloud-cpp-0.10.0: build fails due to missing OpenSSL linking
Summary: net-libs/google-cloud-cpp-0.10.0: build fails due to missing OpenSSL linking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-03 16:51 UTC by Liam Shepherd
Modified: 2020-04-10 19:38 UTC (History)
1 user (show)

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


Attachments
Full build log (build.log,181.63 KB, text/x-log)
2019-08-03 16:51 UTC, Liam Shepherd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liam Shepherd 2019-08-03 16:51:41 UTC
Created attachment 585630 [details]
Full build log

The package fails to build for me due to errors like this:

[ 59%] Linking CXX executable storage_notification_samples
cd /var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/google/cloud/storage/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/storage_notification_samples.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -march=native -O2 -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -fuse-linker-plugin -pipe -fno-lto  -Wl,--hash-style=gnu -march=native -O2 -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -fuse-linker-plugin -pipe -fno-lto CMakeFiles/storage_notification_samples.dir/storage_notification_samples.cc.o  -o storage_notification_samples -Wl,-rpath,/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/google/cloud/storage:/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/google/cloud ../libstorage_client.so.1.1.0 ../../libgoogle_cloud_cpp_common.so.0.8.0 /usr/lib64/libcrc32c.so /usr/lib/libcurl.so -lpthread 
../libstorage_client.so.1.1.0: error: undefined reference to 'ERR_get_error'
../libstorage_client.so.1.1.0: error: undefined reference to 'CRYPTO_free'
../libstorage_client.so.1.1.0: error: undefined reference to 'PKCS12_free'
../libstorage_client.so.1.1.0: error: undefined reference to 'X509_free'
../libstorage_client.so.1.1.0: error: undefined reference to 'PEM_write_bio_PKCS8PrivateKey'
../libstorage_client.so.1.1.0: error: undefined reference to 'X509_NAME_oneline'
../libstorage_client.so.1.1.0: error: undefined reference to 'ERR_error_string_n'
../libstorage_client.so.1.1.0: error: undefined reference to 'X509_get_subject_name'
../libstorage_client.so.1.1.0: error: undefined reference to 'PKCS12_parse'
../libstorage_client.so.1.1.0: error: undefined reference to 'd2i_PKCS12_fp'
../libstorage_client.so.1.1.0: error: undefined reference to 'OPENSSL_add_all_algorithms_noconf'
../libstorage_client.so.1.1.0: error: undefined reference to 'SHA256_Final'
../libstorage_client.so.1.1.0: error: undefined reference to 'SHA256_Update'
../libstorage_client.so.1.1.0: error: undefined reference to 'SHA256_Init'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_read'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_MD_CTX_destroy'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_PKEY_free'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_DigestSignFinal'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_DigestUpdate'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_DigestSignInit'
../libstorage_client.so.1.1.0: error: undefined reference to 'PEM_read_bio_PrivateKey'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_new_mem_buf'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_sha256'
../libstorage_client.so.1.1.0: error: undefined reference to 'EVP_MD_CTX_create'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_ctrl'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_write'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_s_mem'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_free'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_set_flags'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_free_all'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_push'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_new'
../libstorage_client.so.1.1.0: error: undefined reference to 'BIO_f_base64'
../libstorage_client.so.1.1.0: error: undefined reference to 'CRYPTO_set_locking_callback'
../libstorage_client.so.1.1.0: error: undefined reference to 'CRYPTO_num_locks'
../libstorage_client.so.1.1.0: error: undefined reference to 'SSLeay_version'
../libstorage_client.so.1.1.0: error: undefined reference to 'CRYPTO_get_locking_callback'
../libstorage_client.so.1.1.0: error: undefined reference to 'MD5_Final'
../libstorage_client.so.1.1.0: error: undefined reference to 'MD5_Update'
../libstorage_client.so.1.1.0: error: undefined reference to 'MD5_Init'
collect2: error: ld returned 1 exit status
make[2]: *** [google/cloud/storage/examples/CMakeFiles/storage_notification_samples.dir/build.make:88: google/cloud/storage/examples/storage_notification_samples] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build'
make[1]: *** [CMakeFiles/Makefile2:1474: google/cloud/storage/examples/CMakeFiles/storage_notification_samples.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

The repo patch files/google-cloud-cpp-0.5.0-openssl.patch causes this error for me. With that patch removed, it builds fine.

# emerge --info
Portage 2.3.66 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-8.3.0, glibc-2.29-r2, 5.2.2 x86_64)
=================================================================
System uname: Linux-5.2.2-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-gentoo-2.6
KiB Mem:    32789604 total,  24504424 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 03 Aug 2019 14:08:15 +0000
Head commit of repository gentoo: 029d3886e0fcbe200bbba739e8119bdc8e0434e8

Head commit of repository lejambon: 2425968a83df559fb77efe516641355115be079e

sh bash 4.4_p23-r1
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/portage/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

lejambon
    location: /var/portage/repos/lejambon
    sync-type: git
    sync-uri: http://lejambon-git.s3.amazonaws.com/portage.git
    masters: gentoo

Installed sets: @development-go, @laptop
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -flto=8 -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -flto=8 -fuse-linker-plugin -pipe"
DISTDIR="/var/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/gtk-doc /usr/share/locale -/usr/share/locale/en -/usr/share/locale/en_GB"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -march=native -O2 -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -flto=8 -fuse-linker-plugin -pipe"
MAKEOPTS="-j9"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/var/portage/repos/lejambon/metadata/rsync_base_exclude --exclude-from=/var/portage/repos/lejambon/metadata/rsync_workstation_exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac alsa amd64 berkdb bzip2 caps cli crypt cups cxx dbus dga dri egl encode ffmpeg fontconfig fortran gif gles2 gtk iconv jit jpeg libnotify libtirpc linguas_en linguas_en_GB mp3 mpx multilib ncurses nls nptl opengl pam pcre pic pie png readline seccomp split-usr ssl startup-notification svg threads tiff truetype udev unicode vaapi vdpau x264 xattr xcb xcomposite xfce xfwm xinerama xorg xscreensaver zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

# emerge -pv google-cloud-cpp::gentoo

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] net-libs/google-cloud-cpp-0.10.0::gentoo [0.10.0::lejambon] 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 1 Weiping Xu 2019-08-04 02:37:38 UTC
I hit another but exactly the same bug.

///////////////////////////////////////////////////////////////////
[ 87%] Linking CXX executable bigtable_quickstart
cd /var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/google/cloud/bigtable/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/bigtable_quickstart.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -march=broadwell -O2 -pipe  -Wl,-O1 -Wl,--as-needed CMakeFiles/bigtable_quickstart.dir/bigtable_quickstart.cc.o  -o bigtable_quickstart  -L/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/external/lib64 -Wl,-rpath,/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/google/cloud/bigtable:/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/external/lib64:/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/google/cloud ../libbigtable_client.so.0.10.0 -lgoogleapis_cpp_bigtable_protos -lgoogleapis_cpp_longrunning_operations_protos -lgoogleapis_cpp_api_auth_protos -lgoogleapis_cpp_api_annotations_protos -lgoogleapis_cpp_api_http_protos -lgoogleapis_cpp_iam_v1_policy_protos -lgoogleapis_cpp_iam_v1_iam_policy_protos -lgoogleapis_cpp_rpc_status_protos -lgoogleapis_cpp_rpc_error_details_protos ../../libgoogle_cloud_cpp_common.so.0.8.0 /usr/lib64/libgrpc++.so /usr/lib64/libgrpc.so /usr/lib64/libprotobuf.so -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `HMAC_CTX_cleanup'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `HMAC_CTX_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `sk_pop_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `sk_new_null'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_CTX_get_ex_new_index'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_load_error_strings'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `CRYPTO_get_locking_callback'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_library_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `EVP_MD_CTX_destroy'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `CRYPTO_set_id_callback'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `sk_num'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `CRYPTO_set_locking_callback'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_state'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `sk_value'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `EVP_MD_CTX_create'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `sk_push'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgrpc.so: undefined reference to `CRYPTO_num_locks'
collect2: error: ld returned 1 exit status
make[2]: *** [google/cloud/bigtable/examples/CMakeFiles/bigtable_quickstart.dir/build.make:98: google/cloud/bigtable/examples/bigtable_quickstart] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build'
make[1]: *** [CMakeFiles/Makefile2:700: google/cloud/bigtable/examples/CMakeFiles/bigtable_quickstart.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 2 Weiping Xu 2019-08-04 03:37:12 UTC
(In reply to Weiping Xu from comment #1)
> I hit another but exactly the same bug.
> 
> ///////////////////////////////////////////////////////////////////
> [ 87%] Linking CXX executable bigtable_quickstart
> cd
> /var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.
> 0_build/google/cloud/bigtable/examples && /usr/bin/cmake -E
> cmake_link_script CMakeFiles/bigtable_quickstart.dir/link.txt --verbose=1
> /usr/bin/x86_64-pc-linux-gnu-g++  -march=broadwell -O2 -pipe  -Wl,-O1
> -Wl,--as-needed CMakeFiles/bigtable_quickstart.dir/bigtable_quickstart.cc.o 
> -o bigtable_quickstart 
> -L/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.
> 10.0_build/external/lib64
> -Wl,-rpath,/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-
> cloud-cpp-0.10.0_build/google/cloud/bigtable:/var/tmp/portage/net-libs/
> google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.0_build/external/lib64:/
> var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.10.
> 0_build/google/cloud ../libbigtable_client.so.0.10.0
> -lgoogleapis_cpp_bigtable_protos
> -lgoogleapis_cpp_longrunning_operations_protos
> -lgoogleapis_cpp_api_auth_protos -lgoogleapis_cpp_api_annotations_protos
> -lgoogleapis_cpp_api_http_protos -lgoogleapis_cpp_iam_v1_policy_protos
> -lgoogleapis_cpp_iam_v1_iam_policy_protos -lgoogleapis_cpp_rpc_status_protos
> -lgoogleapis_cpp_rpc_error_details_protos
> ../../libgoogle_cloud_cpp_common.so.0.8.0 /usr/lib64/libgrpc++.so
> /usr/lib64/libgrpc.so /usr/lib64/libprotobuf.so -lpthread 
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `HMAC_CTX_cleanup'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `HMAC_CTX_init'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `sk_pop_free'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `sk_new_null'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_CTX_get_ex_new_index'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_load_error_strings'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to
> `CRYPTO_get_locking_callback'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_library_init'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to
> `OPENSSL_add_all_algorithms_noconf'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `EVP_MD_CTX_destroy'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `CRYPTO_set_id_callback'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `sk_num'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to
> `CRYPTO_set_locking_callback'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `SSL_state'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `sk_value'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `EVP_MD_CTX_create'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `sk_push'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib64/libgrpc.so: undefined reference to `CRYPTO_num_locks'
> collect2: error: ld returned 1 exit status
> make[2]: ***
> [google/cloud/bigtable/examples/CMakeFiles/bigtable_quickstart.dir/build.
> make:98: google/cloud/bigtable/examples/bigtable_quickstart] Error 1
> make[2]: Leaving directory
> '/var/tmp/portage/net-libs/google-cloud-cpp-0.10.0/work/google-cloud-cpp-0.
> 10.0_build'
> make[1]: *** [CMakeFiles/Makefile2:700:
> google/cloud/bigtable/examples/CMakeFiles/bigtable_quickstart.dir/all] Error
> 2
> make[1]: *** Waiting for unfinished jobs....

Enable static-libs USE for net-libs/grpc fixs my problem. @Liam Shepherd
Comment 3 Jan-Matthias Braun 2019-08-05 16:20:26 UTC
I could compile google-cloud-cpp with net-misc/curl and dev-python/pycurl switched to CURL_SSL="openssl".
Comment 4 wolfwood 2019-09-18 19:26:53 UTC
I'm having the same issue as the original post. google-cloud-cpp-0.5.0-openssl.patch is breaking google-cloud-cpp-0.10.0 and should be removed from the ebuild, or made dependent on a USE flag
Comment 5 Michael Orlitzky gentoo-dev 2020-02-17 00:33:35 UTC
This should be an easy fix. The upstream INSTALL.md file states that OpenSSL is now (as of ~0.9.0) a hard requirement. Adding "dev-libs/openssl:=" to RDEPEND and dropping google-cloud-cpp-0.5.0-openssl.patch fixes the immediate problem.

@perfinion: I can create an -r1 if you don't mind.
Comment 6 Michael Orlitzky gentoo-dev 2020-02-20 20:47:30 UTC
Does anyone know why the patch files/google-cloud-cpp-0.5.0-openssl.patch was introduced? Or why it drops zlib in addition to openssl?
Comment 7 Jason Zaman gentoo-dev 2020-04-08 20:14:37 UTC
(In reply to Michael Orlitzky from comment #5)
> This should be an easy fix. The upstream INSTALL.md file states that OpenSSL
> is now (as of ~0.9.0) a hard requirement. Adding "dev-libs/openssl:=" to
> RDEPEND and dropping google-cloud-cpp-0.5.0-openssl.patch fixes the
> immediate problem.
> 
> @perfinion: I can create an -r1 if you don't mind.

@mjo: Sure go ahead and fix it since you can repro the problem :)

I don't recall the specifics of that patch at this point honestly so if you think it should be dropped its probably fine to drop.

Thanks
Comment 8 Michael Orlitzky gentoo-dev 2020-04-10 18:31:28 UTC
(In reply to Jason Zaman from comment #7)
> 
> @mjo: Sure go ahead and fix it since you can repro the problem :)
> 
> I don't recall the specifics of that patch at this point honestly so if you
> think it should be dropped its probably fine to drop.
> 

I can reproduce it on my desktop every time, but my laptop had no problem, which isn't 100% satisfying. Both are OK without the patch, though, so let's try dropping it.
Comment 9 Larry the Git Cow gentoo-dev 2020-04-10 19:38:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=191d0e654981bf20a008426ab864c6b5b2fedd99

commit 191d0e654981bf20a008426ab864c6b5b2fedd99
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2020-04-10 19:18:04 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2020-04-10 19:37:19 +0000

    net-libs/google-cloud-cpp: new revision depending on OpenSSL.
    
    As of v0.9.0, google-cloud-cpp now depends unconditionally on OpenSSL
    (according to upstream). We carry a patch that tries to eliminate the
    dependency, but several people (including myself) have reported that
    it only results in link failures these days. This commit introduces a
    new revision of google-cloud-cpp-0.10.0 without the patch.
    
    Note that the patch also dropped some zlib stuff, and no one remembers
    why. We might find out!
    
    Closes: https://bugs.gentoo.org/691352
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../google-cloud-cpp-0.10.0-r1.ebuild              | 60 ++++++++++++++++++++++
 1 file changed, 60 insertions(+)