Created attachment 500974 [details] build log app-text/podofo-0.9.6_pre20170629 fails to build against libressl (2.6.2 in my case). The error message: /var/tmp/portage/app-text/podofo-0.9.6_pre20170629/work/podofo-0.9.6_pre20170629 /tools/podofosign/podofosign.cpp: In function ‘int main(int, char**)’: /var/tmp/portage/app-text/podofo-0.9.6_pre20170629/work/podofo-0.9.6_pre20170629 /tools/podofosign/podofosign.cpp:879:29: error: ‘OPENSSL_init_ssl’ was not decla red in this scope OPENSSL_init_ssl(0, NULL); emerge -vp podofo [ebuild R ] app-text/podofo-0.9.6_pre20170629:0/0.9.6_pre20170629::gentoo USE="boost libressl tools -debug -idn {-test}" emerge --info Portage 2.3.13 (python 2.7.14-final-0, default/linux/amd64/13.0, gcc-6.4.0, glibc-2.25-r8, 4.13.9 x86_64) ================================================================= System uname: Linux-4.13.9-x86_64-AMD_A8-3870_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.4.1 KiB Mem: 15889700 total, 4123996 free KiB Swap: 18874352 total, 18874352 free Timestamp of repository gentoo: Mon, 30 Oct 2017 09:24:58 +0000 Head commit of repository gentoo: 78814e4abc56dde5e8156c0c15c0f4a0b3dcd90b sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1::gentoo dev-lang/python: 2.7.14::gentoo, 3.6.3::gentoo dev-util/cmake: 3.9.4::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.4::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 6.4.0::gentoo sys-devel/gcc-config: 1.9.0::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r8::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 kernelpanic location: /usr/local/portage/kernelpanic masters: gentoo priority: 0 libressl location: /var/lib/layman/libressl sync-type: laymansync sync-uri: https://github.com/gentoo/libressl.git masters: gentoo priority: 50 science location: /var/lib/layman/science sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/sci.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup clean-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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 a52 aac acl alsa amd64 ao berkdb blas bluetooth branding bzip2 cairo caps cli cracklib crypt cups curl cxx dbus djvu dri dts dv dvb dvd encode exif ffmpeg fftw flac fontconfig fortran gdbm gif gimp gmp gpm gsm gstreamer iconv icu inotify ipv6 jbig jit jpeg jpeg2k lame lapack latex lcms libass libnotify libressl lzma lzo mad matroska mikmod mmap mms mng modplug modules mp3 mpeg mpi mtp multilib musepack ncurses nls nptl offensive ogg openal openexr opengl openmp pam pcre pdf png postscript qt5 raw readline scanner seccomp session smp sndfile sound sox speex sqlite ssl startup-notification svg theora threads tiff truetype udev unicode usb v4l vaapi vdpau vim-syntax vorbis wavpack webp wmf wxwidgets x264 xattr xcb xft xml xmp xpm xscreensaver xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 3dnow 3dnowext popcnt sse3 sse4a" CURL_SSL="libressl" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Just for info: Builds against stable libressl --- # eshowkw libressl ;emerge -p -1 app-text/podofo Keywords for dev-libs/libressl: | | u | | a a p a n r s | n | | l m h i p r m m i i s p | e u s | r | p d a p a p c x m i 6 o s 3 a | a s l | e | h 6 r p 6 p 6 8 6 p 8 s c 9 s r | p e o | p | a 4 m a 4 c 4 6 4 s k 2 v 0 h c | i d t | o ------------+---------------------------------+----------+------- 2.3.10 | o ~ ~ ~ o ~ ~ ~ o ~ o o o o o o | 6 o 0/38 | gentoo ------------+---------------------------------+----------+------- 2.4.5 | o ~ ~ ~ o ~ ~ ~ o ~ o o o o o o | 6 # 0/39 | gentoo 2.5.0 | ~ ~ ~ ~ o ~ ~ ~ o ~ o o o o o o | 6 o | gentoo ------------+---------------------------------+----------+------- 2.5.4 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o o o o o ~ | 6 o 0/43 | gentoo 2.5.5 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o o o o o o | 6 # | gentoo [I]2.6.0 | ~ + ~ + ~ + + ~ ~ ~ o o o o o o | 6 o | gentoo ------------+---------------------------------+----------+------- 2.6.1 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o o o o o o | 6 # 0/44 | gentoo 2.6.2 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o o o o o o | 6 # | gentoo 2.6.3-r2 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o o o o o o | 6 o | gentoo These are the packages that would be merged, in order: Calculating dependencies ...... done! [ebuild R ] app-text/podofo-0.9.6_pre20170629:0/0.9.6_pre20170629::gentoo USE="boost -debug idn libressl {-test} tools" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB ---
Created attachment 505886 [details, diff] patch to build podofo-0.9.6_pre20171027 against libressl I have some news. AFAICT, cmake searches for libcrypto and sets HAVE_OPENSSL_1_1 (ignoring libressl), failing if a < 1.1 version of openssl found. This behaviour is maintained in the _pre20171027 version (which apparently does not require openssl patching). The attached patch fixes the building for 20171027 version. It is easy to backport, but since it would require patching a patch, I think it would be a little messy (unless the current openssl patch is replaced)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d445832c8128d6d9427ccddf8465b92c65145d7 commit 7d445832c8128d6d9427ccddf8465b92c65145d7 Author: Michelangelo Scopelliti <kernelpanic@gmx.it> AuthorDate: 2017-11-23 21:24:52 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2017-11-23 21:27:32 +0000 app-text/podofo: fix for libressl (bug 635890) Closes: https://bugs.gentoo.org/635890 Package-Manager: Portage-2.3.16, Repoman-2.3.6 ...ofo-0.9.6_pre20171027-libressl-bug-635890.patch | 26 ++++++++++++++++++++++ app-text/podofo/podofo-0.9.6_pre20171027.ebuild | 4 ++++ 2 files changed, 30 insertions(+)