[Gambas-devel] Ubuntu 10.04 error compiling gambas2 from svn
Benoît Minisini
gambas at ...1...
Mon Nov 8 16:57:35 CET 2010
> Le Wednesday 13 October 2010 12:30:57, Benoît Minisini a écrit :
> > > Benoît, i get the same in gambas3 from svn revision: 3265
> > >
> > > make[4]: ingresso nella directory
> > > «/home/ubuntu/src/gambas/trunk/main/gbx» gcc -DHAVE_CONFIG_H -I. -I..
> > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value
> > > -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT
> > > libgbx_a-gb_error.o -MD -MP -MF
> > > .deps/libgbx_a-gb_error.Tpo -c -o libgbx_a-gb_error.o `test -f
> > > 'gb_error.c' || echo './'`gb_error.c
> > > mv -f .deps/libgbx_a-gb_error.Tpo .deps/libgbx_a-gb_error.Po
> > > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\""
> > > -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O3
> > > -I../share -MT libgbx_a-gbx_exec_loop.o -MD -MP -MF
> > > .deps/libgbx_a-gbx_exec_loop.Tpo -c -o libgbx_a-gbx_exec_loop.o `test
> > > -f 'gbx_exec_loop.c' || echo './'`gbx_exec_loop.c
> > > In file included from gbx_exec_loop.c:42:
> > > gbx_math.h:66: error: conflicting types for ‘powl’
> > > gbx_math.h:70: error: conflicting types for ‘modfl’
> > > make[4]: *** [libgbx_a-gbx_exec_loop.o] Errore 1
> > > make[4]: uscita dalla directory
> > > «/home/ubuntu/src/gambas/trunk/main/gbx» make[3]: *** [all-recursive]
> > > Errore 1
> > > make[3]: uscita dalla directory «/home/ubuntu/src/gambas/trunk/main»
> > > make[2]: *** [all] Errore 2
> > > make[2]: uscita dalla directory «/home/ubuntu/src/gambas/trunk/main»
> > > make[1]: *** [all-recursive] Errore 1
> > > make[1]: uscita dalla directory «/home/ubuntu/src/gambas/trunk»
> > > make: *** [all] Errore 2
> >
> > Strange. I had no problem at all on Ubuntu 10.04, and I have just
> > compiled Gambas on Ubuntu 10.10, and had no problem as well. Can you
> > send the contents of the "config.h" file located in the "trunk/main"
> > directory?
>
> Hello Benoît,
>
> In gambas/trunk/main/gbx/gbx_math.h, powl() is strangely declared with only
> ONE parameter (see line 65-67) :
> ...
> #ifndef HAVE_POWL
> long double powl(long double x);
> #endif
> ...
>
> But in gbx_math.c, powl() is used with TWO parameters.
> See line 137 in frexp10() :
> ...
> if (f == 0.0)
> l = x;
> else
> l = powl(10, l);
> ...
>
> Regards,
> Christian.
>
Indeed. It should be fixed in revision #3286.
Regards,
--
Benoît Minisini
More information about the Devel
mailing list