Subject: pkg/30588: devel/guild14-gtk build cannot find guile14
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jdbaker@mylinuxisp.com>
List: pkgsrc-bugs
Date: 06/24/2005 07:53:01
>Number:         30588
>Category:       pkg
>Synopsis:       devel/guild14-gtk build cannot find guile14
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 24 07:53:00 +0000 2005
>Originator:     John D. Baker
>Release:        Mac OS X 10.3.9
>Organization:
>Environment:
Darwin pm8500.technoskunk.fur 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc

>Description:
Building devel/guile14-gtk fails during the 'configure' step as
follows:

[...]
checking for guile-config... yes
checking whether guile-config works... yes
checking for sin in -lm... yes
checking for guile libraries... /usr/pkg/guile/1.4/lib -L/usr/pkg/guile/1.4/lib -lguile -L/usr/pkg/lib -L/usr/lib -lm -lpthread
checking for guile headers... -I/usr/pkg/guile/1.4/include
checking whether guile works... no
configure: error: Can not find Guile on this system
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/guile14-gtk
[...]


The last entries in
/usr/pkgsrc/devel/guile14-gtk/work/guile-gtk-0.19/config.log read:

[...]
configure:2387: checking whether guile works
configure:2402: gcc -pipe -o conftest -O2 -I/usr/pkg/include -I/usr/include -no-
cpp-precomp -I/usr/pkg/include -I/usr/include -I/usr/pkg/guile/1.4/include -L/us
r/pkg/lib -L/usr/lib -L/usr/X11R6/lib  conftest.c -lm -lintl -liconv /usr/pkg/gu
ile/1.4/lib -L/usr/pkg/guile/1.4/lib -lguile -L/usr/pkg/lib -L/usr/lib -lm -lpth
read 1>&5
ld: can't map file: /usr/pkg/guile/1.4/lib ((os/kern) invalid argument)
configure: failed program was:
#line 2389 "configure"
#include "confdefs.h"

                #include <libguile.h>
                #include <guile/gh.h>
        
int main() {

                gh_eval_str("(newline)");
                scm_boot_guile(0,NULL,NULL,NULL);
        
; return 0; }



>How-To-Repeat:
cd .../pkgsrc/devel/guile14-gtk
bmake install
>Fix:
It looks like a '-L' got dropped before an instance of the path
${PREFIX}/guile/1.4/lib

Not sure where the fix should go...