[Gambas-devel] problems compiling in Debian

Benoit Minisini gambas at ...1...
Thu Aug 10 19:20:12 CEST 2006


On Thursday 10 August 2006 16:48, José L. Redrejo Rodríguez wrote:
> 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...
>

I see. But I followed what is explained in the official GNU Autoconf manual 
when you want to use in your code a path defined by the compilation process:

http://www.gnu.org/software/autoconf/manual/autoconf.pdf (page 25)

According to what I read, you should do:
$ ./configure --prefix=/usr/bin
$ make
$ make prefix=/gambas/gambas2-1.9.33/debian/tmp/usr/bin install

So that the installation goes into the directory you want, but the program was 
compiled to work in the real installation directory.

Is it possible? Do you another way to do that?

-- 
Benoit Minisini





More information about the Devel mailing list