Re: Compiling problems

2012-08-31 Thread nalaginrut
hi Olf! 
Maybe you use a low version libgc?
But I can compiler Guile successfully under openSUSE, libgc1 version is
7.1.9.6-143.1.2

On Fri, 2012-08-31 at 13:35 +0800, Olf wrote: 
> Hello everyone,
> I am just trying to install guile to my home folder of a SLES cluster. I
> had to install several dependencies as well which seemed to be no problem.
> Now the ./configure script returns no errors but make cannot finish
> compiling the libraries.
> I run configure with linking against all libraries installed to my home
> folder:
> 
> *toInstall/guile-2.0.6> ./configure --prefix=$HOME/install
> LDFLAGS=-L$HOME/install/lib CPPFLAGS=-I$HOME/install/include
> LIBFFI_CFLAGS=-I$HOME/install/include LIBFFI_LIBS=-L$HOME/install/lib
> BDW_GC_CFLAGS='-I$HOME/install/include' BDW_GC_LIBS='-L$HOME/install/lib'*
> 
> 
> I get the following error message:
> 
> 
> .
> .
> .
> make  all-am
> make[3]: Entering directory `/home/hudelistf/toInstall/guile-2.0.6/libguile'
>   CC   libguile_2.0_la-alist.lo
>   CC   libguile_2.0_la-arbiters.lo
>   CC   libguile_2.0_la-array-handle.lo
>   CC   libguile_2.0_la-array-map.lo
>   CC   libguile_2.0_la-arrays.lo
>   CC   libguile_2.0_la-async.lo
>   CC   libguile_2.0_la-backtrace.lo
>   CC   libguile_2.0_la-boolean.lo
>   CC   libguile_2.0_la-bitvectors.lo
>   CC   libguile_2.0_la-bytevectors.lo
>   CC   libguile_2.0_la-chars.lo
>   CC   libguile_2.0_la-control.lo
>   CC   libguile_2.0_la-continuations.lo
>   CC   libguile_2.0_la-debug.lo
>   CC   libguile_2.0_la-deprecated.lo
>   CC   libguile_2.0_la-deprecation.lo
>   CC   libguile_2.0_la-dynwind.lo
>   CC   libguile_2.0_la-eq.lo
>   CC   libguile_2.0_la-error.lo
>   CC   libguile_2.0_la-eval.lo
>   CC   libguile_2.0_la-evalext.lo
>   CC   libguile_2.0_la-expand.lo
>   CC   libguile_2.0_la-extensions.lo
>   CC   libguile_2.0_la-feature.lo
>   CC   libguile_2.0_la-filesys.lo
>   CC   libguile_2.0_la-finalizers.lo
> finalizers.c:166: error: static declaration of 'GC_set_finalizer_notifier'
> follows non-static declaration
> /home/hudelistf/install/include/gc/gc.h:177: error: previous declaration of
> 'GC_set_finalizer_notifier' was here
> make[3]: *** [libguile_2.0_la-finalizers.lo] Error 1
> make[3]: Leaving directory `/home/hudelistf/toInstall/guile-2.0.6/libguile'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/hudelistf/toInstall/guile-2.0.6/libguile'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/hudelistf/toInstall/guile-2.0.6'
> make: *** [all] Error 2
> toInstall/guile-2.0.6>
> 
> 
> 
> Can anyone hint me how I can resolve the conflict about this
> GC_set_finalizer_notifier?
> 
> Thanks in advance,
> Florian





Re: Compiling problems

2012-08-31 Thread Olf
Hi,
yes there is the problem that in /usr/share there is an old version of
libctl but I installed the latest version in $HOME/install. I was hoping by
setting LDFLAGS and CPPFLAGS to this folder to link to that location.
Can I tell make to only use these libraries?

Florian

On Fri, Aug 31, 2012 at 5:07 PM, nalaginrut  wrote:

