Hello Alessandro,
You're right. The issue was on Trafficserver side.
Libjansson and libsjose were wrongly detected as static.
I fixed the issue and forwarded the patch upstream.

Thanks,
Jean Baptiste

On 9/22/18 5:49 PM, Alessandro Ghedini wrote:
> On Thu, Sep 20, 2018 at 09:09:39PM +0200, Jean Baptiste Favre wrote:
>> Source: jansson
>> Severity: wishlist
>>
>> Dear Maintainer,
>>
>> Next release of trafficserver provides a plugin depending on jansson.
>> Currently, jansson seems to be built staticaly:
>>
>> checking jansson.h usability... yes
>> checking jansson.h presence... yes
>> checking for jansson.h... yes
>> checking whether jansson is dynamic... no
>>
>> It also doen't use -fPIC, which prevent its use with trafficserver:
>>
>> libtool: link:  cc -shared  -fPIC -DPIC
>> experimental/uri_signing/.libs/uri_signing.o
>> experimental/uri_signing/.libs/config.o
>> experimental/uri_signing/.libs/cookie.o
>> experimental/uri_signing/.libs/jwt.o
>> experimental/uri_signing/.libs/match.o
>> experimental/uri_signing/.libs/parse.o
>> experimental/uri_signing/.libs/timing.o   -l:libjansson.a -l:libcjose.a
>> -lpcre -lm -lcrypto -lbrotlienc -lpthread -ldl  -g -mcx16 -g -O2
>> -fstack-protector-strong -O3 -Wl,-z -Wl,relro -Wl,-z -Wl,now
>> -Wl,-soname -Wl,uri_signing.so -Wl,-version-script
>> -Wl,experimental/uri_signing/.libs/uri_signing.ver -o
>> experimental/uri_signing/.libs/uri_signing.so
>> /usr/bin/ld:
>> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libjansson.a(load.o):
>> relocation R_X86_64_PC32 against symbol `stdin@@GLIBC_2.2.5' can not be
>> used when making a shared object; recompile with -fPIC
>>
>> Could you please consider adding this flag ?
> 
> AFAICT jansson is already built with -fPIC, see build logs:
> https://buildd.debian.org/status/fetch.php?pkg=jansson&arch=amd64&ver=2.11-1&stamp=1518387251&raw=0
> https://buildd.debian.org/status/fetch.php?pkg=jansson&arch=i386&ver=2.11-1&stamp=1518387065&raw=0
> 
> Cheers
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to