On 12/1/06, Karel Kulhavy <[EMAIL PROTECTED]> wrote:
The default linker in OpenBSD 3.9 segfaults reproducibly:

[EMAIL PROTECTED]:~$ gcc -o -Wall wav2bin wav2bin.c

Try

$ gcc -Wall -o wav2bin wav2bin.c

But there is still a problem.  If you link a source file with its
resulting binary, it segfaults ld:

[EMAIL PROTECTED]:/home/anakha/dev/c/tmp$ cat test.c
int main() {
   return 0;
}
[EMAIL PROTECTED]:/home/anakha/dev/c/tmp$ gcc -o test test.c
[EMAIL PROTECTED]:/home/anakha/dev/c/tmp$ gcc -o -Wall test test.c
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
test(.init+0x0): In function `__init':
: multiple definition of `__init'
/usr/lib/crtbegin.o(.init+0x0): first defined here
test(.text+0x0): In function `_start':
: multiple definition of `__start'
/usr/lib/crt0.o(.text+0x0): first defined here
test(.data+0x0): multiple definition of `__progname'
/usr/lib/crt0.o(.data+0x0): first defined here
test(.text+0x0): In function `_start':
: multiple definition of `_start'
/usr/lib/crt0.o(.text+0x0): first defined here
test(.fini+0x0): In function `__fini':
: multiple definition of `__fini'
/usr/lib/crtbegin.o(.fini+0x0): first defined here
test(.text+0x18): In function `___start':
: multiple definition of `___start'
/usr/lib/crt0.o(.text+0x18): first defined here
/tmp//ccK15620.o(.text+0x0): In function `main':
: multiple definition of `main'
test(.text+0x1b8): first defined here
/usr/lib/crt0.o(.dynamic+0x0): multiple definition of `_DYNAMIC'
/usr/lib/crt0.o(.got.plt+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_'

--
I'm trying to launch the internet; so I open a terminal and go
"percent sign 'Internet'" at the prompt and it doesn't work. What
gives??!! -- random troll

Reply via email to