Re: [OpenSMTPD] portable snapshot opensmtpd-201406192306p1 available

2014-06-20 Thread Denis Fateyev
Hi Gilles,

The latest snapshot builds and works as expected in RHEL6 and Fedora 19,
20, devel (all available arch).
Although I have tested the very basic functionality for sending and
receiving messages to catch RH/Fedora-specific regressions, if any.


Under RHEL5 I have got a build error:

cc1: warning: -Wuninitialized is not supported without -O
mv -f .deps/smtpd-compress_backend.Tpo .deps/smtpd-compress_backend.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../smtpd -I../../openbsd-compat
-I../../contrib/lib/libc/asr -I.  -DSMTPD_CONFDIR=\/etc/opensmtpd\
-DPATH_CHROOT=\/var/empty/smtpd\ -DPATH_SMTPCTL=\/usr/sbin/smtpctl\
-DPATH_MAILLOCAL=\/usr/libexec/opensmtpd/mail.local\
-DPATH_LIBEXEC=\/usr/libexec/opensmtpd\ -DHAVE_CONFIG_H -DIO_SSL
-DASR_OPT_THREADSAFE=0 -DCA_FILE=\/etc/pki/tls/cert.pem\ -g
-I/usr/include/libdb4  -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset -std=gnu99  -D_GNU_SOURCE -DNEED_EVENT_ASR_RUN -MT
smtpd-config.o -MD -MP -MF .deps/smtpd-config.Tpo -c -o smtpd-config.o
`test -f '../../smtpd/config.c' || echo './'`../../smtpd/config.c
cc1: warning: -Wuninitialized is not supported without -O
In file included from ../../smtpd/ca.c:42:
../../smtpd/ssl.h:46: error: expected ')' before '*' token
../../smtpd/ssl.h:47: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
../../smtpd/ssl.h:51: error: expected ')' before '*' token
../../smtpd/ssl.h:52: error: expected ')' before '*' token
../../smtpd/ssl.h:53: error: expected ')' before '*' token
../../smtpd/ssl.h:57: warning: type defaults to 'int' in declaration of
'SSL'
../../smtpd/ssl.h:57: error: expected ';', ',' or ')' before '*' token
../../smtpd/ssl.h:66: error: expected ')' before '*' token
../../smtpd/ssl.h:70: error: expected ')' before '*' token
../../smtpd/ssl.h:71: error: expected ')' before '*' token
../../smtpd/ca.c:350: warning: initialization from incompatible pointer type
../../smtpd/ca.c: In function 'rsae_verify':
../../smtpd/ca.c:516: warning: passing argument 4 of
'rsa_default-rsa_verify' discards qualifiers from pointer target type
make[3]: *** [smtpd-ca.o] Error 1
make[3]: *** Waiting for unfinished jobs
mv -f .deps/smtpd-config.Tpo .deps/smtpd-config.Po
make[3]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201406192306p1/mk/smtpd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201406192306p1/mk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/mock/rpmbuild/BUILD/opensmtpd-201406192306p1'
make: *** [all] Error 2


Whether to fix it or not, it's up to you since RHEL5 packages aren't
presented in EPEL, and I have no plans to support RHEL5 version anymore.


Two cents on the topic that has been already discussed there (process name):

   ├─18925 smtpd: pony express
   └─18926 smtpd: klondike

Why not simple a neutral name like delivery, or something like that? The
same for klondike.

-- 
wbr, Denis.


build opensmtpd openbsd 5.5 box

2014-06-20 Thread Ricardson Williams

Hi all,

  How to update opensmtpd? I already download the source from openbsd 
cvs, I already try to run make but failed.


cd /usr/src/usr.sbin/smtpd
make


: undefined reference to `reallocarray'
collect2: ld returned 1 exit status
*** Error 1 in makemap (bsd.prog.mk:95 'makemap')
*** Error 1 in /usr/src/usr.sbin/smtpd (bsd.subdir.mk:48 'all')



Cheers,
Ricardson

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



Re: [OpenSMTPD] portable snapshot opensmtpd-201406192306p1 available

2014-06-20 Thread Charles Longeau
Hi Denis,

On Friday 20 June 2014 ` 18:17, Denis Fateyev wrote:
 Hi Gilles,
 
 The latest snapshot builds and works as expected in RHEL6 and Fedora 19,
 20, devel (all available arch).

Thanks for this report!

 Under RHEL5 I have got a build error:

[...]

 Whether to fix it or not, it's up to you since RHEL5 packages aren't
 presented in EPEL, and I have no plans to support RHEL5 version anymore.

