[Gambas-user] gambas 0.55

Jochen Georges jochen.georges at ...22...
Wed May 7 08:10:51 CEST 2003


On Tuesday 06 May 2003 13:26, Benoit Minisini wrote:
> Le Lundi 5 Mai 2003 21:52, Charlie a écrit :
> > Benoit Minisini schrieb:
> > >Le Lundi 5 Mai 2003 20:29, Jochen Georges a écrit :
> > >>On Monday 05 May 2003 18:22, Benoit Minisini wrote:
> > >>>Hi everybody,
> > >>>
> > >>>Gambas 0.55 is out !
> > >>
> > >>hi benoit
> > >>
> > >>gambas 0.55 does not compile on debian woody :(
> > >>
> > >>...
> > >>Making all in mysql
> > >>make[5]: Entering directory
> > >> `/opt/gambas-0.55/src/lib/db/mysql' /bin/sh
> > >> ../../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
> > >> -I. -I../../../.. -I../../../../src/share
> > >> -I/usr/include/mysql/ -I/usr/include/mysql//    -pipe -Wall
> > >> -g -O0 -c main.c gcc -DHAVE_CONFIG_H -I. -I. -I../../../..
> > >> -I../../../../src/share -I/usr/include/mysql/
> > >> -I/usr/include/mysql// -pipe -Wall -g -O0 -c main.c  -fPIC
> > >> -DPIC -o main.lo
> > >>main.c: In function `open_database':
> > >>main.c:298: parse error before `char'
> > >>main.c:303: `name' undeclared (first use in this function)
> > >>main.c:303: (Each undeclared identifier is reported only once
> > >>main.c:303: for each function it appears in.)
>
> It is (alas) exactly the same problem.
>
> Replace:
>
>   char *name = GB.ToZeroString(ARG(name));
>
>   if (DB_CheckName(name, "table"))
>     return;
>
>   CTABLE *table = get_table(THIS, name, FALSE);
>
> by:
>
>   CTABLE *table;
>   char *name = GB.ToZeroString(ARG(name));
>
>   if (DB_CheckName(name, "table"))
>     return;
>
>   table = get_table(THIS, name, FALSE);

hi benoit,
in /opt/gambas-0.55/src/lib/db/mysql/main.c i did not find the 
lines.
archie:/opt/gambas-0.55/src# grep -nrA 3 ToZeroString * | grep 
DB_CheckName
lib/db/CTable.c-346-  if (DB_CheckName(index, "index"))
lib/db/CDatabase.c-79-  if (DB_CheckName(name, "database"))
lib/db/CDatabase.c-469-  if (DB_CheckName(name, "table"))

so i changed the file 
opt/gambas-0.55/src/ib/db/CTable.c
starting at line nb.469

make throws the folowing error:
In file included from 
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/iterator:32,
                 from /usr/include/qt/qmap.h:49,
                 from /usr/include/qt/qmime.h:43,
                 from /usr/include/qt/qevent.h:45,
                 from /usr/include/qt/qobject.h:45,
                 from /usr/include/qt/qwidget.h:43,
                 from /usr/include/qt/qdesktopwidget.h:42,
                 from /usr/include/qt/qapplication.h:42,
                 from CWindow.cpp:30:
/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h:337: warning: 
`offsetof' redefined
../../../src/share/common.h:95: warning: this is the location of 
the previous definition
CWindow.cpp: In method `int MyMainWindow::getState()':
CWindow.cpp:788: implicit declaration of function `int 
isFullScreen(...)'
make[5]: *** [CWindow.lo] Error 1
make[5]: Leaving directory `/opt/gambas-0.55/src/lib/qt'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/gambas-0.55/src/lib/qt'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/gambas-0.55/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/gambas-0.55/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/gambas-0.55'
make: *** [all-recursive-am] Error 2



beste gruesse
jochen




More information about the User mailing list