#644 closed defect (fixed)
Problems with ESP Ghostscript 7.07.1 and a system libpng
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | BOOK | Version: | ~CVS |
| Severity: | medium | Keywords: | VERIFIED |
| Cc: |
Description
From http://archives.linuxfromscratch.org/mail-archives/blfs-dev/2004-February/005199.html:
The current stable espgs version (7.07.1) has a bug which prevents a system libpng from being detected, so to build a gs binary with PNG support, we have necessarily to unpack the lipng package inside the espgs source dir.
The patch http://www.linuxfromscratch.org/patches/downloads/espgs/espgs-7.07.1-libpng_check.patch, backported from CVS, fixes this issue. Unfortunately, this fix exposed another bug when compiling the shared library (see http://www.cups.org/str.php?L602 for details). For this specific bug, we don't need a patch, only a instruction modification.
Finally, the following changes are suggested to resolve this issue:
- Add the espgs-7.07.1-libpng_check.patch to the ESP Ghostscript section marked as "required".
- Change the the shared library compilation instruction to:
make CFLAGS_SO='-fPIC $(ACDEFS)' so
The upcoming 7.07.2 version is supposed to fix these bugs.
Change History (6)
comment:1 by , 23 years ago
| Owner: | changed from to |
|---|
comment:2 by , 23 years ago
| Status: | new → assigned |
|---|
comment:3 by , 23 years ago
The bug is with libpng. libpng.so should link against libz.so and libm.so.
Yep, I know. But the espgs developers opted for not depending on libpng being linked against libz, so decided to explictly add "-lz" to the libpng check. I just picked the fix from the CVS (which soo will become 7.07.2). See the resolution of this bug:
http://www.cups.org/str.php?L396
The patch mentioned in the espgs bugzilla works perfectly. Can you submit that to the patches project?
Certainly. But the modified instruction I suggested above has the same effect, and avoids an additional third patch. As soon as 7.07.2 is released, both patches (libpngcheck and libpngsupport) will not be needed anymore.
comment:4 by , 23 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:5 by , 22 years ago
| Keywords: | VERIFIED added |
|---|

The bug is with libpng. libpng.so should link against libz.so and libm.so.
The patch mentioned in the espgs bugzilla works perfectly. Can you submit that to the patches project?