all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* G-golf
@ 2018-01-14 14:02 Catonano
  2018-01-14 14:20 ` G-golf David Pirotte
  2018-01-16 11:19 ` G-golf Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Catonano @ 2018-01-14 14:02 UTC (permalink / raw)
  To: guix-devel

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

In G-golf ( https://git.savannah.gnu.org/cgit/g-golf.git ) in the

g-golf/init.scm

file, there's this line

(define %libgirepository (dynamic-link "libgirepository-1.0"))

and when running make, I get

In procedure dynamic-link: file: "libgirepository-1.0", message: "file not
found"

but both Gobect-introspection and Glib are in the ad-hoc environment
(they were found by configure)

[-- Attachment #2: Type: text/html, Size: 590 bytes --]

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

* Re: G-golf
  2018-01-14 14:02 G-golf Catonano
@ 2018-01-14 14:20 ` David Pirotte
  2018-01-14 20:36   ` G-golf Catonano
  2018-01-16 11:19 ` G-golf Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: David Pirotte @ 2018-01-14 14:20 UTC (permalink / raw)
  To: Catonano; +Cc: guix-devel

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

Hi,

> (define %libgirepository (dynamic-link "libgirepository-1.0"))

> In procedure dynamic-link: file: "libgirepository-1.0", message: "file not
> found"

> but both Gobect-introspection and Glib are in the ad-hoc environment
> (they were found by configure)

You can try to run ldd:

	ldd <the-full-path-name-of-the-lib>

	[ and se what is missing... look for not found

If that is not enough, you can try to strace:

	strace -o strace.out guile -c "(dynamic-link "libgirepository-1.0"))"

HTH,
David

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: G-golf
  2018-01-14 14:20 ` G-golf David Pirotte
@ 2018-01-14 20:36   ` Catonano
  2018-01-14 22:23     ` G-golf David Pirotte
  0 siblings, 1 reply; 6+ messages in thread
From: Catonano @ 2018-01-14 20:36 UTC (permalink / raw)
  To: David Pirotte; +Cc: guix-devel

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

2018-01-14 15:20 GMT+01:00 David Pirotte <david@altosw.be>:

> Hi,
>
> > (define %libgirepository (dynamic-link "libgirepository-1.0"))
>
> > In procedure dynamic-link: file: "libgirepository-1.0", message: "file
> not
> > found"
>
> > but both Gobect-introspection and Glib are in the ad-hoc environment
> > (they were found by configure)
>
> You can try to run ldd:
>
>         ldd <the-full-path-name-of-the-lib>
>
>         [ and se what is missing... look for not found
>
> If that is not enough, you can try to strace:
>
>         strace -o strace.out guile -c "(dynamic-link
> "libgirepository-1.0"))"
>
> HTH,
> David
>


It's a bit late now, I'll be on this again soon

For now, just a note:

libgirepository can be found at this path
/gnu/store/x48xr1hvrx2xbc8362bh6hi6c2000sj2-gobject-introspection-1.52.
1/lib/

[-- Attachment #2: Type: text/html, Size: 1337 bytes --]

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

* Re: G-golf
  2018-01-14 20:36   ` G-golf Catonano
@ 2018-01-14 22:23     ` David Pirotte
  2018-01-15  7:21       ` G-golf Danny Milosavljevic
  0 siblings, 1 reply; 6+ messages in thread
From: David Pirotte @ 2018-01-14 22:23 UTC (permalink / raw)
  To: Catonano; +Cc: guix-devel

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


> > > (define %libgirepository (dynamic-link "libgirepository-1.0"))  

> > > In procedure dynamic-link: file: "libgirepository-1.0", message: "file   not  
> > > found"  

> > > but both Gobect-introspection and Glib are in the ad-hoc environment
> > > (they were found by configure)  

> > You can try to run ldd:

> >         ldd <the-full-path-name-of-the-lib>

> >         [ and se what is missing... look for not found

> > If that is not enough, you can try to strace:

> >         strace -o strace.out guile -c "(dynamic-link "libgirepository-1.0"))"

> It's a bit late now, I'll be on this again soon

Take your time, I just wanted (try) to help, but you have to understand that it is a
Guix related problem, or Guix user configuration problem, not a G-Golf problem.

And writing this I just remember Ludovic saying to someone recently that Guix does
not honor /etc/ld.so.conf, so you probably have to

	export LD_LIBRARY_PATH=<all path to all libs required by G-Golf>

David

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: G-golf
  2018-01-14 22:23     ` G-golf David Pirotte
@ 2018-01-15  7:21       ` Danny Milosavljevic
  0 siblings, 0 replies; 6+ messages in thread
From: Danny Milosavljevic @ 2018-01-15  7:21 UTC (permalink / raw)
  To: Catonano; +Cc: guix-devel

Hi,

On Sun, 14 Jan 2018 20:23:47 -0200
David Pirotte <david@altosw.be> wrote:

> And writing this I just remember Ludovic saying to someone recently that Guix does
> not honor /etc/ld.so.conf, so you probably have to
> 
> 	export LD_LIBRARY_PATH=<all path to all libs required by G-Golf>

Yeah, so either wrap the script via calling "wrap-program" (which will do the above), or, better, make the Guix package substitute the literal shared library filenames (in dynamic-link) in the source file by the absolute paths.

(Actually, wrap-program is often called automatically - for example by glib-or-gtk-build-system and python-build-system)

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

* Re: G-golf
  2018-01-14 14:02 G-golf Catonano
  2018-01-14 14:20 ` G-golf David Pirotte
@ 2018-01-16 11:19 ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-01-16 11:19 UTC (permalink / raw)
  To: Catonano; +Cc: guix-devel

Catonano <catonano@gmail.com> skribis:

> In G-golf ( https://git.savannah.gnu.org/cgit/g-golf.git ) in the
>
> g-golf/init.scm
>
> file, there's this line
>
> (define %libgirepository (dynamic-link "libgirepository-1.0"))

If you’re writing a package for G-Golf, the solution is to substitute
"libgirepository-1.0" with its absolute file name.  There are several
examples of that in (gnu packages guile).

HTH!

Ludo’.

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

end of thread, other threads:[~2018-01-16 11:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-14 14:02 G-golf Catonano
2018-01-14 14:20 ` G-golf David Pirotte
2018-01-14 20:36   ` G-golf Catonano
2018-01-14 22:23     ` G-golf David Pirotte
2018-01-15  7:21       ` G-golf Danny Milosavljevic
2018-01-16 11:19 ` G-golf Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.