[Gambas-user] Problems with Library libffi.so.5 using GB_DIR

Benoît Minisini gambas at ...1...
Tue Apr 6 18:50:35 CEST 2010


> -----Mensaje original-----
> De: craf <prog at ...2177...>
> Reply-to: mailing list for gambas users
> <gambas-user at lists.sourceforge.net>
> Para: Lista Gambas Ingles <gambas-user at lists.sourceforge.net>
> Asunto: [Gambas-user] Problems with Library libffi.so.5 using GB_DIR
> Fecha: Mon, 05 Apr 2010 20:40:21 -0400
> 
> >Hi.
> >
> >I'm still trying to port an application made in Gambas 2.20.2 in a
> >distribution Ubuntu 9.10 to a distribution  Ubuntu 8.04, using the
> >variable GB_DIR.
> >
> >My file executable.sh is as follows:
> >
> >#!/bin/sh
> >export PATH=/opt/project/gambas2/bin
> >export GB_DIR=/opt/project/gambas2/lib
> >export
> >LD_LIBRARY_PATH=/opt/project/gambas2/lib_shared/lib:/opt/project/gambas2/l
> >ib_shared/usr/lib exec /opt/project/project.gambas
> >
> >When I try to execute it, gives me:
> >
> >"Segmentation fault"
> >
> >When you run the following command:
> >
> >ldd gbr2
> >
> >I stated:
> >
> >libffi.so.5 => not found
> >
> >This link is really there and points to the library libffi.so.5.0.8
> >
> >I searched the Internet for a possible solution, but all say that this
> >error is because it is the libffi library, but in this case if.
> >Could it be a problem in the library that comes with Ubuntu 9.10
> >distribution?.
> >
> >Regards
> 
> Hi.
> 
> 
> Gradually I have been understanding the operation of the variable
> GB_DIR. As commented in the previous post, GBR2 not find the shared
> library libffi.so.
> Since I have little knowledge about C, I can not find you may be
> failing.
> As libffi.so.5.0.8 shared library is generated at compile Gambas, is
> there any option to be added to the configure command?.
> Do all the tips Doriano kindly told me, but nothing has worked.
> 
> Any light on this matter is appreciated.
> 
> Regards
> 


1) GB_DIR must point at the gambas installation directory, i.e. 
"/opt/project/gambas2/"

2) You must check where the segfault occurs, because a missing shared library 
should not cause that.

To do that, compile Gambas with debugging information enabled (i.e. compile it 
from sources without changing any option). Then use the "gdb" debugger as 
explained on the web site ("Reporting a problem" page).

3) libffi is checked at configuration time, so if it is not installed on your 
system, either not detected, you will have a warning that you won't be able to 
use extern functions, but that's all. Gambas will work anyway.

Regards,


-- 
Benoît Minisini




More information about the User mailing list