[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&nbsp;Cygwin.<BR><BR>gcc version = &nbsp;3.3.1<BR>make version = 3.80<BR><BR>I \
configured using the following options:<BR>&gt; ./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>&nbsp;../../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>&nbsp;* The constructor initializes the mutex with the \
specified<BR>&nbsp;* attribute and locks it, if specified.<BR>&nbsp;*<BR>&nbsp;* \
\param locked If true, the mutex is created locked<BR>&nbsp;* \param attr The type of \
mutex (default is normal).<BR>&nbsp;*/<BR>MICOMT::Mutex::Mutex(MICO_Boolean locked, \
Attribute attr)<BR>#ifdef DEBUG_NAMES<BR>&nbsp; : NamedObject()<BR>#endif // \
DEBUG_NAMES<BR>{<BR>&nbsp;&nbsp;&nbsp; int result;<BR>&nbsp;&nbsp;&nbsp; \
pthread_mutexattr_t m_attr;<BR><BR>#ifdef MTDEBUG<BR>&nbsp;&nbsp;&nbsp; if \
(MICO::Logger::IsLogged(MICO::Logger::Thread)) \
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
__mtdebug_lock();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MICO::Logger::Stream \
(MICO::Logger::Thread)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; \
"Mutex::Mutex (initially locked = "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;&lt; ((lo! cked ==
 FALSE) ? "FALSE" : "TRUE")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;&lt; \
", type = "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; ((attr == Normal) \
? "Normal" : "Recursive")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; ")" \
&lt;&lt; endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
__mtdebug_unlock();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; __NAME (name \
("&lt;UnNamed Mutex&gt;"));<BR>#endif // MTDEBUG</P> <P>#ifdef \
SOLARIS_MUTEX<BR>&nbsp;&nbsp;&nbsp; _id = 0;<BR>&nbsp;&nbsp;&nbsp; _cnt = \
0;<BR>&nbsp;&nbsp;&nbsp; _rec = 0;<BR>#endif</P> <P>&nbsp;&nbsp;&nbsp; result = \
pthread_mutexattr_init(&amp;m_attr);<BR>&nbsp;&nbsp;&nbsp; \
assert(!result);<BR><BR>&nbsp;&nbsp;&nbsp; if (attr != Normal) \
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch (attr) \
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case Recursive:<BR>#ifdef \
SOLARIS_MUTEX<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
_rec = 1;<BR>#else // \
SOLARIS_MUTEX<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
result = pthread_mutexattr_settype(&amp;m_attr, \
PTHREAD_MUTEX_RECURSIVE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
assert (!result);<BR>#endif // \
SOLARIS_MUTEX<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; \
}<BR><BR>&nbsp;&nbsp;&nbsp; resu! lt =
 pthread_mutex_init(&amp;_mutex, &amp;m_attr);<BR>&nbsp;&nbsp;&nbsp; \
assert(!result);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;------------------------------------------------------------------- \
This is line&nbsp;322.<BR><BR>&nbsp;&nbsp;&nbsp; result = \
pthread_mutexattr_destroy(&amp;m_attr);<BR>&nbsp;&nbsp;&nbsp; \
assert(!result);<BR><BR>&nbsp;&nbsp;&nbsp; if \
(locked)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
this-&gt;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