Subject: building -current fails on powerpc
To: None <current-users@netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: current-users
Date: 01/28/2003 11:47:48
Hi,
build aborts when configuring for groff. The following c++ test
program fails:
-------------
#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); }
};
A a;
int main() { return 1; }
-------------
$ c++ x.C -o xxx
/usr/lib/libstdc++.so: warning: reference to compatibility vfork(); include <unistd.h> for correct reference
$ ./xxx
$ echo $?
1
$
I've tried updating ld.elf_so and the startup files (libc itself is
already new from the aborted -current build), but it still fails.
This is on a macppc dual cpu machine.
How can I fix it?
regards,
chris