From owner-freebsd-current@FreeBSD.ORG Sat Sep 19 01:47:33 1998 Message-ID: <19980918190509.A2708@radio-do.de> Date: Fri, 18 Sep 1998 19:05:09 +0200 From: Frank Nobis To: freebsd-current@FreeBSD.ORG Subject: Bug in elf c++ Content-Type: text/plain; charset=us-ascii Taken from the configure script of groff, I found a bug in the elf version of c++. Here is the example: #ifdef __cplusplus extern "C" void exit(int); #endif extern "C" { void _exit(int); } int i; struct A { char dummy; A() { i = 1; } ~A() { if (i == 1) _exit(0); } }; volatile A a; int main() { return 1; } Compile it with 'c++ -aout' and the exit value is 0. Compile it just with 'c++' and the exit value is 1! This leads to a bug in the groff package. Since the constructors for some global class instances are not called, the default value for font_path is not set and therefore groff fails to format any man page. Regards Frank -- Frank Nobis Email: PGP AVAILABLE Landgrafenstr. 130 dg3dcn http://www.radio-do.de/~fn/ 44139 Dortmund Powered by FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message