Re: snapshot build against LibreSSL 2.1.3 error: previous declaration of 'SSL_CTX_use_certificate_chain' was here

2015-02-15 Thread Gilles Chehade
On Tue, Feb 03, 2015 at 08:53:31PM -0800, Seth wrote:
 I think this particular issue might have been fixed by commit 
 https://github.com/OpenSMTPD/OpenSMTPD/commit/8bca141233921dcfee7b1fc734d376adb70ef044.
 
 Can't be sure though because the build doesn't even get far enough to
 compile tortls.c. It fails earlier with this error:
 
 -compare -Wformat-security -Wno-pointer-sign -fno-strict-aliasing
 -fno-builtin-memset -MT bsd-misc.o -MD -MP -MF .deps/bsd-misc.Tpo -c -o
 bsd-misc.o bsd-misc.c
 bsd-misc.c: In function 'nanosleep':
 bsd-misc.c:146: error: expected ';' before '(' token
 bsd-misc.c:165: error: expected ';' before 'return'
 *** [bsd-misc.o] Error code 1
 
 Stop in /usr/local/src/opensmtpd/openbsd-compat.
 *** [all-recursive] Error code 1
 
 Stop in /usr/local/src/opensmtpd.
 *** [all] Error code 1
 
 Stop in /usr/local/src/opensmtpd.
 

We're currently in a very annoying situation:


on OpenBSD:

We rely on LibreSSL as it has now deprecated OpenSSL there, however when
the maintainers cleaned up some code a function we rely upon was renamed
so depending on the version of OpenBSD we need to build some custom code
or not.


on Portable:

We rely mostly on OpenSSL but some people are building against LibreSSL.
The LibreSSL they link against is one that was released before the names
changed, so we also need to build some custom code or not depending what
people are linking again... but unlike the OpenBSD case we also have the
other differences between OpenSSL and LibreSSL to account for.


Until we have figured a way out of this, you should expect some breakage
in snapshots / git and should comment on the ticket that was opened with
regard to OpenSSL - LibreSSL transition.

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: snapshot build against LibreSSL 2.1.3 error: previous declaration of 'SSL_CTX_use_certificate_chain' was here

2015-02-03 Thread Seth
I think this particular issue might have been fixed by commit  
https://github.com/OpenSMTPD/OpenSMTPD/commit/8bca141233921dcfee7b1fc734d376adb70ef044.


Can't be sure though because the build doesn't even get far enough to  
compile tortls.c. It fails earlier with this error:


-compare -Wformat-security -Wno-pointer-sign -fno-strict-aliasing  
-fno-builtin-memset -MT bsd-misc.o -MD -MP -MF .deps/bsd-misc.Tpo -c -o  
bsd-misc.o bsd-misc.c

bsd-misc.c: In function 'nanosleep':
bsd-misc.c:146: error: expected ';' before '(' token
bsd-misc.c:165: error: expected ';' before 'return'
*** [bsd-misc.o] Error code 1

Stop in /usr/local/src/opensmtpd/openbsd-compat.
*** [all-recursive] Error code 1

Stop in /usr/local/src/opensmtpd.
*** [all] Error code 1

Stop in /usr/local/src/opensmtpd.

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: snapshot build against LibreSSL 2.1.3 error: previous declaration of 'SSL_CTX_use_certificate_chain' was here

2015-01-30 Thread Gilles Chehade
On Fri, Jan 30, 2015 at 11:25:40AM -0800, Seth wrote:
 Just tried building the latest snapshot and it's failing with the error
 below.

 [...]
 
 
 
 libressl.c:73: error: conflicting types for 'SSL_CTX_use_certificate_chain'
 /usr/local/include/openssl/ssl.h:1587: error: previous declaration of
 'SSL_CTX_use_certificate_chain' was here
 *** [libressl.o] Error code 1
 
 Stop in /usr/local/src/opensmtpd/openbsd-compat.
 *** [all-recursive] Error code 1
 
 Stop in /usr/local/src/opensmtpd.
 *** [all] Error code 1
 
 Stop in /usr/local/src/opensmtpd.
 

I committed a fix yesterday to github, building from a git clone should
be working, it would be nice if you could confirm.

I wanted to publish a new snapshot today but I really really want a bit
of code to be part of that snapshot and I couldn't finish it.

I'll publish a new snapshot Sunday with or without my code.

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org