I'm building openssl 1.0.2g on linux64

With my usual

        ./config ...

I end up with a successful build/install

        openssl version
                OpenSSL 1.0.2g  1 Mar 2016

If I add

        ./config no-comp ...

subsequent 'make' fails

        make
                ...
                make[1]: Leaving directory 
'/usr/local/src/openssl/openssl-1.0.2g/ssl'
                making all in apps...
                make[1]: Entering directory 
'/usr/local/src/openssl/openssl-1.0.2g/apps'
                rm -f openssl
                shlib_target=; if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; 
then \
                        shlib_target="linux-shared"; \
                elif [ -n "" ]; then \
FIPSLD_CC="/usr/bin/gcc-5"; 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 -Wl,-z,relro,-z,now -ldl -lz" \
                        link_app.${shlib_target}
                make[2]: Entering directory 
'/usr/local/src/openssl/openssl-1.0.2g/apps'
                enc.o: In function `enc_main':
                enc.c:(.text+0x1253): undefined reference to `BIO_f_zlib'
                collect2: error: ld returned 1 exit status
                ../Makefile.shared:171: recipe for target 'link_app.gnu' failed
                make[2]: *** [link_app.gnu] Error 1
                make[2]: Leaving directory 
'/usr/local/src/openssl/openssl-1.0.2g/apps'
                Makefile:156: recipe for target 'openssl' failed
                make[1]: *** [openssl] Error 2
                make[1]: Leaving directory 
'/usr/local/src/openssl/openssl-1.0.2g/apps'
                Makefile:292: recipe for target 'build_apps' failed
                make: *** [build_apps] Error 1

Adding further

        ./config no-comp no-bio ...

'make' fails again, differently

        make
                ...
                making all in crypto...
                make[1]: Entering directory 
'/usr/local/src/openssl/openssl-1.0.2g/crypto'
/usr/bin/gcc-5 -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -D_GNU_SOURCE -DOPENSSL_NO_BUF_FREELISTS -DOPENSSL_NO_HEARTBEAT -DPURIFY -DSSL_FORBID_ENULL -DTERMIO -Wa,--noexecstack -Wall -fno-common -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DCHAPOLY_x86_64_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -O3 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=x86-64 -mtune=nocona -c -o cpt_err.o cpt_err.c
                In file included from cpt_err.c:63:0:
                ../include/openssl/err.h:149:5: error: unknown type name 
'CRYPTO_THREADID'
                     CRYPTO_THREADID tid;
                     ^
../include/openssl/err.h:355:36: error: unknown type name 'CRYPTO_THREADID'
                 void ERR_remove_thread_state(const CRYPTO_THREADID *tid);
                                                    ^
                <builtin>: recipe for target 'cpt_err.o' failed
                make[1]: *** [cpt_err.o] Error 1
                make[1]: Leaving directory 
'/usr/local/src/openssl/openssl-1.0.2g/crypto'
                Makefile:286: recipe for target 'build_crypto' failed
                make: *** [build_crypto] Error 1


Are additional/different config options required to enable/support the 'no-comp' & 'no-bio' options?

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to