- Nov 3, 2000On Thu, Nov 02, 2000 at 10:43:01AM +0100, Bram Moolenaar wrote:
> Johannes Zellner wrote:
> > I just tried to compile 6.0k on FreeBSD (4.0)
> > objects/os_unix.o: In function `mch_didjmp':
> > objects/os_unix.o(.text+0x21ef): undefined reference to `sigaltstack'
> > objects/os_unix.o: In function `mch_init':
> > objects/os_unix.o(.text+0x278a): undefined reference to `sigaltstack'
> > *** Error code 1
> Strange. I'm also using FreeBSD 4.0 and have no problems.
> Also, sigaltstack() is called from init_signal_stack(), not from the functions
> you mention.
> Confused... Can you give more information?
#define HAVE_SIGALTSTACK 1
/* #undef HAVE_SIGSTACK */
/* #undef HAVE_SIGSET */
#define HAVE_SIGACTION 1
#define HAVE_SIGVEC 1
maybe you can compare that to what you get on your system ?
If I look into /usr/include/signal.h:
int sigaltstack __P((const stack_t *, stack_t *));
hm. maybe _POSIX_SOURCE is defined ? -- But I get the error
when linking not when compiling, so the prototype is there,
but the function is not found while linking.
I'm linking with
gcc -o vim [OBJECTS ...] -lncurses -lposix1e -lxpg4 \
-lmytinfo -lreadline -lm -lcrypt -lxpg4 -lm -pthread
(building w/o X).
If I manuall remove
// #define HAVE_SIGALTSTACK 1
then it compiles. Strange.
- << Previous post in topic Next post in topic >>