Re: Portable buildung issues

2019-10-23 Thread Ede Wolf
Negative:

/data/git/opensmtp # qlist -Iv libressl
dev-libs/libressl-3.0.2

/data/git/opensmtp # qlist -Iv libevent
dev-libs/libevent-2.1.8

/data/git/opensmtp # make
make  all-recursive
make[1]: Entering directory '/data/git/opensmtp'
Making all in openbsd-compat
make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat 
-I../openbsd-compat/err_h -I/usr/include   -march=skylake -fomit-frame-pointer 
-O2 -pipe  -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare 
-Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign 
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE -D_BSD_SOURCE 
-D_DEFAULT_SOURCE  -c -o arc4random.o arc4random.c
arc4random.c:167:21: error: macro "arc4random_stir" passed 1 arguments, but 
takes just 0
 arc4random_stir(void)
 ^
arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '{' token
 {
 ^
make[2]: *** [Makefile:445: arc4random.o] Error 1
make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
make[1]: *** [Makefile:418: all-recursive] Error 1
make[1]: Leaving directory '/data/git/opensmtp'
make: *** [Makefile:350: all] Error 2




Have not tried openssl yet. Anything I can do to help hunting this down?

Ede


On Tue, Oct 22, 2019 at 08:48:52PM +, gil...@poolp.org wrote:
> For what it's worth, it turns out LibreSSL 3.0.2 was released three days ago.
> 
> We have made it possible to build with OpenSSL but our target is still 
> LibreSSL,
> which means that code is written assuming LibreSSL and we test mostly with 
> LibreSSL.
> 
> Unsurprisingly we recommend that package maintainers have OpenSMTPD depend 
> upon LibreSSL,
> and only fallback to OpenSSL if not possible.
> 
> Some features may be lacking when doing that fallback,
> for instance ECDSA server certificates will only work if linked against 
> LibreSSL.
> 
> 
> 
> October 22, 2019 7:01 PM, "Ede Wolf"  wrote:
> 
> > Thanks for the heads up. Last time I have been using libressl 2.9.2, I'll 
> > give 3.0.1 a go, it
> > happens to be in the repos as well, just not marked as stable.
> > 
> > Ede
> > 
> > Am 22.10.19 um 16:28 schrieb Gilles Chehade:
> > 
> >> Sorry, will expand:
> >> We're in between two LibreSSL releases which is why the LibreSSL you're > 
> >> using is not compatible.
> >> When LibreSSL 3.0.2 is released, it will automagically build with it. > 
> >> LibreSSL 3.0.1 development
> >> version is already working.
> >> LibreSSL remains our target for both OpenBSD and portable but we're kind > 
> >> of in a time warp right
> >> now in between two versions.
> >> On Tue, Oct 22, 2019, 16:23 Gilles Chehade  
> >> >
> >> wrote:
> >> LibreSSL is supported and recommended, this really needs to be fixed
> >> before the 6.6.0p1 portable release.
> >> On Tue, Oct 22, 2019, 14:44 John Smith  >> > wrote:
> >> Hello,
> >> thanks very much for all your replies. In deed, I rebuild world
> >> replacing openssl with libressl, basically only for opensmtpd.
> >> So it is the github issue. I knew smtpd portable supports
> >> openssl, but it did not come to my mind, that libressl is not
> >> supported at all for the portable version, openssl being just
> >> being an extra service, so I thought I'll do it something good.
> >> I'll revert to openssl and report back. May take a day or two.
> >> Thanks again
> >> Ede



Re: Portable buildung issues

2019-10-22 Thread gilles
For what it's worth, it turns out LibreSSL 3.0.2 was released three days ago.

We have made it possible to build with OpenSSL but our target is still LibreSSL,
which means that code is written assuming LibreSSL and we test mostly with 
LibreSSL.

Unsurprisingly we recommend that package maintainers have OpenSMTPD depend upon 
LibreSSL,
and only fallback to OpenSSL if not possible.

Some features may be lacking when doing that fallback,
for instance ECDSA server certificates will only work if linked against 
LibreSSL.



October 22, 2019 7:01 PM, "Ede Wolf"  wrote:

> Thanks for the heads up. Last time I have been using libressl 2.9.2, I'll 
> give 3.0.1 a go, it
> happens to be in the repos as well, just not marked as stable.
> 
> Ede
> 
> Am 22.10.19 um 16:28 schrieb Gilles Chehade:
> 
>> Sorry, will expand:
>> We're in between two LibreSSL releases which is why the LibreSSL you're > 
>> using is not compatible.
>> When LibreSSL 3.0.2 is released, it will automagically build with it. > 
>> LibreSSL 3.0.1 development
>> version is already working.
>> LibreSSL remains our target for both OpenBSD and portable but we're kind > 
>> of in a time warp right
>> now in between two versions.
>> On Tue, Oct 22, 2019, 16:23 Gilles Chehade  
>> >
>> wrote:
>> LibreSSL is supported and recommended, this really needs to be fixed
>> before the 6.6.0p1 portable release.
>> On Tue, Oct 22, 2019, 14:44 John Smith > > wrote:
>> Hello,
>> thanks very much for all your replies. In deed, I rebuild world
>> replacing openssl with libressl, basically only for opensmtpd.
>> So it is the github issue. I knew smtpd portable supports
>> openssl, but it did not come to my mind, that libressl is not
>> supported at all for the portable version, openssl being just
>> being an extra service, so I thought I'll do it something good.
>> I'll revert to openssl and report back. May take a day or two.
>> Thanks again
>> Ede



Re: Portable buildung issues

2019-10-22 Thread Ede Wolf
Thanks for the heads up. Last time I have been using libressl 2.9.2, 
I'll give 3.0.1 a go, it happens to be in the repos as well, just not 
marked as stable.


Ede



Am 22.10.19 um 16:28 schrieb Gilles Chehade:

Sorry, will expand:

We're in between two LibreSSL releases which is why the LibreSSL you're 
using is not compatible.


When LibreSSL 3.0.2 is released, it will automagically build with it. 
LibreSSL 3.0.1 development version is already working.


LibreSSL remains our target for both OpenBSD and portable but we're kind 
of in a time warp right now in between two versions.


On Tue, Oct 22, 2019, 16:23 Gilles Chehade > wrote:


LibreSSL is supported and recommended, this really needs to be fixed
before the 6.6.0p1 portable release.

On Tue, Oct 22, 2019, 14:44 John Smith mailto:lis...@nebelschwaden.de>> wrote:

Hello,

thanks very much for all your replies. In deed, I rebuild world
replacing openssl with libressl, basically only for opensmtpd.
So it is the github issue. I knew smtpd portable supports
openssl, but it did not come to my mind, that libressl is not
supported at all for the portable version, openssl being just
being an extra service, so I thought I'll do it something good.

I'll revert to openssl and report back. May take a day or two.

Thanks again

Ede







Re: Portable buildung issues

2019-10-22 Thread Gilles Chehade
Sorry, will expand:

We're in between two LibreSSL releases which is why the LibreSSL you're
using is not compatible.

When LibreSSL 3.0.2 is released, it will automagically build with it.
LibreSSL 3.0.1 development version is already working.

LibreSSL remains our target for both OpenBSD and portable but we're kind of
in a time warp right now in between two versions.

On Tue, Oct 22, 2019, 16:23 Gilles Chehade  wrote:

> LibreSSL is supported and recommended, this really needs to be fixed
> before the 6.6.0p1 portable release.
>
> On Tue, Oct 22, 2019, 14:44 John Smith  wrote:
>
>> Hello,
>>
>> thanks very much for all your replies. In deed, I rebuild world replacing
>> openssl with libressl, basically only for opensmtpd. So it is the github
>> issue. I knew smtpd portable supports openssl, but it did not come to my
>> mind, that libressl is not supported at all for the portable version,
>> openssl being just being an extra service, so I thought I'll do it
>> something good.
>>
>> I'll revert to openssl and report back. May take a day or two.
>>
>> Thanks again
>>
>> Ede
>>
>>
>>


Re: Portable buildung issues

2019-10-22 Thread Gilles Chehade
LibreSSL is supported and recommended, this really needs to be fixed before
the 6.6.0p1 portable release.

On Tue, Oct 22, 2019, 14:44 John Smith  wrote:

> Hello,
>
> thanks very much for all your replies. In deed, I rebuild world replacing
> openssl with libressl, basically only for opensmtpd. So it is the github
> issue. I knew smtpd portable supports openssl, but it did not come to my
> mind, that libressl is not supported at all for the portable version,
> openssl being just being an extra service, so I thought I'll do it
> something good.
>
> I'll revert to openssl and report back. May take a day or two.
>
> Thanks again
>
> Ede
>
>
>


Re: Portable buildung issues

2019-10-22 Thread Ede Wolf
Sorry, it's a gentoo linux system

Ede


On Tue, Oct 22, 2019 at 11:45:43AM +, gil...@poolp.org wrote:
> we really really really need more details, I have no idea what system that is 
> :-)
> 
> October 22, 2019 1:38 PM, "John Smith"  wrote:
> 
> > Hello,
> > 
> > cloned today, I am having problems building smtpd. After configure:
> > 
> > /data/git/opensmtp # make
> > make all-recursive
> > make[1]: Entering directory '/data/git/opensmtp'
> > Making all in openbsd-compat
> > make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
> > gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat 
> > -I../openbsd-compat/err_h
> > -I/usr/include -march=skylake -fomit-frame-pointer -O2 -pipe -fPIC -DPIC 
> > -Wall -Wpointer-arith
> > -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess 
> > -Wno-pointer-sign
> > -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE 
> > -D_BSD_SOURCE -D_DEFAULT_SOURCE
> > -c -o arc4random.o arc4random.c
> > arc4random.c:167:21: error: macro "arc4random_stir" passed 1 arguments, but 
> > takes just 0
> > arc4random_stir(void)
> > ^
> > arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> > before '{' token
> > {
> > ^
> > make[2]: *** [Makefile:445: arc4random.o] Error 1
> > make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
> > make[1]: *** [Makefile:418: all-recursive] Error 1
> > make[1]: Leaving directory '/data/git/opensmtp'
> > make: *** [Makefile:350: all] Error 2
> > 
> > Any idea what I might be missing? As I have a rather minimal system, some 
> > package my be lacking.
> > Any further details that are needed?
> > 
> > Thanks
> > 
> > Ede
> 



Re: Portable buildung issues

2019-10-22 Thread John Smith
Hello,

thanks very much for all your replies. In deed, I rebuild world replacing 
openssl with libressl, basically only for opensmtpd. So it is the github issue. 
I knew smtpd portable supports openssl, but it did not come to my mind, that 
libressl is not supported at all for the portable version, openssl being just 
being an extra service, so I thought I'll do it something good. 

I'll revert to openssl and report back. May take a day or two.

Thanks again

Ede




Re: Portable buildung issues

2019-10-22 Thread Ihor Antonov
Yes, this is the one

On October 22, 2019 7:52:29 AM EDT, Reio Remma  wrote:
>Looks suspiciously like this.
>
>https://github.com/OpenSMTPD/OpenSMTPD/issues/944
>
>Good luck,
>Reio
>
>On 22/10/2019 14:45, gil...@poolp.org wrote:
>> we really really really need more details, I have no idea what system
>that is :-)
>>
>> October 22, 2019 1:38 PM, "John Smith" 
>wrote:
>>
>>> Hello,
>>>
>>> cloned today, I am having problems building smtpd. After configure:
>>>
>>> /data/git/opensmtp # make
>>> make all-recursive
>>> make[1]: Entering directory '/data/git/opensmtp'
>>> Making all in openbsd-compat
>>> make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
>>> gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat
>-I../openbsd-compat/err_h
>>> -I/usr/include -march=skylake -fomit-frame-pointer -O2 -pipe -fPIC
>-DPIC -Wall -Wpointer-arith
>>> -Wuninitialized -Wsign-compare -Wformat-security
>-Wsizeof-pointer-memaccess -Wno-pointer-sign
>>> -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE
>-D_BSD_SOURCE -D_DEFAULT_SOURCE
>>> -c -o arc4random.o arc4random.c
>>> arc4random.c:167:21: error: macro "arc4random_stir" passed 1
>arguments, but takes just 0
>>> arc4random_stir(void)
>>> ^
>>> arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or
>'__attribute__' before '{' token
>>> {
>>> ^
>>> make[2]: *** [Makefile:445: arc4random.o] Error 1
>>> make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
>>> make[1]: *** [Makefile:418: all-recursive] Error 1
>>> make[1]: Leaving directory '/data/git/opensmtp'
>>> make: *** [Makefile:350: all] Error 2
>>>
>>> Any idea what I might be missing? As I have a rather minimal system,
>some package my be lacking.
>>> Any further details that are needed?
>>>
>>> Thanks
>>>
>>> Ede

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Portable buildung issues

2019-10-22 Thread Reio Remma

Looks suspiciously like this.

https://github.com/OpenSMTPD/OpenSMTPD/issues/944

Good luck,
Reio

On 22/10/2019 14:45, gil...@poolp.org wrote:

we really really really need more details, I have no idea what system that is 
:-)

