Change History (13)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
The test command gs -q -dBATCH /usr/share/ghostscript/10.00.0/examples/tiger.eps
does not work for me... Not sure if I've done something wrong.
follow-up: 4 comment:3 by , 3 years ago
With Ghostscript-9.56.1, I have:
gs -h | grep x11
:
Default output device: x11alpha tiffscaled8 tiffsep tiffsep1 txtwrite uniprint urf x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 x11mono xcf xes xpswrite
With 10.0.0:
gs -h | grep x11
: nothing
follow-up: 5 comment:4 by , 3 years ago
Replying to Xi Ruoyao:
With Ghostscript-9.56.1, I have:
gs -h | grep x11
:Default output device: x11alpha tiffscaled8 tiffsep tiffsep1 txtwrite uniprint urf x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 x11mono xcf xes xpswriteWith 10.0.0:
gs -h | grep x11
: nothing
Maybe this bug is relevant, but not sure
comment:5 by , 3 years ago
Replying to pierre:
Replying to Xi Ruoyao:
With Ghostscript-9.56.1, I have:
gs -h | grep x11
:Default output device: x11alpha tiffscaled8 tiffsep tiffsep1 txtwrite uniprint urf x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 x11mono xcf xes xpswriteWith 10.0.0:
gs -h | grep x11
: nothingMaybe this bug is relevant, but not sure
I don't think they are the same, and I created https://bugs.ghostscript.com/show_bug.cgi?id=705895.
--disable-hidden-visibility
can workaround the issue.
comment:7 by , 3 years ago
comment:8 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
After discussing whith Xi Ruoyao: upstream has changed to hidden visibility because they had conflicts with symbols defined in other libraries. Removing --enable-dynamic
allows to include the X11 library into the gs executable, so symbol visibility is not a problem anymore.
comment:10 by , 3 years ago
dvisvgm FTBFS with:
libtool: link: g++ -Wall -Wnon-virtual-dtor -I../libs/clipper -I../libs/variant/include -I/opt/texlive/2022/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../libs/xxHash -g -O2 -Wno-mismatched-tags -o dvisvgm dvisvgm.o -L/opt/texlive/2022/lib ./.libs/libdvisvgm.a ../libs/clipper/libclipper.a -lfreetype ../libs/xxHash/libxxhash.a ../libs/ff-woff/libfontforge.a -lwoff2enc -lbrotlienc -lcrypto -lz -lpotrace -lgs -lkpathsea /usr/bin/ld: ./.libs/libdvisvgm.a(Ghostscript.o): in function `Ghostscript::error_name(int)': /sources/dvisvgm/dvisvgm-2.14/src/Ghostscript.cpp:382: undefined reference to `gs_error_names' collect2: error: ld returned 1 exit status
follow-up: 12 comment:11 by , 3 years ago
Can be fixed with:
sed "s/gs_error_names\[/error_names[/" -i src/Ghostscript.cpp
This is what is done in Win32 builds anyways. And according to the changelog, using gs_error_names only prevents including the error strings in the binary (who cares?)
Reported upstream: https://github.com/mgieseki/dvisvgm/issues/195
comment:12 by , 3 years ago
Replying to pierre:
Can be fixed with:
sed "s/gs_error_names\[/error_names[/" -i src/Ghostscript.cppThis is what is done in Win32 builds anyways. And according to the changelog, using gs_error_names only prevents including the error strings in the binary (who cares?)
Reported upstream: https://github.com/mgieseki/dvisvgm/issues/195
Another visibility-related issue. I'm not sure if it's an intentional change in Ghostscript or oversight. I've asked Chris in the Ghostscript ticket.
AFIAK Windows uses a default setting similar to -fvisibility=hidden
for their DLL. They have __dllspec(export)
which is similar to our __attribute__((visibility("default")))
. So I guess this issue showed up on Windows much earlier and they've worked around (or fixed, depending on whether it's intentional or oversight on Ghostscript side) it.
comment:13 by , 3 years ago
I think gs_error_names has always be meant to be private: it is not in the gserrors.h file, and the header that reference it is ierrors.h, and it is said:
/* * DO NOT USE THIS FILE IN THE GRAPHICS LIBRARY. * THIS FILE IS PART OF THE POSTSCRIPT INTERPRETER. * USE gserrors.h IN THE LIBRARY. */
Recent Changes in Ghostscript Version 10.00.0 (2022-08-18)
Highlights in this release include: