[tlbuild] building for distribution with shared breaks in dvisvgm

Norbert Preining preining at logic.at
Fri Sep 7 07:56:06 CEST 2018


Hi Martin,

sorry for all the bug reports ... but

> but only the Go port. Sorry for that. Would it be an option to add the
> missing package to Debian? It's already used by many different projects and
> probably worth to have it packaged.

I have packages xxhash and uploaded to Debian, and now tried to compile
with libxxhash-dev, libbrotli-dev, libwoff-dev, libpotrace-dev
installed, and running
	../configure --disable-all-pkgs --enable-dvisvgm --disable-native-texlive-build

...
/usr/bin/ld: dvisvgm.o: in function `print_version':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp:249: undefined reference to `potrace_version'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp:250: undefined reference to `XXH_versionNumber'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp:254: undefined reference to `BrotliEncoderVersion'
/usr/bin/ld: libdvisvgm.a(GFTracer.o): in function `GFTracer::endChar(unsigned int)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/GFTracer.cpp:61: undefined reference to `potrace_param_default'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/GFTracer.cpp:62: undefined reference to `potrace_trace'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/GFTracer.cpp:63: undefined reference to `potrace_param_free'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/GFTracer.cpp:92: undefined reference to `potrace_state_free'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::~Ghostscript()':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:277: undefined reference to `gsapi_exit'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::init(int, char const**, void*)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:252: undefined reference to `gsapi_new_instance'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:307: undefined reference to `gsapi_init_with_args'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::revision(gsapi_revision_s*)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:219: undefined reference to `gsapi_revision'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::revision()':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:219: undefined reference to `gsapi_revision'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::error_name(int)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:369: undefined reference to `gs_error_names'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::revisionstr[abi:cxx11]()':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:219: undefined reference to `gsapi_revision'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::~Ghostscript()':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:266: undefined reference to `gsapi_delete_instance'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::new_instance(void**, void*)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:252: undefined reference to `gsapi_new_instance'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::delete_instance()':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:266: undefined reference to `gsapi_delete_instance'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::exit()':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:277: undefined reference to `gsapi_exit'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::set_stdio(int (*)(void*, char*, int), int (*)(void*, char const*, int), int (*)(void*, char const*, int))':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:292: undefined reference to `gsapi_set_stdio'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::init_with_args(int, char**)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:307: undefined reference to `gsapi_init_with_args'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::run_string_begin(int, int*)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:319: undefined reference to `gsapi_run_string_begin'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::run_string_continue(char const*, unsigned int, int, int*)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:338: undefined reference to `gsapi_run_string_continue'
/usr/bin/ld: libdvisvgm.a(Ghostscript.o): in function `Ghostscript::run_string_end(int, int*)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp:351: undefined reference to `gsapi_run_string_end'
/usr/bin/ld: libdvisvgm.a(TrueTypeFont.o): in function `TrueTypeFont::writeWOFF2(std::ostream&) const':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/TrueTypeFont.cpp:140: undefined reference to `woff2::MaxWOFF2CompressedSize(unsigned char const*, unsigned long)'
/usr/bin/ld: /home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/TrueTypeFont.cpp:144: undefined reference to `woff2::ConvertTTFToWOFF2(unsigned char const*, unsigned long, unsigned char*, unsigned long*, woff2::WOFF2Params const&)'
/usr/bin/ld: libdvisvgm.a(Unicode.o): in function `Unicode::aglNameToCodepoint(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/norbert/Development/TeX/texlive.git/Build/source/Work/texk/dvisvgm/dvisvgm-src/src/../../../../../texk/dvisvgm/dvisvgm-src/src/Unicode.cpp:176: undefined reference to `XXH32'
collect2: error: ld returned 1 exit status



That means, that none of the shlibs (xxhash, brotli, potrace, gs, woff)
are added to the load stage.

Looking at the adaptions of TeX Live to your sources I don't see any
reason for that, though.

All the best

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tlbuild mailing list