Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49113 - [bigloo] error while loading shared libraries

Attached to Project: Arch Linux
Opened by tetsumi (tetsumi) - Wednesday, 27 April 2016, 14:40 GMT
Last edited by Jürgen Hötzel (juergen) - Sunday, 05 June 2016, 11:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Neither The compiler (static) nor a compiled executable (dynamic) can't find bigloo's libraries.

Steps to reproduce:


1. Sample code foo.scm

(module bench
(library pthread)
(main main))

(define (main args)
(define a (instantiate::pthread
(body (lambda () (print "Thread a")))))

(define b (instantiate::pthread
(body (lambda () (print "Thread b")))))

(thread-start-joinable! a)
(thread-start-joinable! b)
(thread-join! a)
(thread-join! b))

*** With dynamic linking ***

2. Compile with `bigloo foo.scm -o foo`

3. Executing ./foo gives the message

./foo: error while loading shared libraries: libbigloogc-4.2c.so: cannot open shared object file: No such file or directory


*** With static linking ***

2. Compiling with `bigloo -static-bigloo foo.scm` gives the message

*** WARNING:bigloo:bigloo
Can't find library "libbigloo_s-4.2c.a" in path "(. /usr/lib/bigloo/4.2c)"
*** ERROR:bigloo:
Can't find any `bigloo' library -- (. /usr/lib/bigloo/4.2c)
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Sunday, 05 June 2016, 11:51 GMT
Reason for closing:  Fixed
Comment by Jürgen Hötzel (juergen) - Sunday, 05 June 2016, 11:50 GMT
It seems the current Bigloo release has indirect SO references:

libbigloo_s-4.2c.so => /usr/lib/bigloo/4.2c/libbigloo_s-4.2c.so => /usr/lib/bigloo/4.2c/libbigloogc-4.2c.so

so RUNPATH must also be set on the direct references. I just released

-> bigloo-4.2c-4-i686.pkg.tar.xz (i686)
-> bigloo-4.2c-4-x86_64.pkg.tar.xz (x86_64)

Loading...