unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* debian squeeze/sid - guile-master-20100617 fails
@ 2010-06-22 21:24 David Pirotte
  2010-07-02 13:03 ` Ludovic Courtès
  2010-08-18 22:27 ` Mark H Weaver
  0 siblings, 2 replies; 8+ messages in thread
From: David Pirotte @ 2010-06-22 21:24 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 2409 bytes --]

Hi guilers,

	hoping this might help you, i have tried to the snapshot
	guile-master-20100617, but with the following issue

I manually installed 

	ii  libgc-dev                                1:7.1-3 
	ii  libgc1c2                                  1:7.1-3  

also, libffi is present:

	ii  libffi-dev                                3.0.9-2
	libffi5	                                 3.0.9-2
	libffi5-dbg	                         3.0.9-2 

;; --

david@rascar:/usr/local/src/guile-master-20100617 41 $ ./make
...
...
mv -f .deps/guile-guile.Tpo .deps/guile-guile.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99  -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wundef -Wswitch-enum -fvisibility=hidden -g -O2   -o guile guile-guile.o libguile-2.0.la -lgc -lunistring -lcrypt -lm -lltdl 
libtool: link: gcc -std=gnu99 -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wundef -Wswitch-enum -fvisibility=hidden -g -O2 -o .libs/guile guile-guile.o  ./.libs/libguile-2.0.so /usr/lib/libgc.so /usr/lib/libunistring.so -lcrypt -lm /usr/lib/libltdl.so
./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_float'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_void'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint64'
./.libs/libguile-2.0.so: undefined reference to `ffi_prep_cif'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint32'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_double'
./.libs/libguile-2.0.so: undefined reference to `ffi_call'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint8'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint8'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint32'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint16'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64'
collect2: ld returned 1 exit status
make[3]: *** [guile] Error 1
make[3]: Leaving directory `/usr/local/src/guile-master-20100617/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/guile-master-20100617/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/guile-master-20100617'
make: *** [all] Error 2
david@rascar:/usr/local/src/guile-master-20100617 42 $ 


[-- Attachment #2: config.log.gz --]
[-- Type: application/x-gzip, Size: 56279 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 fails
  2010-06-22 21:24 debian squeeze/sid - guile-master-20100617 fails David Pirotte
@ 2010-07-02 13:03 ` Ludovic Courtès
  2010-07-02 14:31   ` David Pirotte
  2010-08-18 22:27 ` Mark H Weaver
  1 sibling, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2010-07-02 13:03 UTC (permalink / raw)
  To: guile-devel

Hi,

David Pirotte <david@altosw.be> writes:

> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer'

config.log reads this:

--8<---------------cut here---------------start------------->8---
ac_cv_env_LIBFFI_CFLAGS_set=
ac_cv_env_LIBFFI_CFLAGS_value=
ac_cv_env_LIBFFI_LIBS_set=
ac_cv_env_LIBFFI_LIBS_value=
--8<---------------cut here---------------end--------------->8---

which is as though no ‘-lffi’ was required on your system.  Can you show
libffi.pc?

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 fails
  2010-07-02 13:03 ` Ludovic Courtès
@ 2010-07-02 14:31   ` David Pirotte
  2010-07-02 16:27     ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: David Pirotte @ 2010-07-02 14:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Hi Ludo,

attached. on my system, the fllowing are installed

	ii  libffi-dev                                3.0.9-2  
	ii  libffi5                                   3.0.9-2    
	ii  libffi5-dbg                               3.0.9-2 

Thanks,
David

;; --

Le Fri, 02 Jul 2010 15:03:02 +0200,
ludo@gnu.org (Ludovic Courtès) a écrit :

> Hi,
> 
> David Pirotte <david@altosw.be> writes:
> 
> > ./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer'
> 
> config.log reads this:
> 
> --8<---------------cut here---------------start------------->8---
> ac_cv_env_LIBFFI_CFLAGS_set=
> ac_cv_env_LIBFFI_CFLAGS_value=
> ac_cv_env_LIBFFI_LIBS_set=
> ac_cv_env_LIBFFI_LIBS_value=
> --8<---------------cut here---------------end--------------->8---
> 
> which is as though no ‘-lffi’ was required on your system.  Can you show
> libffi.pc?
> 
> Thanks,
> Ludo’.
> 
> 

