[fpc-devel] fpc program now can work under uclibc based linux system, but using cthreads fails.

Jonas Maebe jonas.maebe at elis.ugent.be
Sun May 18 10:23:49 CEST 2008


On 18 May 2008, at 02:33, 开心 wrote:

> I compile my program with fpc2.3.1, then copy all the necessary .o  
> files to
> uclibc linux to link, and it works!  But cthreads.pp throwing an  
> Access
> Violation on my system, I tried to debug this and am stuck now in  
> cthreads.pp. line 289:
> if pthread_create(ppthread_t(@threadid), @thread_attr,  
> @ThreadMain,ti) <> 0 then
> I would like to know how to patch it.

The definition of some pthread types may be different in uclibc than  
in gnu libc. Check whether the types and function definitions in rtl/ 
linux/pthread.inc match those in your C header files.


Jonas


More information about the fpc-devel mailing list