Subject: pkg/36975: devel/guile-lib fails to build on Darwin
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 09/12/2007 16:25:01
>Number:         36975
>Category:       pkg
>Synopsis:       devel/guile-lib fails to build on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 12 16:25:00 +0000 2007
>Originator:     Louis Guillaume
>Release:        Darwin 8.10.0
>Organization:
>Environment:
Darwin xxxxx.xxx 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc
>Description:
This is part of a larger attempt to get finance/gnucash to build on OS X.

devel/guile-lib fails in the build phase on pkgsrc-2007Q2, Darwin-8.10.0. Here is the error...

===> Building for guile-lib-0.1.3nb3
Making all in src
gnumake[1]: Nothing to be done for `all'.
Making all in doc
guile --debug --use-srfi=13 -l ./guile-library.scm \
 -c '(for-each (lambda (m) (format #t "~a.scm\n" (string-join (map symbol->string m) "/"))) (map car *modules*))' \
 > guile-libraryscmfiles
../dev-environ ./make-texinfo.scm ./guile-library.scm >guile-library.texi
Backtrace:
In unknown file:
    ...
   ?: 46  (begin (if # #) (make-modules-in # full-name))
   ?: 47* (if (or # #) (try-load-module name))
   ?: 48  [try-load-module (srfi srfi-1)]
   ?: 49  (or (begin (try-module-linked name)) (try-module-autoload name) ...)
   ?: 50* [try-module-autoload (srfi srfi-1)]
   ?: 51  (let* (# # # #) (resolve-module dir-hint-module-name #f) (and # #))
    ...
   ?: 52  (letrec ((load-file #)) (dynamic-wind (lambda () #) (lambda () #) ...) ...)
   ?: 53* [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
   ?: 54* [#<procedure #f ()>]
   ?: 55* (let* ((file #)) (cond (# => #) (# => #)))
   ?: 56  [#<procedure #f (full)> "/usr/pkg/share/guile/1.8/srfi/srfi-1.scm"]
   ?: 57  [with-fluid* #<fluid 7> #f #<procedure #f ()>]
   ?: 58* [#<procedure #f ()>]
   ?: 59* [load-file #<primitive-procedure primitive-load> ...]
   ?: 60* [save-module-excursion #<procedure #f ()>]
   ?: 61  (let (# #) (dynamic-wind # thunk #))
   ?: 62  [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
   ?: 63* [#<procedure #f ()>]
   ?: 64* [primitive-load "/usr/pkg/share/guile/1.8/srfi/srfi-1.scm"]
In /usr/pkg/share/guile/1.8/srfi/srfi-1.scm:
 223: 65* [load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1"]

/usr/pkg/share/guile/1.8/srfi/srfi-1.scm:223:1: In procedure dynamic-link in expression (load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1"):
/usr/pkg/share/guile/1.8/srfi/srfi-1.scm:223:1: file: "libguile-srfi-srfi-1-v-3", message: "dlopen(libguile-srfi-srfi-1-v-3.so, 9): image not found"
gnumake[1]: *** [guile-library.texi] Error 1
gnumake: *** [all-recursive] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/devel/guile-lib
*** Error code 1

Stop.
>How-To-Repeat:
>From a pkgsrc-2007Q2 checkout, attempt to build devel/guile-lib on OS X.

>Fix: