/usr/lib/amd64/crt1.o: file not recognized: File format not recognized

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I would like to know how to deal with the following error message:

> /usr/lib/amd64/crt1.o: file not recognized: File format not recognized
> collect2: ld returned 1 exit status

The error occured while trying to compile OpenSSL on a i386-pc-solaris2.10 box ( ./config reported "Configured for solaris64-x86_64-gcc." )

I got the same error when trying to list the library with nm:

> $ /app/openpkg/bin/nm /usr/lib/amd64/crt1.o
> /app/openpkg/bin/nm: /usr/lib/amd64/crt1.o: File format not recognized

Another 'nm' instance in /usr/ccs/bin/amd64/
( that is /usr/ccs/bin/amd64/nm )
didn't have any problem to list both of them,
/usr/lib/amd64/crt1.o  and  /usr/lib/crt1.o.

> /app/openpkg/bin/nm /usr/lib/amd64/crt1.o   ... failed
> /app/openpkg/bin/nm /usr/lib/crt1.o         ... symbols are listed
>
> /usr/ccs/bin/amd64/nm /usr/lib/amd64/crt1.o ... symbols are listed
> /usr/ccs/bin/amd64/nm /usr/lib/crt1.o       ... symbols are listed

Is this problem related to the library, to gcc, to my binutils or to OpenSSL? Do I have to reinstall some or them? Is there an option I could use during the configuration / compilation which could help?
Where should I continue???

I would be happy about any help!

Thanks, Dietrich

---
PS: Here some more context concerning the error:
---
...snip...snip...snip...
make -f ../Makefile.shared -e \
       APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o
dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o
crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o
genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o
s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o
pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o" \
       LIBDEPS=" $LIBRARIES -lsocket -lnsl -ldl" \
       link_app.${shlib_target}
make[2]: Entering directory `/app/openssl/0.9.8a/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl  -L.. -lcrypto -lsocket -lnsl
-ldl}"; LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -O3 -Wall -DL_ENDIAN
-DMD32_REG_T=int -DMD5_ASM}"; LIBPATH=`for x in $LIBDEPS; do if echo $x
| grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi;
done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`;
LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o
${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o
dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o
rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o
s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o
app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o
smime.o rand.o engine.o ocsp.o prime.o ${LIBDEPS} )
/usr/lib/amd64/crt1.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/app/openssl/0.9.8a/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/app/openssl/0.9.8a/apps'
make: *** [build_apps] Error 1



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux