error: UIB and Ubuntu lazarus / 16-Databases ---------------------------------------------------------------------- apeoperaio · 2007-05-17 12:16 I installed UIB on Ubuntu 7.04. lazarus: last SVN fpc: 2.0.4 I would like to use UIB with lazarus. In my project I use UIB to access to a firebird DB. I used UIB (2.1) both on windows and linux (FC6). And it works fine. On Ubuntu I installed without any problem UIB but if I put a JvUIBDataset on a form and try to compile the project I got an error. I pasted the messages at the bottom of this post. The same project, one form with a JvUIBdataset is compiled without any problem on fedora and winXP. Any hint? Andrea messages: Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.0.4 [2007/02/02] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling /tmp/project1.lpr Compiling unit1.pas Linking /tmp/project1 /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCO BJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTO BJECT': syncobjs.pp:(.text+0x334): undefined reference to `sem_init' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__DESTROY': syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__RESETEVENT': syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__SETEVENT': syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue' syncobjs.pp:(.text+0x464): undefined reference to `sem_post' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT': syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait' syncobjs.pp:(.text+0x503): undefined reference to `sem_post' project1.lpr(17,1) Error: Error while linking /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCO BJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTO BJECT': syncobjs.pp:(.text+0x334): undefined reference to `sem_init' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__DESTROY': syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__RESETEVENT': syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__SETEVENT': syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue' syncobjs.pp:(.text+0x464): undefined reference to `sem_post' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT': syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait' syncobjs.pp:(.text+0x503): undefined reference to `sem_post' project1.lpr(17,1) Error: Error while linking ---------------------------------------------------------------------- apeoperaio · 2007-05-18 07:50 Solved. It was a problem related to a conflict between libpthread.so.0 and libpthread.so.20. I don't know exactly how I solved the problem. I made a lot of trials. Removing and reinstalling those libraries. andrea