🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Kevin Burton Tue, 15 Sep 1992 19:17
Groff installation fails with gld 2.0
#853
Author: Kevin Burton
Date: Tue, 15 Sep 1992 19:17
37 lines
1342 bytes
MACHINE: Sun SPARCstation 1
OS: SunOS 4.1.1
COMPILER: gcc 2.2.2(with groff gcc.patch), gas 1.38.1, gld 2.0/1.94

With gld 2.0 the configure script for groff 1.06 will fail

DESCRIPTION OF INCORRECT BEHAVIOUR:
When I type ./configure using gld 2.0 I get the message:

gcc -O is not installed correctly: static constructors and destructors do not work

When I revert back to gld 1.94-beta the problem goes away. The offending code
is the following:

extern "C" {
  void exit(int);
  void _exit(int);
}
int i;
struct A {
  char dummy;
  A() { i = 1; }
  ~A() { if (i == 1) _exit(0); }
};
A a;
main() { exit(1); }

It seems that the destructor is not getting called before or during the exit
cleanup process due to some linking problem.

Thanks.

-
Kevin Burton
Noran Instruments				voice: (608) 831-6511 x317
2551 West Beltline Highway, Room 532		  FAX: (608) 836-7224
Middleton, WI 53562				email: kburton@noran.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads