[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] bug in dummy.c
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] bug in dummy.c |
Date: |
Mon, 1 Nov 2004 20:22:02 +0100 |
User-agent: |
KMail/1.5 |
Simon Josefsson wrote:
> It seems dummy.c doesn't work. On Solaris 2.9 with GCC 3.3.2 and the
> /usr/ccs/bin/ld from
>
> ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.373
>
> I get this error:
>
> ld: fatal: file ../gl/.libs/libgl.a: unknown file type
> ld: fatal: File processing errors. No output written to
> .libs/libgsasl.so.7.0.0
How did you create this libgl.a? On a Solaris 2.9 machine with GCC 3.3.1
I get this:
$ cat > dummy.c
typedef int dummy;
$ gcc -c dummy.c
$ ar cru empty.a dummy.o
$ nm empty.a
empty.a[dummy.o]:
[Index] Value Size Type Bind Other Shndx Name
[2] | 0| 0|SECT |LOCL |0 |2 |
[1] | 0| 0|FILE |LOCL |0 |ABS |dummy.c
$ cat > hello.c
#include <stdio.h>
int main () { printf("Halloechen Welt\n"); return 0; }
$ gcc hello.c empty.a
$ gcc -c hello.c
$ ld hello.o empty.a -lc -o a.out
$ which ld
/usr/ccs/bin/ld
What is it that makes it fail in your situation?
Bruno
- Re: [Bug-gnulib] bug in dummy.c,
Bruno Haible <=