Loading ...
Sorry, an error occurred while loading the content.

16058Re: sigaltstack

Expand Messages
  • Johannes Zellner
    Nov 3, 2000
    • 0 Attachment
      On 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?

      src/auto/config.h:

      #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:

      #ifndef _POSIX_SOURCE
      ...
      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 \
      /usr/local/lib/python1.5/config/libpython1.5.a \
      -lmytinfo -lreadline -lm -lcrypt -lxpg4 -lm -pthread

      (building w/o X).

      If I manuall remove

      // #define HAVE_SIGALTSTACK 1

      then it compiles. Strange.

      --
      Johannes
    • Show all 12 messages in this topic