Hi

Is it possible to build snapshots on OpenBSD-5.5-Stable (built from
source because as far as I can tell the release ISO still contains
Heartbleed)?

Neither the OpenBSD or the Portable version works for me.  I can
understand that the OpenBSD version tracks current and may fail to
build at any point, but I was hopeful theat the portable vsrsion might
be more portable...

I'd like to follow this project and maybe help if I ever have the time
(which is, at the moment, I admit, unlikely) but I really don't have
the time to try and follow OpenBSD-current

Many thanks

John Cox

Trying to build opensmtpd-201404151425 fails:

cc -O2 -pipe  -I -DNEED_EVENT_ASR_RUN -g3 -ggdb
-I/home/jc/opensmtpd-201404151425/smtpd/.. -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith
-Wcast-qual -Wsign-compare -Wbounded -DIO_SSL -DQUEUE_PROFILING   -c
/home/jc/opensmtpd-201404151425/smtpd/../dict.c
cc -O2 -pipe  -I -DNEED_EVENT_ASR_RUN -g3 -ggdb
-I/home/jc/opensmtpd-201404151425/smtpd/.. -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith
-Wcast-qual -Wsign-compare -Wbounded -DIO_SSL -DQUEUE_PROFILING   -c
/home/jc/opensmtpd-201404151425/smtpd/../dns.c
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:32:17: error: asr.h: No
such file or directory
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:58: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:58: warning: its scope
is only this definition or declaration, which is probably not what you
want
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:59: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:60: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:61: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: In function
'dns_imsg':
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:225: warning: implicit
declaration of function 'getnameinfo_async'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:226: warning:
assignment makes pointer from integer without a cast
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:227: warning: implicit
declaration of function 'event_asr_run'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:253: warning: implicit
declaration of function 'res_query_async'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:253: warning:
assignment makes pointer from integer without a cast
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:276: warning:
assignment makes pointer from integer without a cast
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: At top level:
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:296: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:297: error: conflicting
types for 'dns_dispatch_host'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:58: error: previous
declaration of 'dns_dispatch_host' was here
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: In function
'dns_dispatch_host':
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:304: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:313: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:314: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:316: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:317: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: At top level:
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:330: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:331: error: conflicting
types for 'dns_dispatch_ptr'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:59: error: previous
declaration of 'dns_dispatch_ptr' was here
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: In function
'dns_dispatch_ptr':
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:337: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:338: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: At top level:
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:345: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:346: error: conflicting
types for 'dns_dispatch_mx'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:60: error: previous
declaration of 'dns_dispatch_mx' was here
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: In function
'dns_dispatch_mx':
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:355: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:355: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:359: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:361: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:367: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:371: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:371: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:385: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: At top level:
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:393: warning: 'struct
asr_result' declared inside parameter list
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:394: error: conflicting
types for 'dns_dispatch_mx_preference'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:61: error: previous
declaration of 'dns_dispatch_mx_preference' was here
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: In function
'dns_dispatch_mx_preference':
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:403: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:404: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:406: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:407: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:414: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:414: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:430: error:
dereferencing pointer to incomplete type
/home/jc/opensmtpd-201404151425/smtpd/../dns.c: In function
'dns_lookup_host':
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:456: warning: implicit
declaration of function 'getaddrinfo_async'
/home/jc/opensmtpd-201404151425/smtpd/../dns.c:456: warning:
assignment makes pointer from integer without a cast
*** Error 1 in smtpd (<sys.mk>:87 'dns.o')
*** Error 1 in /home/jc/opensmtpd-201404151425 (<bsd.subdir.mk>:48
'all')
$


Trying to build portable opensmtpd-201404151432p1 fails:

...
config.status: executing libtool commands
config.status: executing depfiles commands

OpenSMTPD has been configured with the following options:
                     User binaries: /usr/local/bin
                   System binaries: /usr/local/sbin
               Configuration files: /usr/local/etc
                mail.local program:
/usr/local/libexec/opensmtpd/mail.local
                   encrypt program:
/usr/local/libexec/opensmtpd/encrypt
                      Manual pages: /usr/local/share/man/catX
                    smtpd.sock dir: /var/run
  Privilege separation chroot path: /var/empty
           smtpd default user PATH:
                    Manpage format: cat
                       PAM support: no
                  BSD Auth support: no
              Random number source: OpenSSL internal ONLY

              Host: x86_64-unknown-openbsd5.5
          Compiler: gcc
    Compiler flags: -g -O2  -fPIC -DPIC -Wall -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign
