Subject: ELF problem on Solaris 2.4

From: [email-masked]
Date: Tue, 23 Apr 1996 17:06:55 -0700

I had a similar problem with the beta version which was never resolved.
I now have a problem with the 2.4 release version.  I'm compiling for Solaris
2.4 using gcc 2.7.0 and ld 2.4.  I get the following errors at link time
after the libsupport.a lib has been made ok.

-----------------
Making ftpd.
cc -g -DDEBUG -I.. -I../support -L../support   -c ftpcmd.c -o ftpcmd.o
cc -g -DDEBUG -I.. -I../support -L../support   -c glob.c -o glob.o
cc -g -DDEBUG -I.. -I../support -L../support   -c logwtmp.c -o logwtmp.o
cc -g -DDEBUG -I.. -I../support -L../support   -c popen.c -o popen.o
sh newvers.sh
cc -g -DDEBUG -I.. -I../support -L../support -c vers.c
cc -g -DDEBUG -I.. -I../support -L../support   -c access.c -o access.o
cc -g -DDEBUG -I.. -I../support -L../support   -c extensions.c -o extensions.o
cc -g -DDEBUG -I.. -I../support -L../support   -c realpath.c -o realpath.o
cc -g -DDEBUG -I.. -I../support -L../support   -c acl.c -o acl.o
cc -g -DDEBUG -I.. -I../support -L../support   -c private.c -o private.o
cc -g -DDEBUG -I.. -I../support -L../support   -c authenticate.c -o authenticate
.o
cc -g -DDEBUG -I.. -I../support -L../support   -c conversions.c -o conversions.o
cc -g -DDEBUG -I.. -I../support -L../support   -c hostacc.c -o hostacc.o
cc -g -DDEBUG -I.. -I../support -L../support -o ftpd ftpd.o ftpcmd.o glob.o logw
tmp.o popen.o vers.o access.o extensions.o realpath.o acl.o private.o authentica
te.o conversions.o hostacc.o -lsupport -lsocket -lnsl -lgen
ld: elf error: file ../support/libsupport.a: unable to locate archive symbol tab
le: Request error: offset out of range 
ld: fatal: File processing errors.  No output written to ftpd
make: *** [ftpd] Error 1

---------------------
can some gcc or elf guru tell me how to fix this apparent compiler problem?
i have tried running ar with the 's' flag to explicitely create the symbol
table, but i get the same errors when linking ftpd and others.

don maszle