Discussion:
[omniORB] Cygwin / g++ / build omniORB from source
Irvine, Chuck R [LTD]
2006-06-21 02:01:42 UTC
Permalink
I'm trying to build and install omniORB 4.1.0beta2 using cygwin and g++.
I'm having trouble so, first, I'm wondering if this is even supposed to
work. Is it? If so, here are my problems:

1. Conflicting type errors for 'getline' (see below). Based on an email
to the cygwin mailing list, I tried to work around this my commenting
out the getline declaration in usr/include/sys/stdio.h. This seemed to
work.

gcc -c -O -DDEBUG -I. -I../../../../src/tool/omkdepend
-I../../../include -I../../../../include -D__OSVERSION__=2 -D__linux__
-D__cygwin__ -D__x86__ -o include.o
../../../../src/tool/omkdepend/include.c
In file included from /usr/include/sys/types.h:372,
from /usr/include/stdio.h:46,
from ../../../../src/tool/omkdepend/def.h:31,
from ../../../../src/tool/omkdepend/include.c:30:
/usr/include/cygwin/types.h:43: error: parse error before "loff_t"
In file included from ../../../../src/tool/omkdepend/include.c:30:
../../../../src/tool/omkdepend/def.h:131: error: conflicting types for
'getline'
/usr/include/sys/stdio.h:31: error: previous declaration of 'getline'
was here
../../../../src/tool/omkdepend/def.h:131: error: conflicting types for
'getline'
/usr/include/sys/stdio.h:31: error: previous declaration of 'getline'
was here



2. I get "/usr/include/cygwin/types.h:43: error: parse error before
"loff_t" (See above). Being very rusty I can't really see anything wrong
with the declaration for loff_t in /usr/include/cygwin/types.h. However,
I commented this out hoping it would be ok.



3. After making the change in step 2, eveything seemed to compile
alright, but then I get tons of undefined reference errors. An excerpt
of them are:

+ g++ -shared
-Wl,-soname=cygCOSDynamic4.dll.1,--out-implib=libCOSDynamic4.dll.a,--exp
ort-dynamic,--enable-auto-import -o
shared/cygCOSDynamic4.dll.1.0 -L../../../lib -L../../../../lib
shared/TimeBaseDynSK.o shared/CosTimeDynSK.o shared/CosEv
entCommDynSK.o shared/CosEventChannelAdminDynSK.o
shared/CosNotificationDynSK.o shared/CosNotifyCommDynSK.o shared/CosNot
ifyFilterDynSK.o shared/CosNotifyChannelAdminDynSK.o
shared/CosLifeCycleDynSK.o -lomniORB4 -lomniDynamic4 -lomnithread -l
pthread
Creating library file: libCOSDynamic4.dll.a
shared/TimeBaseDynSK.o:TimeBaseDynSK.cc:(.text+0x1a): undefined
reference to `TimeBase::UtcT::operator>>=(cdrStream&) con
st'
shared/TimeBaseDynSK.o:TimeBaseDynSK.cc:(.text+0x43): undefined
reference to `TimeBase::UtcT::operator<<=(cdrStream&)'
shared/TimeBaseDynSK.o:TimeBaseDynSK.cc:(.text+0x190): undefined
reference to `TimeBase::IntervalT::operator>>=(cdrStream
&) const'
shared/TimeBaseDynSK.o:TimeBaseDynSK.cc:(.text+0x1b9): undefined
reference to `TimeBase::IntervalT::operator<<=(cdrStream
&)'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x344): undefined reference
to `CosTime::TimeUnavailable::TimeUnavailable(Co
sTime::TimeUnavailable const&)'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x4c4): undefined reference
to `CosTime::UTO::_PD_repoId'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x50b): undefined reference
to `CosTime::UTO::_duplicate(CosTime::_objref_UT
O*)'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x59a): undefined reference
to `CosTime::UTO::_nil()'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x5fb): undefined reference
to `CosTime::UTO::_PD_repoId'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x612): undefined reference
to `CosTime::UTO::_nil()'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x664): undefined reference
to `CosTime::TIO::_PD_repoId'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x6ab): undefined reference
to `CosTime::TIO::_duplicate(CosTime::_objref_TI
O*)'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x73a): undefined reference
to `CosTime::TIO::_nil()'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x79b): undefined reference
to `CosTime::TIO::_PD_repoId'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x7b2): undefined reference
to `CosTime::TIO::_nil()'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x804): undefined reference
to `CosTime::TimeService::_PD_repoId'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x84b): undefined reference
to `CosTime::TimeService::_duplicate(CosTime::_o
bjref_TimeService*)'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x8da): undefined reference
to `CosTime::TimeService::_nil()'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x93b): undefined reference
to `CosTime::TimeService::_PD_repoId'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text+0x952): undefined reference
to `CosTime::TimeService::_nil()'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text$_ZN7CosTime15TimeUnavailabl
eC1Ev[CosTime::TimeUnavailable::TimeUnavailable()
]+0x16): undefined reference to `vtable for CosTime::TimeUnavailable'
shared/CosTimeDynSK.o:CosTimeDynSK.cc:(.text$_ZN7CosTime15TimeUnavailabl
eC1Ev[CosTime::TimeUnavailable::TimeUnavailable()

Any advice would be immensely appreciated!!

Thanks,
Chuck

Loading...