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: Lundberg, Johannes
Subject: Re: Error while compiling on FreeBSD
Date: Mon, 15 Dec 2014 09:24:44 +0900

What version of FreeBSD and gnustep-base are you running? For me the in a earlier mail attached patches, applied to gnustep-base that is in ports works just fine.

--
Johannes Lundberg
BRILLIANTSERVICE CO., LTD.

On Mon, Dec 15, 2014 at 7:23 AM, Riccardo Mottola <address@hidden> wrote:
Hi,

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.
Since FreeBSD is still broken, I'm checking Wolfgang's suggestions more.


configure:13718: checking for pthread_set_name_np
configure:13774: clang -o conftest -g -O2  -I/Local/Library/Headers -I/Local/Lib
rary/Headers -I/System/Library/Headers -I/usr/local/include -L/Local/Library/Li
braries -L/Local/Library/Libraries -L/System/Library/Libraries -L/usr/local/lib
conftest.c -lrt  -lpthread >&5
configure:13781: $? = 0
configure:13803: result: yes

so this function gets found. However pthread_setname* exists in configure, but not in config.log, this means it is not checked for on FreeBSD.
Given the manpage, it is the 2 parameters function, there is no one-parameter function.
Here a grep in my include dirs:

> grep pthread_set_name_np *
pthread_np.h:void pthread_set_name_np(pthread_t, const char *);


Riccardo


_______________________________________________
Gnustep-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnustep-dev


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
reply via email to

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