[Mono-bugs] [Bug 693398] New: threads.c has undeclared pthread_t

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 12 10:52:31 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=693398

https://bugzilla.novell.com/show_bug.cgi?id=693398#c0


           Summary: threads.c has undeclared pthread_t
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Other.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rodney.foley at lumension.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24
(KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24


Can't compile from master due to threads.c having undeclared pthread_t the full
error output is below. 


threads.c:3079: warning: unused variable `wapi_desc' 
threads.c: In function `dump_thread': 
threads.c:3131: error: `pthread_t' undeclared (first use in this function) 
threads.c:3131: error: (Each undeclared identifier is reported only once 
threads.c:3131: error: for each function it appears in.) 
threads.c:3131: error: parse error before "gpointer" 
threads.c: In function `mono_thread_push_appdomain_ref': 
threads.c:3286: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c: In function `mono_thread_pop_appdomain_ref': 
threads.c:3301: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c: In function `mono_thread_internal_has_appdomain_ref': 
threads.c:3311: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c: In function `mono_thread_execute_interruption': 
threads.c:3981: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c:3984: warning: passing arg 1 of `InterlockedDecrement' from
incompatible pointer type 
threads.c: In function `mono_thread_request_interruption': 
threads.c:4050: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c:4058: warning: passing arg 1 of `InterlockedIncrement' from
incompatible pointer type 
threads.c:4068: warning: passing arg 3 of `QueueUserAPC' makes integer from
pointer without a cast 
threads.c: In function `mono_thread_resume_interruption': 
threads.c:4097: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c:4099: warning: passing arg 1 of `InterlockedIncrement' from
incompatible pointer type 
threads.c: In function `abort_thread_internal': 
threads.c:4428: warning: implicit declaration of function
`wapi_interrupt_thread' 
threads.c:4428: warning: nested extern declaration of `wapi_interrupt_thread' 
threads.c:4443: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c:4449: warning: ISO C90 forbids mixed declarations and code 
threads.c:4466: warning: passing arg 1 of `InterlockedIncrement' from
incompatible pointer type 
threads.c:4468: warning: nested extern declaration of `wapi_interrupt_thread' 
threads.c: In function `transition_to_suspended': 
threads.c:4479: error: `pthread_t' undeclared (first use in this function) 
threads.c:4479: error: parse error before "gpointer" 
threads.c: In function `suspend_thread_internal': 
threads.c:4508: warning: passing arg 1 of `InterlockedCompareExchange' from
incompatible pointer type 
threads.c:4509: warning: passing arg 1 of `InterlockedIncrement' from
incompatible pointer type 
threads.c:4511: warning: nested extern declaration of `wapi_interrupt_thread' 
threads.c: In function `resume_thread_internal': 
threads.c:4587: error: `pthread_t' undeclared (first use in this function) 
threads.c:4587: error: parse error before "gpointer" 
make[3]: *** [libmonoruntime_la-threads.lo] Error 1 
make[3]: Leaving directory `/usr/src/mono-latest/mono/mono/metadata' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/usr/src/mono-latest/mono/mono' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/usr/src/mono-latest/mono' 
make: *** [all] Error 2 

Reproducible: Always

Steps to Reproduce:
1. git pull git://github.com/mono/mono.git
2. ./autogen.sh --prefix=/usr/local/mono-latest --enable-optimized
--enable-targets="x86 x86_64"
3. make
Actual Results:  
error described in details

Expected Results:  
successful compile

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list