guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: examples and testing


From: Marius Vollmer
Subject: Re: examples and testing
Date: 23 Jul 2001 23:18:34 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Martin Grabmueller <address@hidden> writes:

> > [...] They might be build and run on "make installcheck", using
> > the installed Guile (that is, being careful to select the right
> > `guile-config' program).
> 
> What do you mean by `being careful'? Wouldn't that just be a 
> 
>   LIBS=`guile-config link`
> 
> in the Makefile.am?

More like

    LIBS=`$(bindir)/guile-config link`

so that the guile-config is used that has just been installed,
regardless of the setting of $PATH.

> > Objections?
> 
> No, it's probably better to go this route.  I have just spent a couple
> of hours to get everything build and `make check' cleanly,

Ooops.  You should document what you did somewhere if we are not going
to use it so that your work is not lost.

Are you going to you revert the changes?

> > > checks in every examples subdirectory on `make check'.  I have tried
> > > to make sure that everything builds fine even without an installed
> > > version of Guile (GNU stow is great!),
> > 
> > Hmm, it does not work for me, since a old version of libguile is
> > picked up accidentally.
> 
> Strange.  When does that happen?  When linking the examples?

Yes.  This is where the snapshot process fails:

Making all in box
make[2]: Entering directory 
`/dt/burns/home/mvo/snapshots/guile/guile-core-build/examples/box'
gcc -DHAVE_CONFIG_H -I. -I. -I../../libguile     -I../.. -c box.c
/bin/sh ../../libtool --mode=link gcc  -I../..  -o box  box.o  
`GUILE_LOAD_PATH=../.. ../../libguile/guile -e main -s 
../../guile-config/guile-config link` -L/libguile -L../../qt
mkdir .libs
gcc -I../.. -o box box.o  -L/home/mvo/snapshots/install/lib 
/usr/lib/libguile.so /usr/lib/libqthreads.so -ldl -lpthread -lcrypt -lm 
-L/libguile -L/home/mvo/snapshots/guile/guile-core-build/qt
box.o: In function `make_box':
box.o(.text+0x9c): undefined reference to `scm_master_freelist'
box.o: In function `init_box_type':
box.o(.text+0x22f): undefined reference to `scm_c_define_gsubr'
box.o(.text+0x24a): undefined reference to `scm_c_define_gsubr'
box.o(.text+0x265): undefined reference to `scm_c_define_gsubr'
collect2: ld returned 1 exit status
make[2]: *** [box] Error 1
make[2]: Leaving directory 
`/dt/burns/home/mvo/snapshots/guile/guile-core-build/examples/box'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/dt/burns/home/mvo/snapshots/guile/guile-core-build/examples'
make: *** [all-recursive] Error 1


The strange mention of /usr/lib/libguile.so seems to come from
libtool, which expands the "-lguile" produced by guile-config.  The
intended library /home/mvo/snaphots/install/lib/libguile.so does not
exist since "make install" has not been run (and never will).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]