It looks like there's a missing #include openssl/ssl.h in smtpd/ca.c.
I'll update it, please inform us about the result.

Charles

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



Re: attention, attention, changes !

2014-06-20 Thread Denis Fateyev
Hello there,

I have just tested `libasr` build on RH-systems. Everything is fine with
RHEL6; Fedora 19, 20 and devel (all arch).

Also, see no objections from including it to Fedora and EPEL (RHEL 6, 7)
when it's stable and ready for production.


In RHEL 5 I got an error during build:
--
make[1]: Entering directory `/home/mock/rpmbuild/BUILD/libasr-0.1'
Making all in src
make[2]: Entering directory `/home/mock/rpmbuild/BUILD/libasr-0.1/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I..  -I../src -I../openbsd-compat  -DASR_OPT_THREADSAFE=0 -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic  -fPIC -DPIC -Wall
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wno-pointer-sign -fno-strict-aliasing -fno-builtin-memset -std=gnu99  -MT
libasr_la-asr.lo -MD -MP -MF .deps/libasr_la-asr.Tpo -c -o
libasr_la-asr.lo `test -f 'asr.c' || echo './'`asr.c; \
then mv -f .deps/libasr_la-asr.Tpo .deps/libasr_la-asr.Plo; else rm
-f .deps/libasr_la-asr.Tpo; exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I..  -I../src -I../openbsd-compat  -DASR_OPT_THREADSAFE=0 -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic  -fPIC -DPIC -Wall
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wno-pointer-sign -fno-strict-aliasing -fno-builtin-memset -std=gnu99  -MT
libasr_la-asr_debug.lo -MD -MP -MF .deps/libasr_la-asr_debug.Tpo -c -o
libasr_la-asr_debug.lo `test -f 'asr_debug.c' || echo './'`asr_debug.c; \
then mv -f .deps/libasr_la-asr_debug.Tpo
.deps/libasr_la-asr_debug.Plo; else rm -f
.deps/libasr_la-asr_debug.Tpo; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../openbsd-compat
-DASR_OPT_THREADSAFE=0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset -std=gnu99 -MT libasr_la-asr_debug.lo -MD -MP -MF
.deps/libasr_la-asr_debug.Tpo -c asr_debug.c  -fPIC -DPIC -o
.libs/libasr_la-asr_debug.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../openbsd-compat
-DASR_OPT_THREADSAFE=0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset -std=gnu99 -MT libasr_la-asr.lo -MD -MP -MF
.deps/libasr_la-asr.Tpo -c asr.c  -fPIC -DPIC -o .libs/libasr_la-asr.o
In file included from ../openbsd-compat/openbsd-compat.h:172,
 from ../openbsd-compat/includes.h:77,
 from asr_debug.c:18:
/usr/include/stdio.h:359: error: conflicting types for 'snprintf'
In file included from ../openbsd-compat/openbsd-compat.h:172,
 from ../openbsd-compat/includes.h:77,
 from asr.c:18:
/usr/include/stdio.h:359: error: conflicting types for 'snprintf'
make[2]: *** [libasr_la-asr_debug.lo] Error 1
make[2]: *** Waiting for unfinished jobs
make[2]: *** [libasr_la-asr.lo] Error 1
make[2]: Leaving directory `/home/mock/rpmbuild/BUILD/libasr-0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mock/rpmbuild/BUILD/libasr-0.1'
make: *** [all] Error 2

--

As with recent `opensmtpd` builds, I am not planning to support `libasr`
RHEL5 packages, so fixing it is optional and up to you.


Now, some requests on `libasr`:

1) Versioning and tarballs with releases on Github. It would be nice to
download archives with official versions from Github or another site;

2) De-bootstrap before posting snapshots/releases to have configure only;
like we have in `opensmtpd`;

3) Pkgconfig support (.pc file).

-- 
wbr, Denis.


Re: build opensmtpd openbsd 5.5 box

2014-06-20 Thread Fritjof Bornebusch
On Fri, Jun 20, 2014 at 10:49:32AM -0300, Ricardson Williams wrote:
 Hi all,
 
   How to update opensmtpd? I already download the source from openbsd cvs, I
 already try to run make but failed.
 
Use the OpenBSD snapshots. :)

 cd /usr/src/usr.sbin/smtpd
 make
 
 
 : undefined reference to `reallocarray'
 collect2: ld returned 1 exit status
 *** Error 1 in makemap (bsd.prog.mk:95 'makemap')
 *** Error 1 in /usr/src/usr.sbin/smtpd (bsd.subdir.mk:48 'all')
 
 
 
 Cheers,
 Ricardson
 
Fritjof

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

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