[RETRY} help in compiling the thread example in linux
Ramana K Ramachandran
ramana@ix.netcom.com
Thu, 06 Nov 1997 19:04:37 -0600
<HTML>
hi
<BR>My earlier mail yesterday somehow never made it to the list. Sorry
if its a duplicate.
<P>I had the omniorb2 working and later I reinstalled RedHat 4.2 and now
I am
<BR>unable to compile. Its giving problems in the threads
<BR>I have LinuxThreads 0.5.1 installed and also I have timers.h
in the threads directory(pthread/mit/sys), So its not the problem listed
in the omniorb patches.
<P>$ rpm -qa|grep -i thread
<BR>linuxthreads-0.5-1
<P>$ gcc -v
<BR>Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.1/specs
<BR>gcc version 2.7.2.1
<BR>
<BR>
<P>When I run make on the /usr/local/omniORB_2.2.0/src/examples/thread
dir
<BR>I get ...
<P>gcc -c -fhandle-exceptions -Wall -Wno-unused -I../../../include
-D_REENTRANT -D__linux__ -D__i86__
<BR>-D__OSVERSION__=2 -o diner.o diner.cc
<BR>In file included from ../../../include/omnithread.h:116,
<BR>
from diner.cc:32:
<BR>../../../include/omnithread/posix.h:37: pthread.h: No such file or
directory
<BR>make: *** [diner.o] Error 1
<P>I see that pthread is in dir "/usr/include/pthread/mit" so I try including
that
<BR>in the include path and I get...
<P>gcc -c -fhandle-exceptions -Wall -Wno-unused -c -fhandle-exceptions
-Wall -Wno
<BR>-unused -I../../../include -D_REENTRANT -D__linux__ -D__i86__ -D__OSVERSION__=2
<BR>-I/usr/include/pthread/mit -o diner.o diner.cc
<BR>In file included from /usr/include/pthread/mit/machdep.h:10,
<BR>
from /usr/include/pthread/mit/pthread.h:49,
<BR>
from ../../../include/omnithread/posix.h:37,
<BR>
from ../../../include/omnithread.h:116,
<BR>
from diner.cc:32:
<BR>/usr/include/pthread/mit/unistd.h:46: type specifier omitted for parameter
<BR>[...]
<P>Please help
<BR>thanks
<BR>ramana
<PRE>--
Ramana Ramachandran off: 972-498-1029 ramana.ramachandran@mci.com
9468 E Valley Ranch pkwy #1052 res: 972-830-9360 ramana@ix.netcom.com
Irving TX 75063</PRE>
</HTML>