On Mon, 30 Aug 2010, U.Mutlu wrote:

> On 2010-08-30 16:51, Davide Libenzi wrote:
> > On Mon, 30 Aug 2010, Davide Libenzi wrote:
> > 
> > > On Mon, 30 Aug 2010, rm wrote:
> > > 
> > > > On 2010-08-30 05:55, rm wrote:
> > > > > A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
> > > > > It just says "Starting XMail Server:" and hangs there :-(
> > > > > What could be the reason?
> > > > 
> > > > In /var/log/syslog the following error is reported:
> > > > 
> > > > Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
> > > 
> > > You're in a situation where libc has the include file, but eventfd is not
> > > implemented.
> > > Remove the "-DHAS_EVENTFD" string from Makefile.lnx and rebuild.
> > 
> > Which kernel are you using (run `uname -a`)?
> > Which glibc version (run `/lib/libc.so.6`)?
> 
> 
> The 'machine' is a rented VPS box.
> Recently I upgraded the OS from Debian 5 (lenny) to 6 (squeeze)
> using "apt-get upgrade". Unfortunately on this VPS I cannot/maynot
> change the kernel.
> 
> I guess the following block in Makefile.lnx needs to be changed.
> How should it look like?
> 
> ifeq ($(wildcard /usr/include/sys/eventfd.h), )
>     SYSSRCS := $(SYSSRCS) SysOsEventfd_pipe.cpp
> else
>     SYSSRCS := $(SYSSRCS) SysOsEventfd_eventfd.cpp
>     CFLAGS := $(CFLAGS) -DHAS_EVENTFD
> endi
> 
> 
> s1:~# cat /etc/debian_version
> squeeze/sid
> 
> s1:~# uname -a
> Linux s1.******.** 2.6.18-164.15.1.el5.028stab068.9 #1 SMP Tue Mar 30 18:07:38
> MSD 2010 i686 GNU/Linux
> 
> s1:~# /lib/libc.so.6
> GNU C Library (Debian EGLIBC 2.11.2-2) stable release version 2.11.2, by
> Roland McGrath et al.
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> Compiled by GNU CC version 4.4.4.
> Compiled on a Linux 2.6.32 system on 2010-06-24.
> Available extensions:
>       crypt add-on version 2.1 by Michael Glad and others
>       GNU Libidn by Simon Josefsson
>       Native POSIX Threads Library by Ulrich Drepper et al
>       BIND-8.2.3-T5B
> For bug reporting instructions, please see:
> <http://www.debian.org/Bugs/>.

You are running a new glibc, with an old kernel (which does not provide 
eventfd).
You should really try to fetch a kernel newer than one that is more than 3 
years old.


- Davide


_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

Reply via email to