October 22, 2019 1:38 PM, "John Smith"  wrote:


Hello,

cloned today, I am having problems building smtpd. After configure:

/data/git/opensmtp # make
make all-recursive
make[1]: Entering directory '/data/git/opensmtp'
Making all in openbsd-compat
make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat 
-I../openbsd-compat/err_h
-I/usr/include -march=skylake -fomit-frame-pointer -O2 -pipe -fPIC -DPIC -Wall 
-Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess 
-Wno-pointer-sign
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE -D_BSD_SOURCE 
-D_DEFAULT_SOURCE
-c -o arc4random.o arc4random.c
arc4random.c:167:21: error: macro "arc4random_stir" passed 1 arguments, but 
takes just 0
arc4random_stir(void)
^
arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '{' token
{
^
make[2]: *** [Makefile:445: arc4random.o] Error 1
make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
make[1]: *** [Makefile:418: all-recursive] Error 1
make[1]: Leaving directory '/data/git/opensmtp'
make: *** [Makefile:350: all] Error 2

Any idea what I might be missing? As I have a rather minimal system, some 
package my be lacking.
Any further details that are needed?

Thanks

Ede





Re: Portable buildung issues

2019-10-22 Thread Ihor Antonov
Hi Ede.

I have seen same error on Alpine Linux.
Most likely you have libressl abd libressl-dev, while version 6.6 works with 
openssl.

There is a bug in configuration code that prevents the building opnbsd-compat 
libs when you have libressl. I will add github issue link later. But for now 
just try replacing libressl with openssl

Ihor

On October 22, 2019 7:38:13 AM EDT, John Smith  wrote:
>Hello,
>
>cloned today, I am having problems building smtpd. After configure:
>
>
>/data/git/opensmtp # make
>make  all-recursive
>make[1]: Entering directory '/data/git/opensmtp'
>Making all in openbsd-compat
>make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
>gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat
>-I../openbsd-compat/err_h -I/usr/include   -march=skylake
>-fomit-frame-pointer -O2 -pipe  -fPIC -DPIC -Wall -Wpointer-arith
>-Wuninitialized -Wsign-compare -Wformat-security
>-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result
>-fno-strict-aliasing -fno-builtin-memset -fPIE -D_BSD_SOURCE
>-D_DEFAULT_SOURCE  -c -o arc4random.o arc4random.c
>arc4random.c:167:21: error: macro "arc4random_stir" passed 1 arguments,
>but takes just 0
> arc4random_stir(void)
> ^
>arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or
>'__attribute__' before '{' token
> {
> ^
>make[2]: *** [Makefile:445: arc4random.o] Error 1
>make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
>make[1]: *** [Makefile:418: all-recursive] Error 1
>make[1]: Leaving directory '/data/git/opensmtp'
>make: *** [Makefile:350: all] Error 2
>
>Any idea what I might be missing? As I have a rather minimal system,
>some package my be lacking. Any further details that are needed?
>
>Thanks
>
>Ede

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Portable buildung issues

2019-10-22 Thread gilles
we really really really need more details, I have no idea what system that is 
:-)

October 22, 2019 1:38 PM, "John Smith"  wrote:

> Hello,
> 
> cloned today, I am having problems building smtpd. After configure:
> 
> /data/git/opensmtp # make
> make all-recursive
> make[1]: Entering directory '/data/git/opensmtp'
> Making all in openbsd-compat
> make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
> gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat 
> -I../openbsd-compat/err_h
> -I/usr/include -march=skylake -fomit-frame-pointer -O2 -pipe -fPIC -DPIC 
> -Wall -Wpointer-arith
> -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess 
> -Wno-pointer-sign
> -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE 
> -D_BSD_SOURCE -D_DEFAULT_SOURCE
> -c -o arc4random.o arc4random.c
> arc4random.c:167:21: error: macro "arc4random_stir" passed 1 arguments, but 
> takes just 0
> arc4random_stir(void)
> ^
> arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before '{' token
> {
> ^
> make[2]: *** [Makefile:445: arc4random.o] Error 1
> make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
> make[1]: *** [Makefile:418: all-recursive] Error 1
> make[1]: Leaving directory '/data/git/opensmtp'
> make: *** [Makefile:350: all] Error 2
> 
> Any idea what I might be missing? As I have a rather minimal system, some 
> package my be lacking.
> Any further details that are needed?
> 
> Thanks
> 
> Ede



Portable buildung issues

2019-10-22 Thread John Smith
Hello,

cloned today, I am having problems building smtpd. After configure:


/data/git/opensmtp # make
make  all-recursive
make[1]: Entering directory '/data/git/opensmtp'
Making all in openbsd-compat
make[2]: Entering directory '/data/git/opensmtp/openbsd-compat'
gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat 
-I../openbsd-compat/err_h -I/usr/include   -march=skylake -fomit-frame-pointer 
-O2 -pipe  -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare 
-Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign 
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -fPIE -D_BSD_SOURCE 
-D_DEFAULT_SOURCE  -c -o arc4random.o arc4random.c
arc4random.c:167:21: error: macro "arc4random_stir" passed 1 arguments, but 
takes just 0
 arc4random_stir(void)
 ^
arc4random.c:168:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '{' token
 {
 ^
make[2]: *** [Makefile:445: arc4random.o] Error 1
make[2]: Leaving directory '/data/git/opensmtp/openbsd-compat'
make[1]: *** [Makefile:418: all-recursive] Error 1
make[1]: Leaving directory '/data/git/opensmtp'
make: *** [Makefile:350: all] Error 2

Any idea what I might be missing? As I have a rather minimal system, some 
package my be lacking. Any further details that are needed?

Thanks

Ede