bug-groff
[Top][All Lists]
Advanced

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

Sun Forte 6.1 + groff problems


From: Werner LEMBERG
Subject: Sun Forte 6.1 + groff problems
Date: Fri, 08 Feb 2002 09:03:37 +0100 (CET)

> >> [...] Sun Forte 6.1 (fails)

There is the following code for groff's configure script to test
whether global destructors in C++ are called:

  AC_TRY_RUN([
  extern "C" {
    void _exit(int);
  }
  int i;
  struct A {
    char dummy;
    A() { i = 1; }
    ~A() { if (i == 1) _exit(0); }
  };
  A a;
  int main() { return 1; }
  ],
  AC_MSG_RESULT(yes),
  AC_MSG_RESULT(no);AC_MSG_ERROR([a working C++ compiler is required]),
  :)

This fails with Sun's Forte 6.1 compiler on that platform:

  uname -m = sun4u
  uname -r = 5.7
  uname -s = SunOS
  uname -v = Generic_106541-18

giving the following error message (from config.log):

  configure:1914: CC -o conftest -g   conftest.cc  >&5
  Undefined           first referenced
   symbol                 in file
  void __Crun::register_exit_code(void(*)()extern"C") conftest.o
  ld: fatal: Symbol referencing errors. No output written to conftest

Until now I never got a report like this, so I wonder whether this is
a real problem with groff's code or a problem with the 6.1 version of
this compiler.

Any clues?  I know that this is not directly related to autoconf, but
this is the group of experts which probably has most knowledge of
such issues.  Thanks in advance for any help.


    Werner



reply via email to

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