[Gambas-user] Debugging program to find error

Benoît Minisini gambas at ...1...
Mon Apr 12 04:19:04 CEST 2010


> -----Mensaje original-----
> De: Benoît Minisini <gambas at ...1...>
> Reply-to: mailing list for gambas users
> <gambas-user at lists.sourceforge.net>
> Para: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Asunto: Re: [Gambas-user] Debugging program to find error
> Fecha: Mon, 12 Apr 2010 01:35:43 +0200
> 
> > Hello.
> > 
> > 
> > I see that I can not explain it yet. :=)
> > 
> > [...]
> > 
> > That's what I'm trying to do, a ¡Wizzard to do the job automatically!.
> > 
> > I appreciate your understanding:
> > 
> > Regards.
> >
> >I understand. :-)
> >
> >But, if libffi.so.* are missing, why don't you provide them with your
> >package?
> 
> Hi Benoit
> 
> I appreciate your patience
> 
> The problem of the interpreter gbx2 not find libffi library (gbr2: error
> while loading shared libraries: libffi.so.5: cannot open shared object
> file: No such file or directory
> ), is that the routes included in the file .sh are not taken into
> account. To fix this I added the following paths to the file .profile
> (The tests carried out from a project created in gambas2.20 in Ubuntu
> 9.10 to Ubuntu 8.04 distribution located on the same computer and runs
> through Virtualbox.
> 
> #!/bin/sh
> export PATH=/path/my/proyect/gambas2/bin
> export
> LD_LIBRARY_PATH=/path/my/proyect/gambas2/lib_shared/lib:/path/my/proyect/ga
> mbas2/lib_shared/usr/lib
> 
> You see I have to load the variable LD_LIBRARY_PATH when the user start
> a session, as this is ignored if the file is called from . sh
> 
> Doriano kindly indicated that this was due to the following:
> 
> "Read carefully read the documentation about ld.so (8). That if the
> states It
> program is a setuid / setgid one, the PATH variable .. LD_ is ignored."
> 
> Actually, not like seeing if the file has this feature.
> 
> Now if you log off and go again, Ubuntu throws error. This is because as
> directed on the path to the shared libraries, is not the path for those
> that come with Ubuntu 8.04 distribution. To fix this I add them to the
> path of LD_LIBARRY_PATH:
> 
> #!/bin/sh
> export PATH=/path/my/proyect/gambas2/bin
> export
> LD_LIBRARY_PATH=/path/my/proyect/gambas2/lib_shared/lib:/path/my/proyect/ga
> mbas2/lib_shared/usr/lib:/lib:/usr/lib:/usr/local/lib
> 
> This solves the problem, but to run the file .sh, which now gives the
> error is about GTK not find the libraries:
> 
> The GB_DIR variable in this case is not taken into account:
> 
> Summing up the problems:
> 
> 1) The LD_LIBRARY_PATH variable is not taken into account when running
> the file. sh.
> 2) The GB_DIR variable is not taken into account.
> 
> 
> I send back the routes of the project. Sorry so long
> 
> $ Tree opt
> 
>  my_project/
> 
> |-- gambas2
> |
> |   |-- bin
> |   |
> |   |   |-- gbr2
> |   |   
> |   |   `-- gbx2
> |   |
> |   |-- lib
> |   |
> |   |   `-- gambas2
> |   |   
> |   |       |-- gb.draw.la
> |   |       |-- gb.draw.so
> |   |       |-- gb.draw.so.0
> |   |       |-- gb.draw.so.0.0.0
> |   |       |-- gb.form.component
> |   |       |-- gb.form.gambas
> |   |       |-- gb.gtk.component
> |   |       |-- gb.gtk.ext.component
> |   |       |-- gb.gtk.ext.la
> |   |       |-- gb.gtk.ext.so
> |   |       |-- gb.gtk.ext.so.0
> |   |       |-- gb.gtk.ext.so.0.0.0
> |   |       |-- gb.gtk.gambas
> |   |       |-- gb.gtk.la
> |   |       |-- gb.gtk.so
> |   |       |-- gb.gtk.so.0
> |   |       |-- gb.gtk.so.0.0.0
> |   |       |-- gb.so
> |   |       |-- gb.so.0
> |   |       
> |   |       `-- gb.so.0.0.0
> |   
> |   `-- library_shared
> |   
> |       |-- lib
> |       |
> |       |   |-- ld-2.9.so
> |       |   |-- ld-linux.so.2
> |       |   |-- libgcc_s.so.1
> |       |   |-- libpcre.so.3
> |       |   |-- libpcre.so.3.12.1
> |       |   |-- libselinux.so.1
> |       |   |-- libz.so.1
> |       |   |-- libz.so.1.2.3.3
> |       |   
> |       |   `-- tls
> |       |   
> |       |       `-- i686
> |       |       
> |       |           `-- cmov
> |       |           
> |       |               |-- libc-2.9.so
> |       |               |-- libc.so.6
> |       |               |-- libdl-2.9.so
> |       |               |-- libdl.so.2
> |       |               |-- libm-2.9.so
> |       |               |-- libm.so.6
> |       |               |-- libpthread-2.9.so
> |       |               
> |       |               `-- libpthread.so.0
> |       
> |       `-- usr
> |       
> |           `-- lib
> |           
> |               |-- libX11.so.6
> |               |-- libX11.so.6.2.0
> |               |-- libXau.so.6
> |               |-- libXau.so.6.0.0
> |               |-- libXcomposite.so.1
> |               |-- libXcomposite.so.1.0.0
> |               |-- libXcursor.so.1
> |               |-- libXcursor.so.1.0.2
> |               |-- libXdamage.so.1
> |               |-- libXdamage.so.1.1.0
> |               |-- libXdmcp.so.6
> |               |-- libXdmcp.so.6.0.0
> |               |-- libXext.so.6
> |               |-- libXext.so.6.4.0
> |               |-- libXfixes.so.3
> |               |-- libXfixes.so.3.1.0
> |               |-- libXi.so.6
> |               |-- libXi.so.6.0.0
> |               |-- libXinerama.so.1
> |               |-- libXinerama.so.1.0.0
> |               |-- libXrandr.so.2
> |               |-- libXrandr.so.2.2.0
> |               |-- libXrender.so.1
> |               |-- libXrender.so.1.3.0
> |               |-- libatk-1.0.so.0
> |               |-- libatk-1.0.so.0.2609.1
> |               |-- libcairo.so.2
> |               |-- libcairo.so.2.10800.6
> |               |-- libdirect-1.0.so.0
> |               |-- libdirect-1.0.so.0.1.0
> |               |-- libdirectfb-1.0.so.0
> |               |-- libdirectfb-1.0.so.0.1.0
> |               |-- libexpat.so.1
> |               |-- libexpat.so.1.5.2
> |               |-- libffi.so.5
> |               |-- libffi.so.5.0.8
> |               |-- libfontconfig.so.1
> |               |-- libfontconfig.so.1.3.0
> |               |-- libfreetype.so.6
> |               |-- libfreetype.so.6.3.20
> |               |-- libfusion-1.0.so.0
> |               |-- libfusion-1.0.so.0.1.0
> |               |-- libgdk-x11-2.0.so.0
> |               |-- libgdk-x11-2.0.so.0.1600.1
> |               |-- libgdk_pixbuf-2.0.so.0
> |               |-- libgdk_pixbuf-2.0.so.0.1600.1
> |               |-- libgio-2.0.so.0
> |               |-- libgio-2.0.so.0.2000.1
> |               |-- libglib-2.0.so.0
> |               |-- libglib-2.0.so.0.2000.1
> |               |-- libgmodule-2.0.so.0
> |               |-- libgmodule-2.0.so.0.2000.1
> |               |-- libgobject-2.0.so.0
> |               |-- libgobject-2.0.so.0.2000.1
> |               |-- libgtk-x11-2.0.so.0
> |               |-- libgtk-x11-2.0.so.0.1600.1
> |               |-- libpango-1.0.so.0
> |               |-- libpango-1.0.so.0.2400.1
> |               |-- libpangocairo-1.0.so.0
> |               |-- libpangocairo-1.0.so.0.2400.1
> |               |-- libpangoft2-1.0.so.0
> |               |-- libpangoft2-1.0.so.0.2400.1
> |               |-- libpixman-1.so.0
> |               |-- libpixman-1.so.0.13.2
> |               |-- libpng12.so.0
> |               |-- libpng12.so.0.27.0
> |               |-- libstdc++.so.6
> |               |-- libstdc++.so.6.0.10
> |               |-- libxcb-render-util.so.0
> |               |-- libxcb-render-util.so.0.0.0
> |               |-- libxcb-render.so.0
> |               |-- libxcb-render.so.0.0.0
> |               |-- libxcb.so.1
> |               |-- libxcb.so.1.1.0
> |               |-- libz.so.1
> |               
> |               `-- libz.so.1.2.3.3
> 
> `-- my_project.gambas
> 
> 
> Is it possible to make this installer, or am I wrong in the concept?
> I would be grateful if you could give me some step to keep trying, and
> to collaborate with this project installer Gambas.
> 
> Regards
> 
> 

Can you make an archive of your package and put it somewhere I can download 
it? I will test it on my Mandriva and see what happens exactly.

Regards,

-- 
Benoît Minisini




More information about the User mailing list