[prev in list] [next in list] [prev in thread] [next in thread]
List: mico-devel
Subject: [mico-devel] Installation Problem - XP/Cygwin/MICO2.3.11
From: Fayez Asar <fayez_asar () yahoo ! com>
Date: 2003-12-25 2:03:15
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I am trying to install MICO 2.3.11 on my XP machine using Cygwin.
gcc version = 3.3.1
make version = 3.80
I configured using the following options:
> ./configure --prefix=/usr/local/mico --disable-static --enable-debug \
> --disable-optimize --enable-threads --with-x
When I do make, it dies with the following error:
Entering directory `/usr/local/mico/coss/naming'
/usr/local/mico/./idl/idl --c++-skel --name CosNaming \
../../include/coss/CosNaming.idl
[2866605432 - 0x11550020] os-thread/pthreads.cc:322: assertion failed
Signal 6
make[2]: *** [CosNaming.cc] Error 134
make[2]: Leaving directory `/usr/local/mico/coss/naming'
make[1]: *** [idlcompile] Error 1
make[1]: Leaving directory `/usr/local/mico/coss'
make: *** [system] Error 1
I checked pthreads.cc and following is the code snippet which contains line 322. I \
have marked line 322 for your convenience:
-------------------------------------------------------------------------
//
// Mutex implementation
// lock() and unlock() are inlined for optimal speed
//
/*!
* The constructor initializes the mutex with the specified
* attribute and locks it, if specified.
*
* \param locked If true, the mutex is created locked
* \param attr The type of mutex (default is normal).
*/
MICOMT::Mutex::Mutex(MICO_Boolean locked, Attribute attr)
#ifdef DEBUG_NAMES
: NamedObject()
#endif // DEBUG_NAMES
{
int result;
pthread_mutexattr_t m_attr;
#ifdef MTDEBUG
if (MICO::Logger::IsLogged(MICO::Logger::Thread)) {
__mtdebug_lock();
MICO::Logger::Stream (MICO::Logger::Thread)
<< "Mutex::Mutex (initially locked = "
<< ((locked == FALSE) ? "FALSE" : "TRUE")
<< ", type = "
<< ((attr == Normal) ? "Normal" : "Recursive")
<< ")" << endl;
__mtdebug_unlock();
}
__NAME (name ("<UnNamed Mutex>"));
#endif // MTDEBUG
#ifdef SOLARIS_MUTEX
_id = 0;
_cnt = 0;
_rec = 0;
#endif
result = pthread_mutexattr_init(&m_attr);
assert(!result);
if (attr != Normal) {
switch (attr) {
case Recursive:
#ifdef SOLARIS_MUTEX
_rec = 1;
#else // SOLARIS_MUTEX
result = pthread_mutexattr_settype(&m_attr, PTHREAD_MUTEX_RECURSIVE);
assert (!result);
#endif // SOLARIS_MUTEX
break;
default:
break;
}
}
result = pthread_mutex_init(&_mutex, &m_attr);
assert(!result); \
<------------------------------------------------------------------- This is line \
322.
result = pthread_mutexattr_destroy(&m_attr);
assert(!result);
if (locked)
this->lock();
}
-------------------------------------------------------------------------
Could anyone let me know what the problem may be? Also, if I am not using \
--enable-pthreads option during configuration, then why is it using the pthread API?
Thanks,
Fayez Asar.
---------------------------------
Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square
[Attachment #5 (text/html)]
<DIV>
<DIV>I am trying to install MICO 2.3.11 on my XP machine \
using Cygwin.<BR><BR>gcc version = 3.3.1<BR>make version = 3.80<BR><BR>I \
configured using the following options:<BR>> ./configure --prefix=/usr/local/mico \
--disable-static --enable-debug --disable-optimize --enable-threads \
--with-x<BR><BR>When I do make, it dies with the following error:<BR><BR>Entering \
directory `/usr/local/mico/coss/naming'<BR>/usr/local/mico/./idl/idl --c++-skel \
--name CosNaming \<BR> ../../include/coss/CosNaming.idl<BR>[2866605432 - \
0x11550020] os-thread/pthreads.cc:322: assertion failed<BR>Signal 6<BR>make[2]: *** \
[CosNaming.cc] Error 134<BR>make[2]: Leaving directory \
`/usr/local/mico/coss/naming'<BR>make[1]: *** [idlcompile] Error 1<BR>make[1]: \
Leaving directory `/usr/local/mico/coss'<BR>make: *** [system] Error 1<BR><BR>I \
checked pthreads.cc and following is the code snippet which contains line 322. I have \
marked line 322 for your \
convenience:<BR><BR>-------------------------------------------------------------------------<BR><FONT \
size=2> <P>//<BR>// Mutex implementation<BR>// lock() and unlock() are inlined for \
optimal speed<BR>//<BR>/*!<BR> * The constructor initializes the mutex with the \
specified<BR> * attribute and locks it, if specified.<BR> *<BR> * \
\param locked If true, the mutex is created locked<BR> * \param attr The type of \
mutex (default is normal).<BR> */<BR>MICOMT::Mutex::Mutex(MICO_Boolean locked, \
Attribute attr)<BR>#ifdef DEBUG_NAMES<BR> : NamedObject()<BR>#endif // \
DEBUG_NAMES<BR>{<BR> int result;<BR> \
pthread_mutexattr_t m_attr;<BR><BR>#ifdef MTDEBUG<BR> if \
(MICO::Logger::IsLogged(MICO::Logger::Thread)) \
{<BR> \
__mtdebug_lock();<BR> MICO::Logger::Stream \
(MICO::Logger::Thread)<BR> << \
"Mutex::Mutex (initially locked = "<BR> \
<< ((lo! cked ==
FALSE) ? "FALSE" : "TRUE")<BR> << \
", type = "<BR> << ((attr == Normal) \
? "Normal" : "Recursive")<BR> << ")" \
<< endl;<BR> \
__mtdebug_unlock();<BR> }<BR> __NAME (name \
("<UnNamed Mutex>"));<BR>#endif // MTDEBUG</P> <P>#ifdef \
SOLARIS_MUTEX<BR> _id = 0;<BR> _cnt = \
0;<BR> _rec = 0;<BR>#endif</P> <P> result = \
pthread_mutexattr_init(&m_attr);<BR> \
assert(!result);<BR><BR> if (attr != Normal) \
{<BR> switch (attr) \
{<BR> case Recursive:<BR>#ifdef \
SOLARIS_MUTEX<BR> \
_rec = 1;<BR>#else // \
SOLARIS_MUTEX<BR> \
result = pthread_mutexattr_settype(&m_attr, \
PTHREAD_MUTEX_RECURSIVE);<BR> \
assert (!result);<BR>#endif // \
SOLARIS_MUTEX<BR> &nb \
sp;break;<BR> default:<BR> \
break;<BR> }<BR> \
}<BR><BR> resu! lt =
pthread_mutex_init(&_mutex, &m_attr);<BR> \
assert(!result); <------------------------------------------------------------------- \
This is line 322.<BR><BR> result = \
pthread_mutexattr_destroy(&m_attr);<BR> \
assert(!result);<BR><BR> if \
(locked)<BR> \
this->lock();<BR>}<BR><BR>-------------------------------------------------------------------------<BR><BR></FONT>Could \
anyone let me know what the problem may be? Also, if I am not using --enable-pthreads \
option during configuration, then why is it using the pthread \
API?<BR><BR>Thanks,<BR>Fayez Asar.</P></DIV></DIV><p><hr SIZE=1> Do you Yahoo!?<br>
Yahoo! Photos - <a href="http://us.rd.yahoo.com/evt=21486/*http://f1.pg.photos.yahoo.com/ph//spsimplenol?.file=ny_ts_splash.html">Get \
your photo on the big screen in Times Square</a>
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic