Compilation of OpenSSL fails on i386-pc-solaris2.10

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compilation of OpenSSL fails on i386-pc-solaris2.10

dietrich-bollmann
Hi,

While compiling OpenSSL on a i386-pc-solaris2.10 box
( ./config reported "Configured for solaris64-x86_64-gcc." )
I got the following error:

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

I tried to list the symbols in crt1.o using 'nm' and got the same error
message:

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

Any help?

Thanks, Dietrich

---
PS:

I am not sure if the following observation helps - but here it is anyway:

As the command

>   /app/openpkg/bin/nm /usr/lib/amd64/crt1.o

failed, I searched for other instances of both, 'nm' and 'crt1.o' and
did some more experiments:

Trying to list '/usr/lib/crt1.o' with '/app/openpkg/bin/nm', the symbols
would be listed without problem:

>   $ /app/openpkg/bin/nm /usr/lib/crt1.op
>            w _DYNAMIC
>            w __1cG__CrunMdo_exit_code6F_v_
>   [...snip...]
>            U main
>   00000010 d trap_table

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.

In short:

>   /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 the problem caused by the combination of my gcc / binutils
installation and the amd64/crt1.o library?
Or should I use just use some option for ./config?
Or is the problem caused by OpenSSL?
Where should I continue?

( I never had any problem though while compiling all kind of other
stuff... )

Any idea?


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



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]