pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/46206 (nspr pthread_create configure check fails)



The following reply was made to PR pkg/46206; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: davshao%gmail.com@localhost, christos%NetBSD.org@localhost, 
joerg%NetBSD.org@localhost
Subject: Re: pkg/46206 (nspr pthread_create configure check fails)
Date: Sat, 17 Mar 2012 16:31:27 +0100

 Lots of configure tests fail similarily:
 
 configure:6079: checking for pthread_create in -lpthreads
 gcc -o dummy dummy.c -O2 -pipe -I/usr/include -ansi -Wall -I/usr/include 
-lpthreads -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib 
 In file included from /usr/include/pthread.h:35:0,
                  from dummy.c:2:
 /usr/include/sys/cdefs.h:537:15: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'long'
 /usr/include/sys/cdefs.h:538:15: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'int'
 
 ----8<--- cdefs.h:537 ---8<-----
 static inline long long __zeroll(void) { return 0; }
 static inline int __negative_p(double x) { return x < 0; }
 --->8------>8------>8------>8---
 
 Shouldn't that be __inline? (note the -ansi in the compiler invocation)
 
 Martin
 


Home | Main Index | Thread Index | Old Index