-fno-strict-aliasing -fno-builtin-memset
Preprocessor flags:
      Linker flags:
         Libraries: -levent -lcrypto -lssl -lutil -lz  -lc

$ make
make  all-recursive
Making all in openbsd-compat
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../openbsd-compat    -g -O2
-fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset  -MT arc4random.o -MD -MP -MF .deps/arc4random.Tpo
-c -o arc4random.o arc4random.c
mv -f .deps/arc4random.Tpo .deps/arc4random.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../openbsd-compat    -g -O2
-fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset  -MT base64.o -MD -MP -MF .deps/base64.Tpo -c -o
base64.o base64.c
mv -f .deps/base64.Tpo .deps/base64.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../openbsd-compat    -g -O2
-fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset  -MT basename.o -MD -MP -MF .deps/basename.Tpo -c
-o basename.o basename.c

...

mv -f .deps/smtpd-lka_session.Tpo .deps/smtpd-lka_session.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../smtpd -I../../openbsd-compat
-I../../contrib/lib/libc/asr -I. -DSMTPD_CONFDIR=\"/usr/local/etc\"
-DPATH_CHROOT=\"/var/empty\"
-DPATH_SMTPCTL=\"/usr/local/sbin/smtpctl\"
-DPATH_MAILLOCAL=\"/usr/local/libexec/opensmtpd/mail.local\"
-DPATH_FILTERS=\"/usr/local/libexec/opensmtpd\"
-DPATH_TABLES=\"/usr/local/libexec/opensmtpd\" -DHAVE_CONFIG_H
-DIO_SSL -DASR_OPT_THREADSAFE=0  -DCA_FILE=\"/etc/ssl/cert.pem\" -g
-O2  -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset  -D_GNU_SOURCE -DNEED_EVENT_ASR_RUN -MT
smtpd-log.o -MD -MP -MF .deps/smtpd-log.Tpo -c -o smtpd-log.o `test -f
'../../smtpd/log.c' || echo './'`../../smtpd/log.c
mv -f .deps/smtpd-log.Tpo .deps/smtpd-log.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../smtpd -I../../openbsd-compat
-I../../contrib/lib/libc/asr -I. -DSMTPD_CONFDIR=\"/usr/local/etc\"
-DPATH_CHROOT=\"/var/empty\"
-DPATH_SMTPCTL=\"/usr/local/sbin/smtpctl\"
-DPATH_MAILLOCAL=\"/usr/local/libexec/opensmtpd/mail.local\"
-DPATH_FILTERS=\"/usr/local/libexec/opensmtpd\"
-DPATH_TABLES=\"/usr/local/libexec/opensmtpd\" -DHAVE_CONFIG_H
-DIO_SSL -DASR_OPT_THREADSAFE=0  -DCA_FILE=\"/etc/ssl/cert.pem\" -g
-O2  -fPIC -DPIC -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wno-pointer-sign -fno-strict-aliasing
-fno-builtin-memset  -D_GNU_SOURCE -DNEED_EVENT_ASR_RUN -MT
smtpd-mda.o -MD -MP -MF .deps/smtpd-mda.Tpo -c -o smtpd-mda.o `test -f
'../../smtpd/mda.c' || echo './'`../../smtpd/mda.c
../../smtpd/mda.c: In function 'mda_getlastline':
../../smtpd/mda.c:587: warning: implicit declaration of function
'strnvis'
../../smtpd/mda.c:587: error: 'VIS_SAFE' undeclared (first use in this
function)
../../smtpd/mda.c:587: error: (Each undeclared identifier is reported
only once
../../smtpd/mda.c:587: error: for each function it appears in.)
../../smtpd/mda.c:587: error: 'VIS_CSTYLE' undeclared (first use in
this function)
*** Error 1 in mk/smtpd (Makefile:968 'smtpd-mda.o')
*** Error 1 in mk (Makefile:383 'all-recursive')
*** Error 1 in . (Makefile:430 'all-recursive')
*** Error 1 in /home/jc/opensmtpd-201404151432p1 (Makefile:336 'all')
$



-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to