curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

From: Isaac Boukris via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 1 Jan 2019 13:44:20 +0200

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?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-01-01