* Problem to compile g-wrap
@ 2011-10-01 23:53 Germán Arias
2011-10-03 22:58 ` Germán Arias
0 siblings, 1 reply; 10+ messages in thread
From: Germán Arias @ 2011-10-01 23:53 UTC (permalink / raw)
To: Guile
Compiling g-wrap-1.9.13 with gcc 4.6.0, I get (using guile 2.0.2):
In file included from guile-runtime.c:32:0:
../../guile/g-wrap/guile-compatibility.h:50:0: error: "scm_is_eq"
redefined [-Werror]
/usr/local/include/guile/2.0/libguile/tags.h:120:0: note: this is the
location of the previous definition
../../guile/g-wrap/guile-compatibility.h:51:0: error: "scm_is_null"
redefined [-Werror]
/usr/local/include/guile/2.0/libguile/pairs.h:73:0: note: this is the
location of the previous definition
../../guile/g-wrap/guile-compatibility.h:81:0: error: "scm_is_symbol"
redefined [-Werror]
and:
guile-runtime.c: In function 'gw_guile_enum_val2sym':
guile-runtime.c:75:3: error: implicit declaration of function
'scm_is_true' [-Werror=implicit-function-declaration]
guile-runtime.c:82:3: error: implicit declaration of function
'scm_is_symbol' [-Werror=implicit-function-declaration]
guile-runtime.c:85:5: error: implicit declaration of function
'scm_is_false' [-Werror=implicit-function-declaration]
guile-runtime.c:89:5: error: 'scm_num2long' is deprecated (declared
at /usr/local/include/guile/2.0/libguile/deprecated.h:681)
[-Werror=deprecated-declarations]
guile-runtime.c:94:5: error: 'scm_num2long' is deprecated (declared
at /usr/local/include/guile/2.0/libguile/deprecated.h:681)
[-Werror=deprecated-declarations]
guile-runtime.c:102:9: error: 'scm_str2symbol' is deprecated (declared
at /usr/local/include/guile/2.0/libguile/deprecated.h:718)
[-Werror=deprecated-declarations]
guile-runtime.c:104:7: error: 'scm_str2symbol' is deprecated (declared
at /usr/local/include/guile/2.0/libguile/deprecated.h:718)
[-Werror=deprecated-declarations]
Any advice? Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-01 23:53 Problem to compile g-wrap Germán Arias
@ 2011-10-03 22:58 ` Germán Arias
2011-10-04 19:50 ` Ludovic Courtès
2011-10-12 13:26 ` Paul Emsley
0 siblings, 2 replies; 10+ messages in thread
From: Germán Arias @ 2011-10-03 22:58 UTC (permalink / raw)
To: guile-user
I found the problem. the configuration say:
checking size of size_t... 4
checking size of ssize_t... 4
checking for guile... /usr/local/bin/guile
checking for guile-config... /usr/local/bin/guile-config
checking for guile-tools... /usr/local/bin/guile-tools
checking libguile compile flags... -pthread
-I/usr/local/include/guile/2.0 -I/usr/local/include
checking libguile link flags... -L/usr/local/lib -lguile-2.0 -lgc
checking for guile-2.0... no
Why? the Guile libraries are just there.
On sáb, 2011-10-01 at 17:53 -0600, Germán Arias wrote:
> Compiling g-wrap-1.9.13 with gcc 4.6.0, I get (using guile 2.0.2):
>
> In file included from guile-runtime.c:32:0:
> ../../guile/g-wrap/guile-compatibility.h:50:0: error: "scm_is_eq"
> redefined [-Werror]
> /usr/local/include/guile/2.0/libguile/tags.h:120:0: note: this is the
> location of the previous definition
> ../../guile/g-wrap/guile-compatibility.h:51:0: error: "scm_is_null"
> redefined [-Werror]
> /usr/local/include/guile/2.0/libguile/pairs.h:73:0: note: this is the
> location of the previous definition
> ../../guile/g-wrap/guile-compatibility.h:81:0: error: "scm_is_symbol"
> redefined [-Werror]
>
>
> and:
>
>
> guile-runtime.c: In function 'gw_guile_enum_val2sym':
> guile-runtime.c:75:3: error: implicit declaration of function
> 'scm_is_true' [-Werror=implicit-function-declaration]
> guile-runtime.c:82:3: error: implicit declaration of function
> 'scm_is_symbol' [-Werror=implicit-function-declaration]
> guile-runtime.c:85:5: error: implicit declaration of function
> 'scm_is_false' [-Werror=implicit-function-declaration]
> guile-runtime.c:89:5: error: 'scm_num2long' is deprecated (declared
> at /usr/local/include/guile/2.0/libguile/deprecated.h:681)
> [-Werror=deprecated-declarations]
> guile-runtime.c:94:5: error: 'scm_num2long' is deprecated (declared
> at /usr/local/include/guile/2.0/libguile/deprecated.h:681)
> [-Werror=deprecated-declarations]
> guile-runtime.c:102:9: error: 'scm_str2symbol' is deprecated (declared
> at /usr/local/include/guile/2.0/libguile/deprecated.h:718)
> [-Werror=deprecated-declarations]
> guile-runtime.c:104:7: error: 'scm_str2symbol' is deprecated (declared
> at /usr/local/include/guile/2.0/libguile/deprecated.h:718)
> [-Werror=deprecated-declarations]
>
>
> Any advice? Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-03 22:58 ` Germán Arias
@ 2011-10-04 19:50 ` Ludovic Courtès
2011-10-05 0:00 ` Germán Arias
2011-10-12 13:26 ` Paul Emsley
1 sibling, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2011-10-04 19:50 UTC (permalink / raw)
To: guile-user
Hi,
Germán Arias <german@xelalug.org> skribis:
> checking size of size_t... 4
> checking size of ssize_t... 4
> checking for guile... /usr/local/bin/guile
> checking for guile-config... /usr/local/bin/guile-config
> checking for guile-tools... /usr/local/bin/guile-tools
> checking libguile compile flags... -pthread
> -I/usr/local/include/guile/2.0 -I/usr/local/include
> checking libguile link flags... -L/usr/local/lib -lguile-2.0 -lgc
> checking for guile-2.0... no
>
>
> Why? the Guile libraries are just there.
Presumably it’s running ‘pkg-config guile-2.0’, which fails. Can you
check whether guile-2.0.pc is in $PKG_CONFIG_PATH?
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-04 19:50 ` Ludovic Courtès
@ 2011-10-05 0:00 ` Germán Arias
2011-10-05 10:11 ` Ludovic Courtès
0 siblings, 1 reply; 10+ messages in thread
From: Germán Arias @ 2011-10-05 0:00 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-user
On mar, 2011-10-04 at 21:50 +0200, Ludovic Courtès wrote:
> Hi,
>
> Germán Arias <german@xelalug.org> skribis:
>
> > checking size of size_t... 4
> > checking size of ssize_t... 4
> > checking for guile... /usr/local/bin/guile
> > checking for guile-config... /usr/local/bin/guile-config
> > checking for guile-tools... /usr/local/bin/guile-tools
> > checking libguile compile flags... -pthread
> > -I/usr/local/include/guile/2.0 -I/usr/local/include
> > checking libguile link flags... -L/usr/local/lib -lguile-2.0 -lgc
> > checking for guile-2.0... no
> >
> >
> > Why? the Guile libraries are just there.
>
> Presumably it’s running ‘pkg-config guile-2.0’, which fails. Can you
> check whether guile-2.0.pc is in $PKG_CONFIG_PATH?
>
> HTH,
> Ludo’.
>
PKG_CONFIG_PATH is empty. So I do:
export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
guile-2.0.pc is at /usr/local/lib/pkgconfig. But I get the same output.
Which should be the output of 'pkg-config guile-2.0'? If I run this, I
get:
german@german-desktop:~/Instalados/g-wrap-1.9.13$ pkg-config guile-2.0
german@german-desktop:~/Instalados/g-wrap-1.9.13$
Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-05 0:00 ` Germán Arias
@ 2011-10-05 10:11 ` Ludovic Courtès
2011-10-06 6:12 ` Germán Arias
0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2011-10-05 10:11 UTC (permalink / raw)
To: guile-user
Hi,
Germán Arias <german@xelalug.org> skribis:
> guile-2.0.pc is at /usr/local/lib/pkgconfig. But I get the same output.
> Which should be the output of 'pkg-config guile-2.0'? If I run this, I
> get:
>
> german@german-desktop:~/Instalados/g-wrap-1.9.13$ pkg-config guile-2.0
Try ‘pkg-config --print-errors guile-2.0’.
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-05 10:11 ` Ludovic Courtès
@ 2011-10-06 6:12 ` Germán Arias
2011-10-06 19:07 ` Ludovic Courtès
0 siblings, 1 reply; 10+ messages in thread
From: Germán Arias @ 2011-10-06 6:12 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-user
On mié, 2011-10-05 at 12:11 +0200, Ludovic Courtès wrote:
> Hi,
>
> Germán Arias <german@xelalug.org> skribis:
>
> > guile-2.0.pc is at /usr/local/lib/pkgconfig. But I get the same output.
> > Which should be the output of 'pkg-config guile-2.0'? If I run this, I
> > get:
> >
> > german@german-desktop:~/Instalados/g-wrap-1.9.13$ pkg-config guile-2.0
>
> Try ‘pkg-config --print-errors guile-2.0’.
>
> Ludo’.
>
There isn't errors:
german@german-desktop:~$ pkg-config --print-errors guile-2.0
german@german-desktop:~$
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-06 6:12 ` Germán Arias
@ 2011-10-06 19:07 ` Ludovic Courtès
2011-10-07 18:31 ` Germán Arias
0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2011-10-06 19:07 UTC (permalink / raw)
To: guile-user
Germán Arias <german@xelalug.org> skribis:
> There isn't errors:
Then it should work. :-)
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-06 19:07 ` Ludovic Courtès
@ 2011-10-07 18:31 ` Germán Arias
0 siblings, 0 replies; 10+ messages in thread
From: Germán Arias @ 2011-10-07 18:31 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-user
On jue, 2011-10-06 at 21:07 +0200, Ludovic Courtès wrote:
> Germán Arias <german@xelalug.org> skribis:
>
> > There isn't errors:
>
> Then it should work. :-)
>
> Ludo’.
>
Then the problem is in g-wrap. Maybe because uses deprecated methods?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-03 22:58 ` Germán Arias
2011-10-04 19:50 ` Ludovic Courtès
@ 2011-10-12 13:26 ` Paul Emsley
2011-10-15 21:55 ` Germán Arias
1 sibling, 1 reply; 10+ messages in thread
From: Paul Emsley @ 2011-10-12 13:26 UTC (permalink / raw)
To: guile-user@gnu.org
On 03/10/11 23:58, Germán Arias wrote:
> I found the problem. the configuration say:
>
> checking size of size_t... 4
> checking size of ssize_t... 4
> checking for guile... /usr/local/bin/guile
> checking for guile-config... /usr/local/bin/guile-config
> checking for guile-tools... /usr/local/bin/guile-tools
> checking libguile compile flags... -pthread
> -I/usr/local/include/guile/2.0 -I/usr/local/include
> checking libguile link flags... -L/usr/local/lib -lguile-2.0 -lgc
> checking for guile-2.0... no
>
>
> Why? the Guile libraries are just there.
>
>>
>> Any advice? Thanks.
>
This (the final report line) is not checking the guile libraries, it is
checking that the guile you are using can be executed with or without a
version extension (GUILE_VERSIONED). I don't think that that is related
to the problem.
It seems to me that you are compiling g-wrap too rigorously. Try
turning off -Wall, -Werror and/or -Werror-implicit-function-declaration
i.e. in g-wrap/Makefile
CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Werror -std=gnu99
->
CFLAGS = -g -O2
Paul.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem to compile g-wrap
2011-10-12 13:26 ` Paul Emsley
@ 2011-10-15 21:55 ` Germán Arias
0 siblings, 0 replies; 10+ messages in thread
From: Germán Arias @ 2011-10-15 21:55 UTC (permalink / raw)
To: Paul Emsley; +Cc: guile-user@gnu.org
On mié, 2011-10-12 at 14:26 +0100, Paul Emsley wrote:
> On 03/10/11 23:58, Germán Arias wrote:
> > I found the problem. the configuration say:
> >
> > checking size of size_t... 4
> > checking size of ssize_t... 4
> > checking for guile... /usr/local/bin/guile
> > checking for guile-config... /usr/local/bin/guile-config
> > checking for guile-tools... /usr/local/bin/guile-tools
> > checking libguile compile flags... -pthread
> > -I/usr/local/include/guile/2.0 -I/usr/local/include
> > checking libguile link flags... -L/usr/local/lib -lguile-2.0 -lgc
> > checking for guile-2.0... no
> >
> >
> > Why? the Guile libraries are just there.
> >
> >>
> >> Any advice? Thanks.
> >
>
> This (the final report line) is not checking the guile libraries, it is
> checking that the guile you are using can be executed with or without a
> version extension (GUILE_VERSIONED). I don't think that that is related
> to the problem.
>
> It seems to me that you are compiling g-wrap too rigorously. Try
> turning off -Wall, -Werror and/or -Werror-implicit-function-declaration
>
> i.e. in g-wrap/Makefile
>
> CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Werror -std=gnu99
> ->
> CFLAGS = -g -O2
>
> Paul.
Even if I modify all Makefiles I get the same errors. I will try with
g-wrap from git.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-10-15 21:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-01 23:53 Problem to compile g-wrap Germán Arias
2011-10-03 22:58 ` Germán Arias
2011-10-04 19:50 ` Ludovic Courtès
2011-10-05 0:00 ` Germán Arias
2011-10-05 10:11 ` Ludovic Courtès
2011-10-06 6:12 ` Germán Arias
2011-10-06 19:07 ` Ludovic Courtès
2011-10-07 18:31 ` Germán Arias
2011-10-12 13:26 ` Paul Emsley
2011-10-15 21:55 ` Germán Arias
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).