curl-library
Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem
Date: Tue, 1 Jan 2019 22:38:36 +0200
Hi Isaac,
On Tue, 1 Jan 2019 13:44:20 +0200
Isaac Boukris <iboukris_at_gmail.com> wrote:
> On Tue, Jan 1, 2019 at 11:38 AM Shlomi Fish via curl-library
> <curl-library_at_cool.haxx.se> wrote:
> >
> > CC libstubgss_la-stub_gssapi.lo
> > CCLD libstubgss.la
> > /usr/bin/ld: .libs/libstubgss_la-stub_gssapi.o: in function
> > `gss_init_sec_context': /home/shlomif/Download/unpack/Mageia/todel/curl/BUILD/curl-7.63.0/tests/libtest/stub_gssapi.c:210:
> > undefined reference to `curl_msnprintf' collect2: error: ld returned 1
> > exit
>
> The libstubgss is a pseudo gssapi implementation we use for testing by
> pre-loading it via LD_PRELOAD.
>
> The usage of curl_msnprintf / msnprintf was introduced in commit
> dcd6f81025 (it was snprintf before) but I'm not sure this usage is
> correct as this lib does not link against libcurl (rather the other
> way round), perhaps this part should be reverted?
>
> I still don't understand why it fails to build, as Linux usually does
> not resolve symbols when building a shared library (run time should be
> fine too, since the pre-loaded process is linked against libcurl and
> has the missing symbol loaded).
> Are you passing --no-undefined or -zdefs as ldflags?
Yes, these flags are specified by the rpmbuild macros by default.
-- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Parody of "The Fountainhead" - http://shlom.in/towtf Chuck Norris once counted all the real numbers on his fingers. (by: ZadYree) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2019-01-02