Mail archive
alpine-aports

Re: [alpine-aports] [PATCH v2] testing/opensmtpd: new aport

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Tue, 15 Sep 2015 15:55:02 +0200

On Thu, 10 Sep 2015 21:01:14 +0000
Jonathan Curran <jonathan_at_curran.in> wrote:

> This aport provides the portable version of OpenSMTPD patched to work
> with musl.
>
> Parts of the patch will be submitted upstream soon.
>
> https://opensmtpd.org
> ---
> Changes v1 -> v2:
> - updated smtpd.initd

I let it only build on x86_64 for now because it failed on 32bit:

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../smtpd -I../../openbsd-compat -I. -I/usr/include -Os -fomit-frame-pointer -DSMTPD_CONFDIR=\"/etc/smtpd\" -DPATH_CHROOT=\"/var/empty\" -DPATH_SMTPCTL=\"/usr/sbin/smtpctl\" -DPATH_MAILLOCAL=\"/usr/libexec/opensmtpd/mail.local\" -DPATH_LIBEXEC=\"/usr/libexec/opensmtpd\" -DHAVE_CONFIG_H -DNO_IO -DPATH_GZCAT=\"/bin/zcat\" -DPATH_ENCRYPT=\"/usr/libexec/opensmtpd/encrypt\" -Os -fomit-frame-pointer -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 -Werror -D_GNU_SOURCE -c -o ../../smtpd/smtpctl-crypto.o `test -f '../../smtpd/crypto.c' || echo './'`../../smtpd/crypto.c
../../smtpd/smtpctl.c: In function 'do_show_sizes':
../../smtpd/smtpctl.c:726:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct userinfo=%ld\n", sizeof (struct userinfo));
         ^
../../smtpd/smtpctl.c:727:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct netaddr=%ld\n", sizeof (struct netaddr));
         ^
../../smtpd/smtpctl.c:728:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct relayhost=%ld\n", sizeof (struct relayhost));
         ^
../../smtpd/smtpctl.c:729:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct credentials=%ld\n", sizeof (struct credentials));
         ^
../../smtpd/smtpctl.c:730:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct destination=%ld\n", sizeof (struct destination));
         ^
../../smtpd/smtpctl.c:731:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct source=%ld\n", sizeof (struct source));
         ^
../../smtpd/smtpctl.c:732:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct addrname=%ld\n", sizeof (struct addrname));
         ^
../../smtpd/smtpctl.c:733:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("union lookup=%ld\n", sizeof (union lookup));
         ^
../../smtpd/smtpctl.c:734:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct delivery_mda=%ld\n", sizeof (struct delivery_mda));
         ^
../../smtpd/smtpctl.c:735:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct delivery_mta=%ld\n", sizeof (struct delivery_mta));
         ^
../../smtpd/smtpctl.c:736:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct envelope=%ld\n", sizeof (struct envelope));
         ^
../../smtpd/smtpctl.c:737:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct forward_req=%ld\n", sizeof (struct forward_req));
         ^
../../smtpd/smtpctl.c:738:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct deliver=%ld\n", sizeof (struct deliver));
         ^
../../smtpd/smtpctl.c:739:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct bounce_req_msg=%ld\n", sizeof (struct bounce_req_msg));
         ^
../../smtpd/smtpctl.c:740:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct ca_cert_req_msg=%ld\n", sizeof (struct ca_cert_req_msg));
         ^
../../smtpd/smtpctl.c:741:9: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Werror=format=]
  printf("struct ca_vrfy_req_msg=%ld\n", sizeof (struct ca_vrfy_req_msg));
         ^
cc1: all warnings being treated as errors


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Sep 15 2015 - 15:55:02 GMT