Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920273 - net-print/libppd-2.0.0 - [slibtool] rastertops.c:(.text+<snip>): undefined reference to deflateInit_
Summary: net-print/libppd-2.0.0 - [slibtool] rastertops.c:(.text+<snip>): undefined re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL: https://github.com/OpenPrinting/libpp...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2023-12-18 16:03 UTC by Toralf Förster
Modified: 2024-03-21 02:24 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.39 KB, text/plain)
2023-12-18 16:03 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,115.58 KB, text/plain)
2023-12-18 16:03 UTC, Toralf Förster
Details
environment (environment,24.20 KB, text/plain)
2023-12-18 16:03 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,26.97 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.00 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
net-print:libppd-2.0.0:20231218-110058.log (net-print:libppd-2.0.0:20231218-110058.log,66.54 KB, text/plain)
2023-12-18 16:03 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,210.96 KB, text/plain)
2023-12-18 16:03 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,12.11 KB, application/x-xz)
2023-12-18 16:03 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 2023-12-18 16:03:18 UTC
too long lines were shrinked:

rdlibtool: lconf: found "/var/tmp/portage/net-print/libppd-2.0.0/work/libppd-2.0.0/libtool".
rdlibtool: link: ln -s libppd.so.def .libs/libppd.so.def.linux
rdlibtool: link: ln -s libppd.so.def.linux .libs/libppd.so.def.host
rdlibtool: link: ln -s /dev/null .libs/libppd.a.disabled
rdlibtool: link: x86_64-pc-linux-gnu-g++ ppd/.libs/libppd_la-ppd-attr.o ppd/.libs/libppd_la-ppd.o ppd/.libs/libppd_la-ppd-cache.o ppd/.libs/ppd-collection.o ppd/.libs/libppd_la-ppd-conflicts.o ppd/.libs/libppd_la-ppd-custom.o ppd/.libs/libppd_la-ppd-emit.o ppd/.libs/libppd_la-ppd-filter.o ppd/.libs/
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ppd/.libs/libppd_la-rastertops.o: in function `ppdFilterRasterToPS':
rastertops.c:(.text+0x454): undefined reference to `deflateInit_'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: rastertops.c:(.text+0x5c5): undefined reference to `deflate'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: rastertops.c:(.text+0x5fe): undefined reference to `deflateEnd'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd_merged_usr-20231216-044505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 18852660937e1630c8d1705314399231ad0ec89a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 18 10:31:59 2023 +0000

    2023-12-18 10:31:58 UTC

emerge -qpvO net-print/libppd
[ebuild  N    ] net-print/libppd-2.0.0  USE="poppler postscript"
Comment 1 Toralf Förster gentoo-dev 2023-12-18 16:03:19 UTC
Created attachment 879842 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-18 16:03:20 UTC
Created attachment 879843 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-18 16:03:21 UTC
Created attachment 879844 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-18 16:03:22 UTC
Created attachment 879845 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-18 16:03:23 UTC
Created attachment 879846 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-18 16:03:24 UTC
Created attachment 879847 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-18 16:03:25 UTC
Created attachment 879848 [details]
net-print:libppd-2.0.0:20231218-110058.log
Comment 8 Toralf Förster gentoo-dev 2023-12-18 16:03:26 UTC
Created attachment 879849 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-12-18 16:03:27 UTC
Created attachment 879850 [details]
temp.tar.xz
Comment 10 Eli Schwartz 2023-12-19 03:41:17 UTC
Upstream bug.
Comment 11 orbea 2024-03-06 22:11:30 UTC
They are missing -lz, GNU libtool ignores -no-undefined and misses the error.
Comment 12 orbea 2024-03-08 03:37:42 UTC
I only now see the existing PR....
Comment 13 Eli Schwartz 2024-03-08 10:46:59 UTC
> (In reply to orbea from comment #11)
> They are missing -lz, GNU libtool ignores -no-undefined and misses the error.

-Wl,--no-undefined isn't in the default make.conf, but if you add it then regular libtool reproduces this just fine, you don't even need to use elibtoolize.
Comment 14 orbea 2024-03-08 15:14:06 UTC
Some things really depend on resolving symbols at runtime and not link time so setting -Wl,--no-undefined globally may result in false positives, see issue #765715 for an example.
Comment 15 Eli Schwartz 2024-03-08 15:23:14 UTC
Yeah, and that's an example of it using the libtool flag -no-undefined and working correctly with libtool (which treats it as a Windows annotation unrelated to -Wl,--no-undefined) but breaking with slibtool.

What's your point?
Comment 16 Larry the Git Cow gentoo-dev 2024-03-21 02:24:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7be0a28087f6666aeba8065c639ddc7ea2316fa6

commit 7be0a28087f6666aeba8065c639ddc7ea2316fa6
Author:     orbea <orbea@riseup.net>
AuthorDate: 2024-03-16 15:10:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-21 02:23:06 +0000

    net-print/libppd: fix undefined references
    
    Closes: https://bugs.gentoo.org/920273
    Upstream-PR: https://github.com/OpenPrinting/libppd/pull/32
    Upstream-Commit: https://github.com/OpenPrinting/libppd/commit/a040f26f3ca103c8ae7706d91ae157dca0974c49
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/35780
    Signed-off-by: Sam James <sam@gentoo.org>

 net-print/libppd/files/libppd-2.0.0-slibtool.patch | 64 ++++++++++++++++++++++
 net-print/libppd/libppd-2.0.0.ebuild               |  8 ++-
 2 files changed, 70 insertions(+), 2 deletions(-)