From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 2 21:14:17 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1175106566C for ; Fri, 2 Mar 2012 21:14:17 +0000 (UTC) (envelope-from aram_baghomian@hushmail.com) Received: from smtp11.hushmail.com (smtp1.hushmail.com [65.39.178.133]) by mx1.freebsd.org (Postfix) with ESMTP id BBF518FC08 for ; Fri, 2 Mar 2012 21:14:17 +0000 (UTC) Received: from smtp11.hushmail.com (localhost.localdomain [127.0.0.1]) by smtp11.hushmail.com (Postfix) with SMTP id EE1161C8E56 for ; Fri, 2 Mar 2012 20:43:53 +0000 (UTC) Received: from smtp.hushmail.com (w5.hushmail.com [65.39.178.80]) by smtp11.hushmail.com (Postfix) with ESMTP for ; Fri, 2 Mar 2012 20:43:53 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 9F1A8E6739; Fri, 2 Mar 2012 20:43:53 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 03 Mar 2012 00:43:53 +0400 To: freebsd-hackers@freebsd.org From: aram_baghomian@hushmail.com Message-Id: <20120302204353.9F1A8E6739@smtp.hushmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: openssl makeing error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 21:14:18 -0000 Hi, I add some customized encryption algorithm to openssl when i want to compile my openssl package it send me this error.i send this error to openssl developer mailing list but they didn't any answer and i send to your's group and i hope to help me. ... shlib_target=; if [ -n "" ]; then shlib_target="dlfcn"; 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" LIBDEPS=" $LIBRARIES " link_app.${shlib_target} ( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_ELF -Wa,--noexecstack -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_BN_ASM_MONT -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM}"; 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 ${LIBDEPS} ) passwd.o(.text+0x69c): In function `do_passwd': : undefined reference to `DES_crypt' speed.o(.text+0xdbc): In function `speed_main': : undefined reference to `DES_set_key_unchecked' speed.o(.text+0xdd3): In function `speed_main': : undefined reference to `DES_set_key_unchecked' speed.o(.text+0xdea): In function `speed_main': : undefined reference to `DES_set_key_unchecked' speed.o(.text+0x540b): In function `speed_main': : undefined reference to `DES_options' version.o(.text+0x23e): In function `version_main': : undefined reference to `DES_options' ../libcrypto.a(wp_block.o)(.text+0xe64): In function `whirlpool_block': : undefined reference to `whirlpool_block_mmx' ../libcrypto.a(aes_ige.o)(.text+0x180): In function `AES_bi_ige_encrypt': : undefined reference to `AES_decrypt' ../libcrypto.a(aes_ige.o)(.text+0x307): In function `AES_bi_ige_encrypt': : undefined reference to `AES_decrypt' ../libcrypto.a(aes_ige.o)(.text+0x4d5): In function `AES_bi_ige_encrypt': : undefined reference to `AES_encrypt' ../libcrypto.a(aes_ige.o)(.text+0x630): In function `AES_bi_ige_encrypt': : undefined reference to `AES_encrypt' ../libcrypto.a(aes_ige.o)(.text+0x803): In function `AES_ige_encrypt': ... what's wrong? thanks.