This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: fnmatch and Tru64
- From: David Morsberger <dmorsberger1 at comcast dot net>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Sat, 05 Oct 2002 09:45:47 -0400
- Subject: Re: fnmatch and Tru64
Thanks.
I added "static int dummy;" as the first line in the file (before and
ifdef's or #includes) and the problem still exists. Details below. Any other
ideas?
es40-unix(tst)~ which cc
/usr/bin/cc
es40-unix(tst)~ cc -c -I/usr/users/dave/binutils-2.13/include fnmatch.c -o
fnmatch.o
es40-unix(tst)~ nm fnmatch.o
U _fpdata
U _sch_tolower
0000000000000000 T fnmatch
es40-unix(tst)~ cc -g -c -I/usr/users/dave/binutils-2.13/include fnmatch.c
-o fnmatch.o
es40-unix(tst)~ nm fnmatch.o
nm: fnmatch.o: File truncated
Note: no "dummy" symbol in the nm output.
Removed static from dummy variable definition.
es40-unix(tst)~ cc -c -I/usr/users/dave/binutils-2.13/include fnmatch.c -o
fnmatch.o
es40-unix(tst)~ nm fnmatch.o
U _fpdata
U _sch_tolower
0000000000000004 C dummy
0000000000000000 T fnmatch
es40-unix(tst)~ cc -g -c -I/usr/users/dave/binutils-2.13/include fnmatch.c
-o fnmatch.o
es40-unix(tst)~ nm fnmatch.o
nm: fnmatch.o: File truncated
> From: Alexandre Oliva <aoliva@redhat.com>
> Organization: GCC Team, Red Hat
> Date: Sat, 05 Oct 2002 10:24:44 -0300
> To: David Morsberger <dmorsberger@sensysdl.com>
> Cc: binutils@sources.redhat.com
> Subject: Re: fnmatch and Tru64
>
> On Oct 5, 2002, David Morsberger <dmorsberger@sensysdl.com> wrote:
>
>> We have been having a problem building binutils on Tru64 5.1 using the
>> Compaq cc compiler. We have received the "ar: libeberty.a: File Truncation"
>> error.
>
> Hmm... This sounds familiar. Does it work if you add an
> unconditional dummy definition to fnmatch.c (say `static int dummy;')?
> Some toolchains dislike translation units that don't introduce any
> symbols.
>
> --
> Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
> CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist Professional serial bug killer