On 2015-02-16 14:09, Seth wrote: > On Mon, 16 Feb 2015 13:11:27 -0800, Hugo Osvaldo Barrera <[email protected]> > wrote: > >libressl.c:72:1: error: conflicting types for > >'SSL_CTX_use_certificate_chain' > >SSL_CTX_use_certificate_chain(SSL_CTX *ctx, char *buf, off_t len) > >^ > >/usr/local/include/openssl/ssl.h:1587:5: note: previous declaration is > >here > >int SSL_CTX_use_certificate_chain(SSL_CTX *ctx, void *buf, int len); > > ^ > > > >I noticed this being mentioned before, so I went back and found it: > > > > https://marc.info/?l=opensmtpd-misc&m=142402080601260&w=2 > > > >However, this did not resolve the issue for me, and the issue persists. > > I take it you're trying to build from source? I've run into the same issue. > My workaround has been to build OpenSMTPD with LibreSSL dependency using > ports, this works. > > Remove OpenSSL, and put this in /etc/make.conf: > > OPENSSL_PORT=security/libressl > WITH_OPENSSL_PORT=yes > OPENSSL_SHLIBVER=30 > > Then build using portmaster or whatever > > portmaster mail/opensmtpd >
I hadn't been using portmaster (rather cd /usr/ports/mail/opensmtpd-devel &&
make), but I got the same error using it too:
===== BEGIN OUTPUT ======
cc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat
-I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC
-DPIC -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess
-Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memT
libressl.o -MD -MP -MF .deps/libressl.Tpo -c -o libressl.o libressl.c
libressl.c:72:1: error: conflicting types for 'SSL_CTX_use_certificate_chain'
SSL_CTX_use_certificate_chain(SSL_CTX *ctx, char *buf, off_t len)
^
/usr/local/include/openssl/ssl.h:1587:5: note: previous declaration is here
int SSL_CTX_use_certificate_chain(SSL_CTX *ctx, void *buf, int len);
^
1 error generated.
*** [libressl.o] Error code 1
make[4]: stopped in
/usr/ports/mail/opensmtpd-devel/work/opensmtpd-201502012312p1/openbsd-compat
1 error
make[4]: stopped in
/usr/ports/mail/opensmtpd-devel/work/opensmtpd-201502012312p1/openbsd-compat
*** [all-recursive] Error code 1
make[3]: stopped in
/usr/ports/mail/opensmtpd-devel/work/opensmtpd-201502012312p1
1 error
make[3]: stopped in
/usr/ports/mail/opensmtpd-devel/work/opensmtpd-201502012312p1
*** [all] Error code 2
make[2]: stopped in
/usr/ports/mail/opensmtpd-devel/work/opensmtpd-201502012312p1
1 error
make[2]: stopped in
/usr/ports/mail/opensmtpd-devel/work/opensmtpd-201502012312p1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/mail/opensmtpd-devel
*** Error code 1
Stop.
make: stopped in /usr/ports/mail/opensmtpd-devel
===>>> make build failed for mail/opensmtpd-devel
===>>> Aborting update
===>>> There are messages from installed ports to display,
but first take a moment to review the error messages
above. Then press Enter when ready to proceed.
===>>> pkg-message for pkg-1.4.12
If you are upgrading from the old package format, first run:
# pkg2ng
===>>> Done displaying pkg-message files
===>>> The following actions were performed:
Upgrade of pkg-1.4.10 to pkg-1.4.12
Installation of security/libressl (libressl-2.1.3)
===>>> You can restart from the point of failure with this command line:
portmaster <flags> mail/opensmtpd-devel
===== END OUTPUT =====
Also:
$ cat /etc/make.conf
OPENSSL_PORT=security/libressl
WITH_OPENSSL_PORT=yes
OPENSSL_SHLIBVER=30
Any other suggestions?
Thanks,
--
Hugo Osvaldo Barrera
A: Because we read from top to bottom, left to right.
Q: Why should I start my reply below the quoted text?
signature.asc
Description: PGP signature