> hi Olf!
> Maybe you use a low version libgc?
> But I can compiler Guile successfully under openSUSE, libgc1 version is
> 7.1.9.6-143.1.2
>
> On Fri, 2012-08-31 at 13:35 +0800, Olf wrote:
> > Hello everyone,
> > I am just trying to install guile to my home folder of a SLES cluster. I
> > had to install several dependencies as well which seemed to be no
> problem.
> > Now the ./configure script returns no errors but make cannot finish
> > compiling the libraries.
> > I run configure with linking against all libraries installed to my home
> > folder:
> >
> > *toInstall/guile-2.0.6> ./configure --prefix=$HOME/install
> > LDFLAGS=-L$HOME/install/lib CPPFLAGS=-I$HOME/install/include
> > LIBFFI_CFLAGS=-I$HOME/install/include LIBFFI_LIBS=-L$HOME/install/lib
> > BDW_GC_CFLAGS='-I$HOME/install/include'
> BDW_GC_LIBS='-L$HOME/install/lib'*
> >
> >
> > I get the following error message:
> >
> >
> > .
> > .
> > .
> > make  all-am
> > make[3]: Entering directory
> `/home/hudelistf/toInstall/guile-2.0.6/libguile'
> >   CC   libguile_2.0_la-alist.lo
> >   CC   libguile_2.0_la-arbiters.lo
> >   CC   libguile_2.0_la-array-handle.lo
> >   CC   libguile_2.0_la-array-map.lo
> >   CC   libguile_2.0_la-arrays.lo
> >   CC   libguile_2.0_la-async.lo
> >   CC   libguile_2.0_la-backtrace.lo
> >   CC   libguile_2.0_la-boolean.lo
> >   CC   libguile_2.0_la-bitvectors.lo
> >   CC   libguile_2.0_la-bytevectors.lo
> >   CC   libguile_2.0_la-chars.lo
> >   CC   libguile_2.0_la-control.lo
> >   CC   libguile_2.0_la-continuations.lo
> >   CC   libguile_2.0_la-debug.lo
> >   CC   libguile_2.0_la-deprecated.lo
> >   CC   libguile_2.0_la-deprecation.lo
> >   CC   libguile_2.0_la-dynwind.lo
> >   CC   libguile_2.0_la-eq.lo
> >   CC   libguile_2.0_la-error.lo
> >   CC   libguile_2.0_la-eval.lo
> >   CC   libguile_2.0_la-evalext.lo
> >   CC   libguile_2.0_la-expand.lo
> >   CC   libguile_2.0_la-extensions.lo
> >   CC   libguile_2.0_la-feature.lo
> >   CC   libguile_2.0_la-filesys.lo
> >   CC   libguile_2.0_la-finalizers.lo
> > finalizers.c:166: error: static declaration of
> 'GC_set_finalizer_notifier'
> > follows non-static declaration
> > /home/hudelistf/install/include/gc/gc.h:177: error: previous declaration
> of
> > 'GC_set_finalizer_notifier' was here
> > make[3]: *** [libguile_2.0_la-finalizers.lo] Error 1
> > make[3]: Leaving directory
> `/home/hudelistf/toInstall/guile-2.0.6/libguile'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory
> `/home/hudelistf/toInstall/guile-2.0.6/libguile'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/hudelistf/toInstall/guile-2.0.6'
> > make: *** [all] Error 2
> > toInstall/guile-2.0.6>
> >
> >
> >
> > Can anyone hint me how I can resolve the conflict about this
> > GC_set_finalizer_notifier?
> >
> > Thanks in advance,
> > Florian
>
>
>


Re: Compiling problems

2012-08-31 Thread Ludovic Courtès
Hi,

Which version of libgc do you use?  7.0+ is recommended.

Olf  skribis:

> *toInstall/guile-2.0.6> ./configure --prefix=$HOME/install
> LDFLAGS=-L$HOME/install/lib CPPFLAGS=-I$HOME/install/include
> LIBFFI_CFLAGS=-I$HOME/install/include LIBFFI_LIBS=-L$HOME/install/lib
> BDW_GC_CFLAGS='-I$HOME/install/include' BDW_GC_LIBS='-L$HOME/install/lib'*

Note that normally, setting the ‘PKG_CONFIG_PATH’ environment variable
to point to where libffi.pc and bdw-gc.pc live should be enough.

Thanks,
Ludo’.