$ ./contrib/platformtest.sh platformtest.sh: Checking ngIRCd base source directory ... platformtest.sh: Checking for GIT tree ... platformtest.sh: Checking for "./configure" script ... platformtest.sh: Running "./configure" script ... platformtest.sh: Running "make" ... platformtest.sh: Running "make check" ... portabtest.c: In function 'main': portabtest.c:43: warning: the address of 'snprintf' will always evaluate as 'true' portabtest.c:44: warning: the address of 'vsnprintf' will always evaluate as 'true' portabtest.c:45: warning: the address of 'strlcpy' will always evaluate as 'true' portabtest.c:46: warning: the address of 'strlcat' will always evaluate as 'true'
the executable works ("runs") as expected --+ tests run successfully ("make check") --+ | ngIRCd compiles ("make") --+ | | ./configure works --+ | | | | | | | Platform Compiler ngIRCd Date Tester C M T R See --------------------------- ------------ ---------- -------- ------ - - - - --- i386/unknown/openbsd5.3 gcc 4.2.1 21~rc2 13-10-21 dspruell Y Y Y Y (3)
I did want to ask about path changes in the configuration. Under v20 the use of './configure --sysconfdir=/etc/ngircd' set the paths for many parameters in the config to /etc/ngircd. I notice the new configuration has these defaulting to /usr/local/etc/ even with --sysconfdir set to /etc/ngircd.
$ egrep './configure' config.log $ ./configure --sysconfdir=/etc/ngircd --with-openssl
--- ngircd.conf-v20 Sat Dec 29 23:49:41 2012 +++ ngircd.conf Mon Oct 21 23:41:32 2013 - ;MotdFile = /etc/ngircd/ngircd.motd + ;MotdFile = /usr/local/etc/ngircd.motd + ;IncludeDir = /usr/local/etc/conf.d - ;CertFile = /etc/ngircd/ssl/server-cert.pem + ;CertFile = /usr/local/etc/ssl/server-cert.pem - ;DHFile = /etc/ngircd/ssl/dhparams.pem + ;DHFile = /usr/local/etc/ssl/dhparams.pem - ;KeyFile = /etc/ngircd/ssl/server-key.pem + ;KeyFile = /usr/local/etc/ssl/server-key.pem - ;KeyFile = /etc/ngircd/#chan.key + ;KeyFile = /usr/local/etc/#chan.key
Shouldn't the path in the config for all these be /etc/ngircd/ with --sysconfdir set as shown? The compiled in defaults appear to be correct:
$ ngircd --configtest ... Reading configuration from "/etc/ngircd/ngircd.conf" ... ... MotdFile = /etc/ngircd/ngircd.motd IncludeDir = /etc/ngircd/ngircd.conf.d