Discussion:
trivial patch to allow use of libressl
b***@gmail.com
2017-05-14 19:17:15 UTC
Permalink
patch socket.c:43 to:
# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
--
Benjamin Slade
`(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
'(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
'(Choose Linux, Choose Freedom . https://linux.com )
Benjamin Slade
2017-05-14 19:56:44 UTC
Permalink
The isync package in Void is the 1.2.1 release.

I couldn't get the current("git") version of isync to build on Void w/o
this patch.

I would get:

....
gcc -g -O2 -pipe -W -Wall -Wshadow -Wstrict-prototypes -std=c99 -pedantic -Wno-overlength-strings -o mbsync main.o sync.o config.o util.o socket.o driver.o drv_imap.o drv_maildir.o drv_proxy.o -ldb -lssl -lcrypto -lsasl2 -lz
socket.o: In function `verify_cert_host':
/home/USER/bin/isync-isync/src/socket.c:178: undefined reference to `X509_OBJECT_get0_X509'
socket.o: In function `init_ssl_ctx':
/home/USER/bin/isync-isync/src/socket.c:229: undefined reference to `X509_STORE_get0_objects'
collect2: error: ld returned 1 exit status
.....
Void Linux uses isync with libressl without this patch.
-
Toyam
Post by b***@gmail.com
# if
OPENSSL_VERSION_NUMBER < 0x10100000L ||
defined(LIBRESSL_VERSION_NUMBER)
Post by b***@gmail.com
--
Benjamin Slade
Post by b***@gmail.com
`(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320
BBE8 2B52 EE19))
Post by b***@gmail.com
'(sent by mu4e on Emacs running under
GNU/Linux . https://gnu.org )
Post by b***@gmail.com
'(Choose Linux, Choose
Freedom . https://linux.com )
------------------------------------------------------------------------------
Post by b***@gmail.com
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
Post by b***@gmail.com
https://lists.sourceforge.net/lists/listinfo/isync-devel
--
Benjamin Slade
`(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
'(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
'(Choose Linux, Choose Freedom . https://linux.com )
Oswald Buddenhagen
2017-05-20 09:33:53 UTC
Permalink
Post by Benjamin Slade
Void Linux uses isync with libressl without this patch.
Post by b***@gmail.com
# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
The isync package in Void is the 1.2.1 release.
I couldn't get the current("git") version of isync to build on Void w/o
this patch.
....
gcc -g -O2 -pipe -W -Wall -Wshadow -Wstrict-prototypes -std=c99 -pedantic -Wno-overlength-strings -o mbsync main.o sync.o config.o util.o socket.o driver.o drv_imap.o drv_maildir.o drv_proxy.o -ldb -lssl -lcrypto -lsasl2 -lz
/home/USER/bin/isync-isync/src/socket.c:178: undefined reference to `X509_OBJECT_get0_X509'
/home/USER/bin/isync-isync/src/socket.c:229: undefined reference to `X509_STORE_get0_objects'
collect2: error: ld returned 1 exit status
.....
well, i presume libressl follows openssl's api change, so we need to
make that version-dependent as well. Somebody (TM) needs to identify the
right version and variable to query.

Loading...