git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Facing error in git-imap-send while compiling Git

From
Beat Bolli <dev+git@drbeat.li>
Date
Jan 30, 2020, 23:03 UTC
Message-ID
<ef341b26-a10f-9194-6c76-ae6ddfd7981a@drbeat.li>
In-Reply-To
<CAFFaXsxeyxkPwAYSs=TEzd8fsa5r9KpJ7q8PX0ehNJ1Wpai4fA@mail.gmail.com>
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 ...
Show 12 quoted lines
> 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=<version>.

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
Previous: Nirmal KhedkarNext: Johannes Schindelin
Message 12 of 14 in “Facing error in git-imap-send while compiling Git”
  1. Nirmal KhedkarJan 16, 2020
  2. Junio C HamanoJan 16, 2020
  3. Nirmal KhedkarJan 17, 2020
  4. Johannes SchindelinJan 17, 2020
  5. Nirmal KhedkarJan 20, 2020
  6. Johannes SchindelinJan 20, 2020
  7. Nirmal KhedkarJan 21, 2020
  8. Junio C HamanoJan 21, 2020
  9. Johannes SchindelinJan 21, 2020
  10. Junio C HamanoJan 22, 2020
  11. Nirmal KhedkarJan 30, 2020
  12. Beat BolliJan 30, 2020
  13. Johannes SchindelinFeb 1, 2020
  14. Nirmal KhedkarFeb 15, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.