[-- Attachment #2: libffi.pc --]
[-- Type: application/octet-stream, Size: 198 bytes --]

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: 3.0.9
Libs: -lffi
Cflags:

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 fails
  2010-07-02 14:31   ` David Pirotte
@ 2010-07-02 16:27     ` Ludovic Courtès
  2010-07-04 12:15       ` David Pirotte
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2010-07-02 16:27 UTC (permalink / raw)
  To: David Pirotte; +Cc: guile-devel

Hi David,

David Pirotte <david@altosw.be> writes:

>> ac_cv_env_LIBFFI_LIBS_set=
>> ac_cv_env_LIBFFI_LIBS_value=
>> --8<---------------cut here---------------end--------------->8---
>> 
>> which is as though no ‘-lffi’ was required on your system.  Can you show
>> libffi.pc?

[...]

> Name: libffi
> Description: Library supporting Foreign Function Interfaces
> Version: 3.0.9
> Libs: -lffi

Hmm, there *is* actually -lffi.

What does ‘pkg-config libffi --libs’ say?

Ludo’.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 fails
  2010-07-02 16:27     ` Ludovic Courtès
@ 2010-07-04 12:15       ` David Pirotte
  0 siblings, 0 replies; 8+ messages in thread
From: David Pirotte @ 2010-07-04 12:15 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-devel

Hi Ludo,

Le Fri, 02 Jul 2010 18:27:51 +0200,
ludo@gnu.org (Ludovic Courtès) a écrit :

> [...]

> Hmm, there *is* actually -lffi.

> What does ‘pkg-config libffi --libs’ say?
> Ludo’.

	david@rascar:~ 11 $ pkg-config libffi --libs
	-lffi  

thanks,
David



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 fails
  2010-06-22 21:24 debian squeeze/sid - guile-master-20100617 fails David Pirotte
  2010-07-02 13:03 ` Ludovic Courtès
@ 2010-08-18 22:27 ` Mark H Weaver
  2010-08-28 17:42   ` Andy Wingo
  2010-10-11 19:12   ` debian squeeze/sid - guile-master-20100617 [fails] now it's working David Pirotte
  1 sibling, 2 replies; 8+ messages in thread
From: Mark H Weaver @ 2010-08-18 22:27 UTC (permalink / raw)
  To: David Pirotte; +Cc: guile-devel

Reviving an old thread...

Recall that David Pirotte had trouble linking libguile-2.0.so because
-lffi was not included in the link command, despite the fact that
`pkg-config --libs libffi' did the right thing.

I ran into the same problem trying to build guile on gNewSense/mipsel.

In my case, the problem was that I had set PKG_CONFIG=true while running
configure.  I did this because it was recommended by the README in the
section on setting the BDW_GC_* variables.

Perhaps that was David's problem as well?

     Mark



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 fails
  2010-08-18 22:27 ` Mark H Weaver
@ 2010-08-28 17:42   ` Andy Wingo
  2010-10-11 19:12   ` debian squeeze/sid - guile-master-20100617 [fails] now it's working David Pirotte
  1 sibling, 0 replies; 8+ messages in thread
From: Andy Wingo @ 2010-08-28 17:42 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guile-devel, David Pirotte

On Wed 18 Aug 2010 15:27, Mark H Weaver <mhw@netris.org> writes:

> In my case, the problem was that I had set PKG_CONFIG=true while running
> configure.  I did this because it was recommended by the README in the
> section on setting the BDW_GC_* variables.
>
> Perhaps that was David's problem as well?

Perhaps! I have added a note to the README.

Thanks,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: debian squeeze/sid - guile-master-20100617 [fails] now it's working
  2010-08-18 22:27 ` Mark H Weaver
  2010-08-28 17:42   ` Andy Wingo
@ 2010-10-11 19:12   ` David Pirotte
  1 sibling, 0 replies; 8+ messages in thread
From: David Pirotte @ 2010-10-11 19:12 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guile-devel

Hello,

	debian squeeze/sid - git clone of october the 12th, 2010
		...
		gcc			4:4.4.4-2
		libgc-dev 	1:7.1-3
		libgc1c2        	1:7.1-3
		...

Very sorry for the lonnnng delay! For me your suggestion didn't work. What worked is
the following [also manually defining LIBFFI_xxx vars]:

	export PKG_CONFIG=true
	export BDW_GC_CFLAGS=
	export BDW_GC_LIBS=-lgc
	export LIBFFI_CFLAGS=
	export LIBFFI_LIBS=-lffi
	./configure
	make

Thanks,
David

;; --

Le Wed, 18 Aug 2010 18:27:02 -0400,
Mark H Weaver <mhw@netris.org> a écrit :

> Reviving an old thread...
> 
> Recall that David Pirotte had trouble linking libguile-2.0.so because
> -lffi was not included in the link command, despite the fact that
> `pkg-config --libs libffi' did the right thing.
> 
> I ran into the same problem trying to build guile on gNewSense/mipsel.
> 
> In my case, the problem was that I had set PKG_CONFIG=true while running
> configure.  I did this because it was recommended by the README in the
> section on setting the BDW_GC_* variables.
> 
> Perhaps that was David's problem as well?
> 
>      Mark



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-11 19:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-22 21:24 debian squeeze/sid - guile-master-20100617 fails David Pirotte
2010-07-02 13:03 ` Ludovic Courtès
2010-07-02 14:31   ` David Pirotte
2010-07-02 16:27     ` Ludovic Courtès
2010-07-04 12:15       ` David Pirotte
2010-08-18 22:27 ` Mark H Weaver
2010-08-28 17:42   ` Andy Wingo
2010-10-11 19:12   ` debian squeeze/sid - guile-master-20100617 [fails] now it's working David Pirotte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).