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

16569Re: sigaltstack

Expand Messages
  • Matthew Hawkins
    Dec 1, 2000
      This patch to configure.in fixes the compile-time problem (in a rather
      hacky way, but hey)

      --- src/configure.in.vim60n Fri Dec 1 19:58:00 2000
      +++ src/configure.in Fri Dec 1 19:58:10 2000
      @@ -1514,6 +1514,12 @@
      sigaltstack sigstack sigset sigsetjmp sigaction sigvec \
      strcasecmp strerror strftime stricmp strncasecmp strnicmp \
      strpbrk strtol tgetent usleep utime utimes)
      +dnl On FreeBSD libc_r has no sigaltstack() which breaks python support
      +if test "$enable_pythoninterp" = "yes"; then
      + if test "`(uname) 2>/dev/null`" = FreeBSD; then
      + AC_DEFINE(HAVE_SIGALTSTACK, 0, [ We don't want this on FreeBSD with python. ])
      + fi
      +fi

      dnl fstatfs() can take 2 to 4 arguments, try to use st_blksize if possible
      AC_MSG_CHECKING(for st_blksize)



      I'm still quite concerned about the runtime because of the following:

      /usr/local/lib/python2.0/config/libpython2.0.a(posixmodule.o): In function `posix_tempnam':
      posixmodule.o(.text+0x24c2): warning: tempnam() possibly used unsafely; consider using mkstemp()
      /usr/local/lib/python2.0/config/libpython2.0.a(posixmodule.o): In function `posix_tmpnam':
      posixmodule.o(.text+0x256c): warning: tmpnam() possibly used unsafely; consider using mkstemp()
      /usr/lib/libc_r.so: WARNING! setkey(3) not present in the system!
      /usr/lib/libc_r.so: warning: this program uses gets(), which is unsafe.
      /usr/lib/libc_r.so: warning: mktemp() possibly used unsafely; consider using mkstemp()
      /usr/lib/libc_r.so: WARNING! des_setkey(3) not present in the system!
      /usr/lib/libc_r.so: WARNING! encrypt(3) not present in the system!
      /usr/lib/libc_r.so: warning: this program uses f_prealloc(), which is stupid.
      /usr/lib/libc_r.so: WARNING! des_cipher(3) not present in the system!
      /usr/libexec/elf/ld: posixmodule.o: warning: unresolvable relocation against symbol `tempnam' from .text section
      /usr/libexec/elf/ld: posixmodule.o: warning: unresolvable relocation against symbol `tmpnam' from .text section

      (specifically, the bits noted as being stupid, and the unresolvable
      relocations)

      --
      Matt
    • Show all 12 messages in this topic