On Wed, Jul 01, 2020 at 03:09:03PM +1000, Anthony Quizon wrote:
> Ok so when I use gcc-toolchain and do a ldd on my binary, I get "not found"
> for the libssl and libcrypto links.
> However, all other libraries seem to resolve correctly.
>
> linux-vdso.so.1 (0x00007ffe86dd2000)
> libresolv.so.2 =>
> /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libresolv.so.2
> (0x00007fcaa9e1c000)
> libssl.so.1.1 => not found
> libcrypto.so.1.1 => not found
> libpthread.so.0 =>
> /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libpthread.so.0
> (0x00007fcaa9dfb000)
> libm.so.6 =>
> /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libm.so.6
> (0x00007fcaa9cba000)
> librt.so.1 =>
> /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/librt.so.1
> (0x00007fcaa9cb0000)
> libdl.so.2 =>
> /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libdl.so.2
> (0x00007fcaa9ca9000)
> ....
>
> Do you know what would make libssl and libcrypto different from the other
> links?
>
> I'm using a manifest file with these packages:
>
> (specifications->manifest
> '("glib"
> "gcc-toolchain"
> "binutils-gold"
>
>
>
> "coreutils"
> "openssl"
> ))I would drop coreutils from the manifest, it should be included in gcc-toolchain. binutils-gold also unless you need the gold linker. Do you have pkg-config in the manifest? The libraries that I see as linked are all from glibc. Alternatively you might need to add the linker flags yourself, ie: -l$(GUIX_ENVIRONMENT)/lib/libssl (or however it goes, assuming you're using 'guix environment' and not a permanent profile). > > On Wed, Jul 1, 2020 at 7:49 AM Anthony Quizon <[email protected]> wrote: > > > Oh sorry, stupid mistake. > > That's the environment variable I set to point to > > "$HOME/.guix-profile/lib". I was wondering if the openssl lib files were > > meant to be populated there. > > But now I can see that its actually in $LIBRARY_PATH when gcc-toolchain is > > installed like you said. > > > > > > On Tue, Jun 30, 2020 at 11:43 PM Ricardo Wurmus <[email protected]> > > wrote: > > > >> > >> Anthony Quizon <[email protected]> writes: > >> > >> > I've run `guix install openssl` but it seems like the libraries are not > >> > populated in $GUIX_LIBRARY_PATH > >> > >> What is GUIX_LIBRARY_PATH supposed to be? > >> > >> The LIBRARY_PATH variable is set when you have gcc-toolchain installed. > >> GUIX_LIBRARY_PATH is not set by anything in Guix as far as I know. > >> > >> -- > >> Ricardo > >> > > -- Efraim Flashner <[email protected]> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature
