From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 756552CABD for ; Thu, 13 Jun 2019 05:47:59 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rwoeLxjOlUlH for ; Thu, 13 Jun 2019 05:47:59 -0400 (EDT) Received: from smtp38.i.mail.ru (smtp38.i.mail.ru [94.100.177.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 28DF825E5A for ; Thu, 13 Jun 2019 05:47:59 -0400 (EDT) Date: Thu, 13 Jun 2019 12:47:36 +0300 From: Alexander Turenko Subject: [tarantool-patches] Re: [PATCH v1] Fix static build Message-ID: <20190613094736.k4oirzo45jvqnj7b@tkn_work_nb> References: <3a25f57555ed97795bbaa34c69a6faf85aeb8bd1.1559740773.git.avtikhon@tarantool.org> <20190613081901.vowzuh45oyzpvwzr@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190613081901.vowzuh45oyzpvwzr@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Kirill Yukhin Cc: tarantool-patches@freelists.org, "Alexander V. Tikhonov" On Thu, Jun 13, 2019 at 11:19:01AM +0300, Kirill Yukhin wrote: > Hello, > > On 07 Jun 06:55, Alexander V. Tikhonov wrote: > > Added to cmake environment CMAKE_DL_LIBS (The name of the library > > that has dlopen and dlclose in it, usually -ldl) to openssl build > > to add DL library, to fix the following fails: > > > > Linking CXX executable crypto.test > > /usr/local/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': > > dso_dlfcn.c:(.text+0x11): undefined reference to `dlopen' > > dso_dlfcn.c:(.text+0x24): undefined reference to `dlsym' > > dso_dlfcn.c:(.text+0x2f): undefined reference to `dlclose' > > /usr/local/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': > > dso_dlfcn.c:(.text+0x334): undefined reference to `dlsym' > > dso_dlfcn.c:(.text+0x3f2): undefined reference to `dlerror' > > /usr/local/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': > > dso_dlfcn.c:(.text+0x459): undefined reference to `dlopen' > > dso_dlfcn.c:(.text+0x4c9): undefined reference to `dlclose' > > dso_dlfcn.c:(.text+0x502): undefined reference to `dlerror' > > /usr/local/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr': > > dso_dlfcn.c:(.text+0x5a1): undefined reference to `dladdr' > > dso_dlfcn.c:(.text+0x601): undefined reference to `dlerror' > > /usr/local/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': > > dso_dlfcn.c:(.text+0x662): undefined reference to `dlclose' > > collect2: error: ld returned 1 exit status > > make[2]: *** [test/unit/crypto.test] Error 1 > > make[1]: *** [test/unit/CMakeFiles/crypto.test.dir/all] Error 2 > > > > Closes #4245 > > I've checked your patch into 2.1 and master. I think we should fix static build on 1.10 too. WBR, Alexander Turenko.