unofficial mirror of help-guix@gnu.org 
 help / color / Atom feed
* libssl not symlinking from openssl package?
@ 2020-06-30  1:55 Anthony Quizon
  2020-06-30 13:43 ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Quizon @ 2020-06-30  1:55 UTC (permalink / raw)
  To: help-guix

Hello,

I've run `guix install openssl` but it seems like the libraries are not
populated in $GUIX_LIBRARY_PATH

Running `ls` in
`/gnu/store/dkzivzn17qilmqdfpyps62b395wxhshh-openssl-1.1.1f/lib` gives:
`engines-1.1  libcrypto.so  libcrypto.so.1.1  libssl.so  libssl.so.1.1
 pkgconfig`

but a ` ls $GUIX_LIBRARY_PATH  | grep ssl` returns empty.

Is there something I'm missing?
Or is there an issue with the package build file?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libssl not symlinking from openssl package?
  2020-06-30  1:55 libssl not symlinking from openssl package? Anthony Quizon
@ 2020-06-30 13:43 ` Ricardo Wurmus
  2020-06-30 21:49   ` Anthony Quizon
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2020-06-30 13:43 UTC (permalink / raw)
  To: Anthony Quizon; +Cc: help-guix


Anthony Quizon <anthoq88@gmail.com> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libssl not symlinking from openssl package?
  2020-06-30 13:43 ` Ricardo Wurmus
@ 2020-06-30 21:49   ` Anthony Quizon
  2020-07-01  5:09     ` Anthony Quizon
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Quizon @ 2020-06-30 21:49 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

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 <rekado@elephly.net> wrote:

>
> Anthony Quizon <anthoq88@gmail.com> 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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libssl not symlinking from openssl package?
  2020-06-30 21:49   ` Anthony Quizon
@ 2020-07-01  5:09     ` Anthony Quizon
  2020-07-01  6:45       ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Quizon @ 2020-07-01  5:09 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

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"
    ))

On Wed, Jul 1, 2020 at 7:49 AM Anthony Quizon <anthoq88@gmail.com> 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 <rekado@elephly.net>
> wrote:
>
>>
>> Anthony Quizon <anthoq88@gmail.com> 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
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libssl not symlinking from openssl package?
  2020-07-01  5:09     ` Anthony Quizon
@ 2020-07-01  6:45       ` Efraim Flashner
  0 siblings, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2020-07-01  6:45 UTC (permalink / raw)
  To: Anthony Quizon; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 2874 bytes --]

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 <anthoq88@gmail.com> 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 <rekado@elephly.net>
> > wrote:
> >
> >>
> >> Anthony Quizon <anthoq88@gmail.com> 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   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30  1:55 libssl not symlinking from openssl package? Anthony Quizon
2020-06-30 13:43 ` Ricardo Wurmus
2020-06-30 21:49   ` Anthony Quizon
2020-07-01  5:09     ` Anthony Quizon
2020-07-01  6:45       ` Efraim Flashner

unofficial mirror of help-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git