Re: ranlib: warning: elf_strptr failed: Invalid argument

From: Garrett Cooper <yanegomi_at_gmail.com>
Date: Sat, 20 Oct 2012 10:39:18 -0700
On Sat, Oct 20, 2012 at 3:26 AM, Andriy Gapon <avg_at_freebsd.org> wrote:
>
> I am getting the following while executing make toolchain TARGET=pc98:
> building static roken library
> ranlib libroken.a
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_strptr failed: Invalid argument
> ranlib: warning: elf_nextscn failed: Invalid argument
> ranlib: warning: can't find .strtab section
> ...
> cc -O2 -pipe
> -I/usr/devel/svn/base/head/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken
> -I/usr/devel/svn/base/head/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1
> -I. -DHAVE_CONFIG_H
> -I/usr/devel/svn/base/head/kerberos5/tools/asn1_compile/../../include -std=gnu99
>   -I/usr/obj/pc98.i386/usr/devel/svn/base/head/tmp/legacy/usr/include  -static
> -L/usr/obj/pc98.i386/usr/devel/svn/base/head/tmp/legacy/usr/lib -o asn1_compile
> asn1parse.o gen.o gen_copy.o gen_decode.o gen_encode.o gen_free.o gen_glue.o
> gen_length.o gen_seq.o gen_template.o hash.o lex.o main.o symbol.o
> /usr/obj/pc98.i386/usr/devel/svn/base/head/tmp/usr/devel/svn/base/head/kerberos5/tools/asn1_compile/../../lib/libroken/libroken.a
> /usr/obj/pc98.i386/usr/devel/svn/base/head/tmp/usr/devel/svn/base/head/kerberos5/tools/asn1_compile/../../lib/libvers/libvers.a
> -legacy
> main.o: In function `usage':
> main.c:(.text+0x17): undefined reference to `arg_printusage'
> main.o: In function `main':
> main.c:(.text+0x77): undefined reference to `getarg'
> main.c:(.text+0x1f6): undefined reference to `getarg'
>
> Ruuning nm on libroken.a gives:
> nm: getarg.o: File format not recognized
>
>
> Any ideas?

    Try reverting r241752 and see if that makes things go through.
HTH,
-Garrett
Received on Sat Oct 20 2012 - 15:39:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:31 UTC