package contains external symlinks: lib64/ld-linux-x86-64.so.2 lint-snap-v2_external_symlinks
Martin Winter
mwinter at opensourcerouting.org
Thu Jul 21 12:48:22 UTC 2016
On 21 Jul 2016, at 3:49, Loïc Minier wrote:
> This is tricky; three options:
> 1) patch the files to use your ld-linux; patchelf is supposed to be able to
> do this, but when I tried --set-interpreter on a simple binary I got this
> error:
> cannot find section .interp
>
> You could still patch it in ugly ways.
>
> 2) you can wrap your commands in shell scripts which run the linker; you
> have a stable interface in the form of POSIX shell script /bin/sh; it goes
> like this:
> ./copy-of-ld --inhibit-cache ./foo
Runtime isn’t the issue. The problem is the ubuntu store failing the snap
in the automated tests after the upload.
> 3) you can set the interpreter at build time; this is supposedly done with
> -Wl,--dynamic-linker=foo, but by default your toolchain probably uses
> linker scripts which will set a different linker. You may dump the default
> linker script and override it (gcc -T) with your own fork.
>
> In any case I'd be interest to read about why you want to avoid the
> ld-linux dep and how you implement it in the end. :-)
Not sure I understand your question. But the snap upload is the main one
complaining and failing the the snap in the automated test because of the
reference.
I thought that libc6 would be an exception and doesn’t need to be added to
the snap.
I thought this should be a common issue from other snap’s (and expected
known solutions). Or how do other C projects solve this?
- Martin
> On Thu, Jul 21, 2016 at 12:14 PM, Martin Winter <
> mwinter at opensourcerouting.org> wrote:
>
>> Hi there,
>>
>> I’m currently failing on my package with this error.
>>
>> I have the libc6 included as a stage package, but trying to find the
>> correct linker option
>> to actually use the library included in snap instead of the system wide
>> one.
>>
>> Anyone knows how to get gcc/ld to use the correct library?
>>
>> - Martin
>>
>> --
>> Snapcraft mailing list
>> Snapcraft at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>>
More information about the Snapcraft
mailing list