From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 927AD1F466 for ; Thu, 30 Jan 2020 23:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727614AbgA3XPA (ORCPT ); Thu, 30 Jan 2020 18:15:00 -0500 Received: from mail-gateway-shared12.cyon.net ([194.126.200.65]:53084 "EHLO mail-gateway-shared12.cyon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgA3XPA (ORCPT ); Thu, 30 Jan 2020 18:15:00 -0500 X-Greylist: delayed 705 seconds by postgrey-1.27 at vger.kernel.org; Thu, 30 Jan 2020 18:14:58 EST Received: from s019.cyon.net ([149.126.4.28]) by mail-gateway-shared12.cyon.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim) (envelope-from ) id 1ixIq6-0006yH-3r for git@vger.kernel.org; Fri, 31 Jan 2020 00:03:12 +0100 Received: from [10.20.10.231] (port=44756 helo=mail.cyon.ch) by s019.cyon.net with esmtpa (Exim 4.92) (envelope-from ) id 1ixIq4-00CheC-TS; Fri, 31 Jan 2020 00:03:08 +0100 Subject: Re: Facing error in git-imap-send while compiling Git To: Nirmal Khedkar Cc: Johannes Schindelin , git@vger.kernel.org References: From: Beat Bolli Message-ID: Date: Fri, 31 Jan 2020 00:03:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s019.cyon.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - drbeat.li X-Get-Message-Sender-Via: s019.cyon.net: authenticated_id: ig@drbeat.li X-Authenticated-Sender: s019.cyon.net: ig@drbeat.li X-Source: X-Source-Args: X-Source-Dir: X-OutGoing-Spam-Status: No, score=-1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi Nirmal! On 30.01.20 21:26, Nirmal Khedkar wrote: > Hi All, > I'll admit I'm quite perplexed with this OpenSSL problem that I'm > facing. Here's what I've done along with their results: ... snipped ... > Please let me know where am I going wrong. If there's any other system > packages that I can download so that I can focus on other Git issues > and this one simultaneously, please let me know. Here are my system > specifications (let me know if you need anything more specific): > --- > OS: Ubuntu 18.04 > Linux Kernel: 5.3 > OpenSSL Version: 1.1.1d > --- > > Apologies for the long email, > Thank You, No problem! My system is similar: Debian testing with the OpenSSL 1.1.1d from the distribution. I have no build problems whatsoever. OpenSSL comes with backward compatibility macros that most allow code written for 1.0.2 to be compiled without errors. These macros can be turned off by changing the API compatibility version using -DOPENSSL_API_COMPAT=. You can check this with make V=1 imap-send.o This will show the compiler command executed: gcc -o imap-send.o -c -MF ./.depend/imap-send.o.d -MQ imap-send.o -MMD -MP -g -O2 -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DUSE_CURL_FOR_IMAP_SEND -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES -DSHA1DC_INIT_SAFE_HASH_DEFAULT=0 -DSHA1DC_CUSTOM_INCLUDE_SHA1_C="\"cache.h\"" -DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="\"git-compat-util.h\"" -DSHA256_BLK -pthread -DHAVE_PATHS_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DHAVE_CLOCK_MONOTONIC -DHAVE_GETDELIM '-DPROCFS_EXECUTABLE_PATH="/proc/self/exe"' -DFREAD_READS_DIRECTORIES -DNO_STRLCPY -DSHELL_PATH='"/bin/sh"' -DPAGER_ENV='"LESS=FRX LV=-c"' imap-send.c Check it for any -D flags mentioning OpenSSL. You can get even more verbose output from gcc by copying the compiler command make displays and running it after appending the verbose flag "-v" at the end. Check this new output for include directories etc. You need to make sure that gcc picks up the system OpenSSL include files. They should be found under /usr/include/openssl. Hope this helps, Beat Bolli