Article View: gnu.utils.bug
Article #853Groff installation fails with gld 2.0
From: Kevin Burton
Date: Tue, 15 Sep 1992 19:17
Date: Tue, 15 Sep 1992 19:17
37 lines
1342 bytes
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
Technical Details
Message-ID:
<9209151917.AA11407@iowa.YP.solsys>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!iowa.UUCP!kburtonShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!iowa.UUCP!kburton From: kburton@iowa.UUCP (Kevin Burton) Subject: Groff installation fails with gld 2.0 Message-ID: <9209151917.AA11407@iowa.YP.solsys> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 15 Sep 1992 19:17:10 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 38