error in compiling g-wrap 1.3.2

Christophe NIGAUD atrap@club-internet.fr
Fri, 1 Nov 2002 15:33:04 +0100


hello, could someone help me to compile g-wrap 1.3.2 please...

i've got the following error :

gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Wno-uninitialized -Wno-unuse=
d=20
-Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include=20
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -c g-wrap-wct.c -MT=
=20
g-wrap-wct.lo -MD -MP -MF .deps/g-wrap-wct.TPlo           -fPIC -DPIC -o=20
.libs/g-wrap-wct.lo
cc1: warnings being treated as errors
g-wrap-wct.c: In function `gw_puts':
g-wrap-wct.c:67: warning: implicit declaration of function `scm_gen_puts'
g-wrap-wct.c:67: `scm_mb_string' undeclared (first use in this function)
g-wrap-wct.c:67: (Each undeclared identifier is reported only once
g-wrap-wct.c:67: for each function it appears in.)
make[2]: *** [g-wrap-wct.lo] Erreur 1
make[2]: Quitte le r=E9pertoire `/usr/src/g-wrap-1.3.2/g-wrap'


this lines in g-wrap-wct.c are problematics :

line 63 :  #if HAVE_SCM_PUTS
line 64 :    /* (char *) fixes problem with guile 1.3.4 prototype. */
line 65 :    scm_puts((char *) str,port);
line 66 :  #else
line 67 :    scm_gen_puts(scm_mb_string,str,port);
line 68 :  #endif

and if i comment line 67, the compilation pass but another error get after :
...
collect2: ld returned 1 exit status
make[2]: *** [test-link-gw-wct] Erreur 1

system :
gcc version 3.2
Mandrake Linux 9.0
GNU ld version 2.12.90.0.15 20020717

(i remove '-Werror' in Makefile.am & Makefile.in like in previous mail, but=
 it=20
dosen't work)

thx