[Gambas-devel] problems compiling in Debian

José L. Redrejo Rodríguez jredrejo at ...101...
Thu Aug 10 16:48:49 CEST 2006


El jue, 10-08-2006 a las 14:09 +0200, Benoit Minisini escribió:
> On Thursday 10 August 2006 13:57, José L. Redrejo Rodríguez wrote:
> > Hi,
> > since version 1.9.33 I can't compile the comp/src projects. With 1.9.38
> > I get these errors:
> >
> > Installing the components...
> > Compiling gb.settings...
> > /gambas/gambas2-1.9.38/comp/src/gb.settings/Settings.class:11: Unknown
> > identifier: Collection
> > Installing gb.settings...
> > Compiling gb.info...
> > /gambas/gambas2-1.9.38/comp/src/gb.info/ComponentInfo.class:5: Unknown
> > identifier: String[]
> > Installing gb.info...
> > Compiling gb.form...
> > /gambas/gambas2-1.9.38/comp/src/gb.form/ToolPanelContainer.class:8:
> > Unknown identifier: Font
> > Installing gb.form...
> > Compiling gb.form.mdi...
> > /gambas/gambas2-1.9.38/comp/src/gb.form.mdi/CWindow.class:3: Unknown
> > identifier: Window
> > Installing gb.form.mdi...
> > Compiling gb.db.form...
> > /gambas/gambas2-1.9.38/comp/src/gb.db.form/Request.class:41: Unknown
> > identifier: String[]
> > Installing gb.db.form...
> > make[3]: Nothing to be done for `install-data-am'.
> >
> > Installing the components...
> > Compiling gb.settings...
> > /gambas/gambas2-1.9.33/comp/src/gb.settings/Settings.class:9: Unknown
> > identifier: Collection
> > Installing gb.settings...
> > Compiling gb.info...
> > /gambas/gambas2-1.9.33/comp/src/gb.info/ComponentInfo.class:5: Unknown
> > identifier: String[]
> > Installing gb.info...
> > Compiling gb.form...
> > /gambas/gambas2-1.9.33/comp/src/gb.form/ToolPanelContainer.class:8:
> > Unknown identifier: Picture
> > Installing gb.form...
> > Compiling gb.form.mdi...
> > /gambas/gambas2-1.9.33/comp/src/gb.form.mdi/CWindow.class:3: Unknown
> > identifier: Window
> > Installing gb.form.mdi...
> > Compiling gb.db.form...
> > /gambas/gambas2-1.9.33/comp/src/gb.db.form/Request.class:41: Unknown
> > identifier: String[]
> > Installing gb.db.form...
> >
> >
> >
> >
> > Any idea where the problem could be? 1.9.32 compiles and works
> > perfectly, so it seems there was some change in gbi2 or in the Makefiles
> > since 1.9.33. Maybe Benoît remembers it...
> 
> Strange, as the last (1.9.38) compiles perfectly on Ubuntu.
> 
> Do you apply some patches? Do you run "make uninstall" before compiling a new 
> package?
> 


It seems the problem comes from the new flag
gbc2_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS)
added in the main/gbc/Makefile

When making Debian packages,
$(bindir)=/gambas/gambas2-1.9.33/debian/tmp/usr/bin 
, and the resulting gbc2 doesn't work correctly in the gb.form,
gb.settings, etc. compilation steps. That's why in a "normal"
environment in compiles fine, if you are using /usr/bin as your
$(bindir).
This flag was added in 1.9.33, and since then, when compiling in /comp
using 
make install prefix=/gambas/gambas2-1.9.33/debian/tmp/usr
ROOT="/gambas/gambas2-1.9.33/debian/tmp"
it fails with the errors from my first email. If I replace gbc2 from
1.9.33 with gbc2 from 1.9.32 the above instruction works fine.
I don't know if I've explained the problem clearly, but I hope so...







More information about the Devel mailing list