gnustep-dev
[Top][All Lists]
Advanced

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

error with unwind header


From: Riccardo Mottola
Subject: error with unwind header
Date: Fri, 22 Oct 2021 16:09:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.9.1

Hello,

I am compiling on an older netbsd and it doesn't compile

Making all for library libgnustep-base...
 Compiling file NSException.m ...
NSException.m:578:20: fatal error: unwind.h: No such file or directory
compilation terminated.


the code is like this, it


#if defined(WITH_UNWIND) && !defined(HAVE_BACKTRACE)
  
#include <unwind.h>
#if     !defined(_WIN32)
#include <dlfcn.h>
#endif
  
but if I check, configure detected it is missing:

configure:9502: checking unwind.h usability
configure:9502: gcc -c -g -O2  -I/GNUstep/Local/Library/Headers
-I/GNUstep/Local/Library/Headers -I/GNUstep/Sys
tem/Library/Headers -I/usr/pkg/include conftest.c >&5
conftest.c:183:20: fatal error: unwind.h: No such file or directory
compilation terminated.


configure:9502: checking for unwind.h
configure:9502: result: no 


but then:

Source/config.h:#define WITH_UNWIND 1

however:
/* Define to 1 if you have the <unwind.h> header file. */
/* #undef HAVE_UNWIND_H */



I think there is some confusion between having the unwind library and
the header. Here I have no unwind header. I suppose that means unwind
cannot be used at all!


I retried compiling with "without unwind".

Maybe missing detection of the header should automatically disable unwind?



Riccardo



reply via email to

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