gnustep-dev
[Top][All Lists]
Advanced

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

Re: Error while compiling on FreeBSD


From: Riccardo Mottola
Subject: Re: Error while compiling on FreeBSD
Date: Mon, 29 Dec 2014 22:19:08 +0100
User-agent: Mozilla/5.0 (X11; OpenBSD i386; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1

Hi Richard, Wolfgang

Wolfgang Lux wrote:
I had a look at the code in configure.ac that checks for the 
pthread_setname_np/pthread_set_name_np function in configure.ac and that code 
looks fairly confused to me. It first checks for a function pthread_set_name_np 
and if present assumes that it has a single parameter. If not present, it 
checks for a function pthread_setname_np and then further checks if it is a the 
two parameter variant from glibc or the three parameter variant as used on 
NetBSD. This looks wrong to me. The single parameter variant is used on Darwin, 
however it is called pthread_setname_np (like the functions on glibc and 
NetBSD). On the other hand, FreeBSD has a function called pthread_set_name_np 
and it expects two parameters like the glibc function. So the configure checks 
apparently get things right for Linux and NetBSD, but they get it wrong for 
both FreeBSD and Darwin.
I just tried FreeBSD 10.x, OpenBSD and NetBSD and they work now.

I will try older versions of FreeBSD.... in 2015 :)

Thank you.

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]