$ ./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
Hi Darren!
Am 22.10.2013 um 09:11 schrieb Darren Spruell phatbuckett@gmail.com:
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)
Thanks, I'll include it!
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
This works for me:
$ ./configure --sysconfdir=/a/test/directory … 'ngircd' binary: /usr/local/sbin Configuration file: /a/test/directory Manual pages: /usr/local/share/man Documentation: /usr/local/share/doc/ngircd … $ make $ grep "/a/test/directory" doc/sample-ngircd.conf ;MotdFile = /a/test/directory/ngircd.motd ;IncludeDir = /a/test/directory/conf.d ;CertFile = /a/test/directory/ssl/server-cert.pem ;DHFile = /a/test/directory/ssl/dhparams.pem ;KeyFile = /a/test/directory/ssl/server-key.pem ;KeyFile = /a/test/directory/#chan.key
And the "doc/sample-ngircd.conf" becomes installed as "ngircd.conf" into /a/test/directory when there is no such (old) file already.
So I can't reproduce your problem, I think?
What does your ./doc/sample-ngircd.conf file look like after running "make"? It is generated from the ./doc/sample-ngircd.conf.tmpl file …
Thanks Alex
On Tue, Oct 22, 2013 at 3:39 AM, Alexander Barton alex@barton.de wrote:
Hi Darren!
Am 22.10.2013 um 09:11 schrieb Darren Spruell phatbuckett@gmail.com:
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)
Thanks, I'll include it!
So I can't reproduce your problem, I think?
What does your ./doc/sample-ngircd.conf file look like after running "make"? It is generated from the ./doc/sample-ngircd.conf.tmpl file …
I can't reproduce my problem either. :) I saw the same incorrect path in ./doc/sample-ngircd.conf, and so I reconfigured/recompiled from fresh sources and everything worked properly afterward. I think I must have botched the first build somehow.