Discussion:
[omniORB] compiling problem with omnithread
W T Meyer
2008-04-09 00:43:01 UTC
Permalink
I get the following error messages when I try to compile my
application using g++ version 3.4.6 under Scientific Linux 4.5. It
may well be a problem with the upgrade to SL 4.5, but I can't locate
the source. Does anyone have helpful thoughts? Things to try?

Thanks,

Tom Meyer, Iowa State University

g++ -o CoRCCServer.o -c -g -Wall -Wno-unused -fexceptions
-D__OMNIORB4__ -D_RE
ENTRANT -D__OSVERSION__=2 -D__linux__ -D__x86__ -DCSTYLE -I.
-I/usr/local/omniOR
B/release/stub -I/usr/local/omniORB/release/build/include
-I/usr/local/omniORB/r
elease/include -I/usr/lib/bcc/include -IMNIORB_TOP/include/omnithread
-I//opt/at
las/tdaq/tdaq-01-08-04/installed/i686-slc4-gcc34-opt/../include
CoRCCServer.cc
In file included from /usr/include/pthread.h:20,
from
/usr/local/omniORB/release/include/omnithread/posix.h:43,
from /usr/local/omniORB/release/include/omnithread.h:134,
from
/usr/local/omniORB/release/include/omniORB4/omniInternal.h
:210,
from /usr/local/omniORB/release/include/omniORB4/CORBA.h:310,
from CoRCC.hh:10,
from CoRCCServer.cc:25:
/usr/include/sched.h:41: error: expected initializer before "__THROW"

[there follows many more of the "expected initializer" errors from
many lines in sched.h and pthread.h ]
Duncan Grisby
2008-04-20 00:53:18 UTC
Permalink
Post by W T Meyer
I get the following error messages when I try to compile my
application using g++ version 3.4.6 under Scientific Linux 4.5. It
may well be a problem with the upgrade to SL 4.5, but I can't locate
the source. Does anyone have helpful thoughts? Things to try?
[...]
Post by W T Meyer
/usr/include/sched.h:41: error: expected initializer before "__THROW"
[there follows many more of the "expected initializer" errors from
many lines in sched.h and pthread.h ]
That looks like your Linux installation is broken. Do you see the same
error if you just #include <pthread.h> ?

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...