This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Binaries compiled with gcc-2.95.2 won't execute.
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: Binaries compiled with gcc-2.95.2 won't execute.
- From: "Didier M. Contis" <didier at ece dot gatech dot edu>
- Date: Thu, 30 Dec 1999 21:49:25 -0500 (EST)
- cc: bug-gcc at gnu dot org
On Thu, 30 Dec 1999, Martin v. Loewis wrote:
> According to this log file, the following objects are linked into
> cfengine:
>
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o: ELF 32-bit
MSB relocatable SPARC Version 1
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crti.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crti.o: ELF 32-bit
MSB relocatable SPARC Version 1
> /usr/ccs/lib/values-Xa.o cfengine.o client.o process.o ifconf.o
> image.o item.o item-ext.o item-file.o 2Dlist.o globals.o
> classes.o misc.o parse.o edittools.o patches.o install.o
> link.o tidy.o filedir.o eval.o modes.o chflags.o locks.o mount.o
> macro.o filenames.o varstring.o wildcard.o cfparse.o comparray.o
> read.o checksums.o proto.o copy.o repository.o rotate.o errors.o
> cflex.o net.o df.o log.o encrypt.o popen.o sensible.o acl.o
>file *.o
2Dlist.o: ELF 32-bit MSB relocatable SPARC Version 1
acl.o: ELF 32-bit MSB relocatable SPARC Version 1
cfd.o: ELF 32-bit MSB relocatable SPARC Version 1
cfengine.o: ELF 32-bit MSB relocatable SPARC Version 1
cfkey.o: ELF 32-bit MSB relocatable SPARC Version 1
cflex.o: ELF 32-bit MSB relocatable SPARC Version 1
cfparse.o: ELF 32-bit MSB relocatable SPARC Version 1
cfrun.o: ELF 32-bit MSB relocatable SPARC Version 1
checksums.o: ELF 32-bit MSB relocatable SPARC Version 1
chflags.o: ELF 32-bit MSB relocatable SPARC Version 1
classes.o: ELF 32-bit MSB relocatable SPARC Version 1
client.o: ELF 32-bit MSB relocatable SPARC Version 1
comparray.o: ELF 32-bit MSB relocatable SPARC Version 1
copy.o: ELF 32-bit MSB relocatable SPARC Version 1
df.o: ELF 32-bit MSB relocatable SPARC Version 1
edittools.o: ELF 32-bit MSB relocatable SPARC Version 1
encrypt.o: ELF 32-bit MSB relocatable SPARC Version 1
errors.o: ELF 32-bit MSB relocatable SPARC Version 1
eval.o: ELF 32-bit MSB relocatable SPARC Version 1
filedir.o: ELF 32-bit MSB relocatable SPARC Version 1
filenames.o: ELF 32-bit MSB relocatable SPARC Version 1
globals.o: ELF 32-bit MSB relocatable SPARC Version 1
ifconf.o: ELF 32-bit MSB relocatable SPARC Version 1
image.o: ELF 32-bit MSB relocatable SPARC Version 1
install.o: ELF 32-bit MSB relocatable SPARC Version 1
item-ext.o: ELF 32-bit MSB relocatable SPARC Version 1
item-file.o: ELF 32-bit MSB relocatable SPARC Version 1
item.o: ELF 32-bit MSB relocatable SPARC Version 1
link.o: ELF 32-bit MSB relocatable SPARC Version 1
locks.o: ELF 32-bit MSB relocatable SPARC Version 1
log.o: ELF 32-bit MSB relocatable SPARC Version 1
macro.o: ELF 32-bit MSB relocatable SPARC Version 1
misc.o: ELF 32-bit MSB relocatable SPARC Version 1
modes.o: ELF 32-bit MSB relocatable SPARC Version 1
mount.o: ELF 32-bit MSB relocatable SPARC Version 1
net.o: ELF 32-bit MSB relocatable SPARC Version 1
parse.o: ELF 32-bit MSB relocatable SPARC Version 1
patches.o: ELF 32-bit MSB relocatable SPARC Version 1
popen.o: ELF 32-bit MSB relocatable SPARC Version 1
process.o: ELF 32-bit MSB relocatable SPARC Version 1
proto.o: ELF 32-bit MSB relocatable SPARC Version 1
read.o: ELF 32-bit MSB relocatable SPARC Version 1
repository.o: ELF 32-bit MSB relocatable SPARC Version 1
rotate.o: ELF 32-bit MSB relocatable SPARC Version 1
sensible.o: ELF 32-bit MSB relocatable SPARC Version 1
tidy.o: ELF 32-bit MSB relocatable SPARC Version 1
varstring.o: ELF 32-bit MSB relocatable SPARC Version 1
wildcard.o: ELF 32-bit MSB relocatable SPARC Version 1
> -lpthread
> -lcrypto
> -lsocket
> -lm
> -lelf
> -lsec
> -lcfpub
> -lfl
> -lgcc
> -lc
>From an UltraSparc-1 running Solaris 2.7, doing a ldd ./cfengine gives me:
>ldd cfengine
libpthread.so.1 => /usr/lib/libpthread.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libm.so.1 => /usr/lib/libm.so.1
libelf.so.1 => /usr/lib/libelf.so.1
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libthread.so.1 => /usr/lib/libthread.so.1
/usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
Do you want me to double check these libraries on the SS20 where cfengine
has been compiled.
-lcrypto -lcfpub -lfl -lgcc are static libraries
I am sending you attached the output of /usr/ccs/bin/elfdump -e for
these four libraries
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtend.o
>file /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtend.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtend.o: ELF 32-bit
MSB relocatable SPARC Version 1
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtn.o
>file /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtn.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtn.o: ELF 32-bit
MSB relocatable SPARC Version 1
> Please try to find out which of these files are v8plus. For the plain
> objects, use file(1). For the libraries, you need to locate the
> libraries, then you can use 'objdump --file-headers <file>.a', or
> '/usr/ccs/bin/elfdump -e lib.a'.
>
> Please also check whether cfkey is a v8plus executable.
>file cfkey
cfkey: ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+
Required, dynamically linked, not stripped
I guess, this does not help very much ?
I am going to send you the cfengine binary directly.
Regards, Didier
-----------------------------------------------------------------------
Research Engineer I
Georgia Institute of Technology
School of Electrical Engineering, Atlanta, GA 30332-0250
E-MAIL: didier@ee.gatech.edu
PHONE: (404) 894-3872
libgcc.out.gz
libfl.out.gz
libcrypto.out.gz
libcfpub.out.gz