[Lazarus-es] Error al conectar con firebird

José Mejuto joshyfun en gmail.com
Mar Mayo 25 23:09:44 CEST 2010


Hello Ismael,

Tuesday, May 25, 2010, 7:28:12 PM, you wrote:

ILDG> Cuando mando a ejecutar una aplicación realizada en
ILDG> Lazarus me da el siguiente error:
ILDG> Can not load default Firebird client ("libgds.so" or
ILDG> "libfbclient.so") Check your Installation.
ILDG> Sin embargo yo tengo instalada la librería cliente en:
ILDG> /usr/lib/libfbclient.so.2

Sin estar seguro, diría que tu versión de Firebird es un poco antigua
y probablemente te veas afectado por este bug:

http://tracker.firebirdsql.org/browse/CORE-2157

el bug tracker de free pascal he sacado esto:

I found the solution.
I try load the library (fpc source rtl/unix/dynlibs.inc)
  dlopen(pchar('libfbclient.so'),RTLD_LAZY);
  buffer:=dlerror;
  writeln(buffer); -->
  /lib/libfbclient.so: undefined symbol: pthread_create

So I seach in Internet and add the pthreads unit and works!!
uses {$ifdef linux}
   pthreads,
  {$endif}
This only need for a freepascal console application under linux.

You can close this issue, although in gtk2 works without pthreads unit. 
---------------------------------------

Así que prueba a añadir en uses el pthreads en el lpr.

-- 
Best regards,
 José





More information about the Lazarus-es mailing list