<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I am trying to link kernel32 and ntdll libraries to my source
code on SPARC Solaris 8.0. My executable does not exit.</FONT></DIV>
<DIV><FONT size=2>It gets stuck after spawning 4 threads. The gdb trace is as
below:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2>
<DIV><BR>Starting program:
/export/home/mrugan/src/HACore/HaNuanceChannelComRCE/nuancetest.exe<BR>warning:
Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074<BR>warning:
Lowest section in /usr/lib/libw.so.1 is .hash at 00000074<BR>[New LWP
1]<BR>[New LWP 2]<BR>[New LWP 3]<BR>[New LWP 4]<BR>^C<BR>Program received
signal SIGINT, Interrupt.<BR>0xff19b390 in ___lwp_cond_wait () from
/usr/lib/libc.so.1<BR>(gdb) where<BR>#0 0xff19b390 in ___lwp_cond_wait
() from /usr/lib/libc.so.1<BR>#1 0xff192c08 in _lwp_cond_wait () from
/usr/lib/libc.so.1<BR>#2 0xfef8c2f0 in _lrw_wrlock () from
/usr/lib/libthread.so.1<BR>#3 0xff3bdacc in ?? ()<BR>#4 0xff3c34f0
in ?? ()<BR>#5 0xff3b29a0 in ?? ()<BR>#6 0xff0863c8 in
__DTOR_END__ () from /opt/wine/dlls/libkernel32.so<BR>#7 0xff02e140 in
frame_dummy () from /opt/wine/dlls/libkernel32.so<BR>#8 0xff02cf80 in
_init () from /opt/wine/dlls/libkernel32.so<BR>#9 0xff3bada0 in ??
()<BR>#10 0xff3baa18 in ?? ()<BR>#11 0xff3c4da0 in ?? ()<BR>#12 0xff3b2958 in
?? ()</DIV>
<DIV>(gdb) inf thr<BR> 8 Thread
3 0xfef8d948 in
_reap_wait () from /usr/lib/libthread.so.1<BR> 7 Thread 2 (LWP 2)
0xff19ad50 in _signotifywait () from /usr/lib/libc.so.1<BR> 6 Thread 1
(LWP 1) 0xff19b390 in ___lwp_cond_wait () from /usr/lib/libc.so.1<BR>* 5
LWP 1
0xff19b390 in ___lwp_cond_wait () from /usr/lib/libc.so.1<BR> 4
LWP 4
0xff19b390 in ___lwp_cond_wait () from /usr/lib/libc.so.1<BR> 3
LWP 3
0xff1988f4 in door_restart () from /usr/lib/libc.so.1<BR> 2
LWP 2
0xff19ad50 in _signotifywait () from /usr/lib/libc.so.1<BR>* 1
LWP 1
0xff19b390 in ___lwp_cond_wait () from /usr/lib/libc.so.1</DIV></BLOCKQUOTE>
<DIV dir=ltr>Note that I had to hit cntl-C to come out of thread message.</DIV>
<DIV dir=ltr>I guess this is happening because kernel32 tries to use thread
library. Is there any way I can make it use pthread or is there any other
solution to this?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Any help will be greatly appreciated</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Thanks</DIV>
<DIV dir=ltr>Mrugan</DIV>
<DIV dir=ltr> </DIV></FONT></BODY></HTML>