Hi,
I'm failing to get ngIRCd 21 running on Minix 3.2.1/x86.
# ./configure […] ngIRCd 21 has been configured with the following options:
Host: i686-pc-minix Compiler: cc Compiler flags: -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -fstack-protector -DSYSCONFDIR='"$(sysconfdir)"' -DDOCDIR='"$(docdir)"' Libraries: -lz
'ngircd' binary: /usr/local/sbin Configuration file: /usr/local/etc Manual pages: /usr/local/share/man Documentation: /usr/local/share/doc/ngircd
Syslog support: yes Enable debug code: no zlib compression: yes IRC sniffer: no Use TCP Wrappers: no Strict RFC mode: no IDENT support: no IRC+ protocol: yes IPv6 protocol: no I/O backend: poll() PAM support: no SSL support: no libiconv support: no
# 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" ... clang: warning: argument unused during compilation: '-g' platformtest.sh: Running "make check" ... clang: warning: argument unused during compilation: '-g'
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 * --------------------------- ------------ ---------- -------- -------- - - - - - i686/pc/minix clang 3.1 21 13-11-21 root Y Y N Y
# src/ngircd/ngircd -npf doc/sample-ngircd.conf [8822:3 0] Can't read MOTD file "/usr/local/etc/ngircd.motd": no such file or directory [8822:3 0] Can't read help text file "/usr/local/share/doc/ngircd/Commands.txt": no such file or directory [8822:4 0] No help text available, HELP command will be of limited use. [8822:4 0] Not specifying a full path name to "doc/sample-ngircd.conf" can cause problems when rehashing the server! [8822:4 0] No administrative information configured but required by RFC! [8822:5 0] ngIRCd 21-IRCPLUS+SYSLOG+ZLIB-i686/pc/minix started. [8822:6 0] Using configuration file "doc/sample-ngircd.conf" ... [8822:6 0] ServerUID must not be root(0), using "nobody" instead. [8822:3 0] Can't drop supplementary group IDs: bad address! [8822:1 0] Fatal: Initialization failed, exiting!
anyone experienced sth like that before? I tried to set manually a suitable ServerGID but to no avail.
Grüße Götz
Hi Götz!
Am 21.11.2013 um 20:24 schrieb Götz Hoffart goetz@hoffart.de:
# src/ngircd/ngircd -npf doc/sample-ngircd.conf [8822:3 0] Can't read MOTD file "/usr/local/etc/ngircd.motd": no such file or directory [8822:3 0] Can't read help text file "/usr/local/share/doc/ngircd/Commands.txt": no such file or directory [8822:4 0] No help text available, HELP command will be of limited use. [8822:4 0] Not specifying a full path name to "doc/sample-ngircd.conf" can cause problems when rehashing the server! [8822:4 0] No administrative information configured but required by RFC! [8822:5 0] ngIRCd 21-IRCPLUS+SYSLOG+ZLIB-i686/pc/minix started. [8822:6 0] Using configuration file "doc/sample-ngircd.conf" ... [8822:6 0] ServerUID must not be root(0), using "nobody" instead. [8822:3 0] Can't drop supplementary group IDs: bad address! [8822:1 0] Fatal: Initialization failed, exiting!
anyone experienced sth like that before? I tried to set manually a suitable ServerGID but to no avail.
Strange, because it seems to work for me:
alex@minix3:~/src/ngircd-21 $ src/ngircd/ngircd -npf doc/sample-ngircd.conf [6585:3 0] Can't read MOTD file "/home/alex/etc/ngircd.motd": no such file or directory [6585:3 0] Can't read help text file "/home/alex/share/doc/ngircd/Commands.txt": no such file or directory [6585:4 0] No help text available, HELP command will be of limited use. [6585:4 0] Not specifying a full path name to "doc/sample-ngircd.conf" can cause problems when rehashing the server! [6585:4 0] No administrative information configured but required by RFC! [6585:5 0] ngIRCd 21-IRCPLUS+SYSLOG+ZLIB-i686/pc/minix started. [6585:6 0] Using configuration file "doc/sample-ngircd.conf" ... [6585:6 0] ServerUID must not be root(0), using "nobody" instead. [6585:3 0] Can't change group ID to ?(39): operation not permitted! [6585:3 0] Can't drop supplementary group IDs: operation not permitted! [6585:3 0] Can't change user ID to nobody(9999): operation not permitted! [6585:6 0] Running as user alex(1000), group users(100), with PID 6585. [6585:6 0] Not running with changed root directory. [6585:6 0] IO subsystem: poll (initial maxfd 100). [6585:6 0] Now listening on [0.0.0.0]:6667 (socket 6).
BUT.
But when I try to connect a client, I get "Segmentation fault (core dumped)" error, so basically it doesn't work :-(
This is Mini 3.2.1, clang version 3.1 (trunk 146353). My Minix is running in a KVM virtual machine.
I used the following commands for testing:
$ CC=cc ./configure --prefix=$HOME $ make $ src/ngircd/ngircd -npf doc/sample-ngircd.conf
$ cc --version | head -n 1 clang version 3.1 (trunk 146353)
Hm hm hm …
And it seems not to depend on the compiler, I get the same segmentation fault using GCC:
$ gcc --version | head -n 1 gcc (GCC) 4.4.6
So there seems to be a bigger problem on Minix :-/
Regards Alex