Infinidat / relocatable-python

build system for building a portable python interpreter
24 stars 8 forks source link

Cannot build opensl (RHEL6.4) #8

Closed amal-khailtash closed 9 years ago

amal-khailtash commented 9 years ago

The problem with the buildout went away when I switch from system installed python 2.6 to another python 2.7. But now I get another error compiling openssl:

cc -DMONOLITH -I.. -I../include -O -I/tools/relocatable-python/dist/include -c -o openssl.o openssl.c rm -f openssl shlib_target=; if [ -n "" ]; then \ shlib_target=""; \ elif [ -n "" ]; then \ FIPSLD_CC="cc"; CC=/usr/local/ssl/fips-2.0/bin/fipsld; export CC FIPSLD_CC; \ fi; \ LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \ 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 genpkey.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 pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o" \ LIBDEPS=" $LIBRARIES " \ link_app.${shlibtarget} make[2]: Entering directory /tools/relocatable-python/parts/openssl__compile__/openssl-1.0.1j/apps' ( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=for x in $LIBDEPS; do echo $x; done | sed -e 's/^ -L//;t' -e d | 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 genpkey.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 pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} ) ../libcrypto.a(eng_rsax.o): In functione_rsax_bn_mod_exp': eng_rsax.c:(.text+0x851): undefined reference to mod_exp_512' ../libcrypto.a(e_rc4_hmac_md5.o): In functionrc4_hmac_md5_cipher': e_rc4_hmac_md5.c:(.text+0x302): undefined reference to rc4_md5_enc' e_rc4_hmac_md5.c:(.text+0x567): undefined reference torc4_md5enc' collect2: ld returned 1 exit status make[2]: ** [link_app.] Error 1 make[2]: Leaving directory /tools/relocatable-python/parts/openssl__compile__/openssl-1.0.1j/apps' make[1]: *** [openssl] Error 2 make[1]: Leaving directory/tools/relocatable-python/parts/opensslcompile/openssl-1.0.1j/apps' make: *\ [build_apps] Error 1 openssl: Command failed with exit code 2: make openssl: Compilation error. The package is left as is at /tools/relocatable-python/parts/opensslcompile/openssl-1.0.1j where you can inspect what went wrong While: Installing openssl. Error: System error

amal-khailtash commented 9 years ago

For some reason I had a different perl in my path and I got rid of that. I also had to add the following to "buildout-build-redhat-64bit.cfg" to get the compile past openssl.

[openssl] CC = gcc -fPIC

Now onto the next issue.

amal-khailtash commented 9 years ago

With the above fix, everything is good now.