posix platform and pthread

Joel Sherrill joel.sherrill at OARcorp.com
Mon Apr 29 14:15:57 UTC 2002



Pattara Kiatisevi wrote:
> 
> Hi,
> 
> 1.RTEMS-4.5.0 on Linux. I did: '../configure --enable-posix
> --prefix=/usr/local/ott-rtems --enable-tests' and then 'make && make
> install' but I could not find libposix.a (in order to use pthread) under
> /usr/local/ott-rtems/posix/lib/. Do I miss something here?

RTEMS includes all system calls in a single library in 4.5.0.
If you use the normal linking arguments, they are just there.  
No extra libraries.  They are in librtemsall.a.

> 2.I tried to compile my code (that formerly worked on sparc-rtems) to
> posix (x86) hoping that the debugging process will be easier. But in my
> test program, the "open("/dev/soundinput", major,0)" statement seems to
> want to open the real devices on the Linux filesystem instead of my device
> driver's code for /dev/soundinput. Anybody has idea?

Did you compile using i386-rtems or native gcc?  Even though you are
on the same hardware, RTEMS still views it as an embedded system and
you will have to "boot RTEMS"

> Thank you very much,
> Pattara
> 
> --
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.fsf.org/philosophy/no-word-attachments.html
> ----------------------------------------------------------------------
> Ott Pattara Kiatisevi                              T L W G
> M.Sc. INFOTECH Student, Stuttgart, Germany      http://linux.thai.net/
> ----------------------------------------------------------------------

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list