Compiling eamples under Linux

Richard Kilgore rkilgore@ece.utexas.edu
Tue, 14 Oct 1997 15:11:52 -0500


On Tue, Oct 14, 1997 at 01:00:01PM -0400, ABDULLAH BUSHNAQ wrote:
> Hello folks,
> I'm running a Linux system with the following configuration:
> 
> Kernel 2.0.29
> GCC 2.7.2
> binutils 2.6.0.14
> Linux C Lib 5.3.12
> GNU C++ Lib 2.7.1.4
> LinuxThreads 0.5
> 
> I downloaded and unpacked the Linux distribution of OmniORB, however when
> I try to compile the echo example I get the following errors:
> 
> /home/shater/CORBA/omniORB_2.2.0/src/examples/echo{53}>make
> gcc -c  -fhandle-exceptions -Wall -Wno-unused -I. -D__OMNIORB2__
> -I../../../incl
> ude -D_REENTRANT -D__linux__ -D__i86__ -D__OSVERSION__=2 -o echoSK.o
> echoSK.cc
> In file included from ../../../include/omniORB2/omniInternal.h:56,
>                  from ../../../include/omniORB2/CORBA.h:42,
>                  from echo.hh:4,
>                  from echoSK.cc:1:
> ../../../include/omnithread.h:159: syntax error before `;'
> ../../../include/omnithread.h:206: syntax error before `;'
> ../../../include/omnithread.h:411: syntax error before `;'
> make: *** [echoSK.o] Error 1
> 
> 
> 
> Has anybody seen this error before? is it something I missed when I set up
> my system?
> Any help would be greatly appreciated.
> Thanks,
> 
> Sincerely,
> 
> -Abdullah

It varies from distribution to distribution, so I can't be real
specific, but it appears that the struct pthread_t is not getting
declared anywhere.  In my debian distribution of Linux it's
declared in /usr/include/pthread.h.  Make sure that omnithread.h
is including this file.

   good luck,

   - rick

-- 
Richard Kilgore                     |  rkilgore@ece.utexas.edu
Electrical & Computer Engineering   |  http://lore.ece.utexas.edu/~rkilgore/
The University of Texas at Austin   |  (512) 471-8011