From: furio ercolessi <furio@spin.it>
To: axp-list@redhat.com
Cc: furio@spin.it
Subject: "unimplemented OSF mmap flags 0201"
Date: Mon, 16 Nov 1998 0:25:20 MET [thread overview]
Message-ID: <199811152325.AAA15784@mail.spin.it> (raw)
I am trying to build sendmail 8.9.1 with Berkeley db 2.5.9 (from
SleepyCat) on a stock RH 5.2 system (2.0.35, glibc 2.0.7-29,
egcs 1.0.3).
It apparently works, but I get messages
kernel: sendmail: unimplemented OSF mmap flags 0201
in /var/log/messages, apparently every time sendmail starts.
This does not happen when I use the standard libdb included
with glibc.
I had a brief email exchange with SleepyCat, and they say
that, most likely, Alpha Linux states in some include file
that these flags are supported, while in reality they are not.
I found a similar comment in a very old message in the archives:
http://archive.redhat.com/axp-list/1996/1996-November/0275.html
So I made a little research. The offending message comes from function
osf_mmap in arch/alpha/kernel/osf_sys.c :
[...]
if (flags & (MAP_HASSEMAPHORE | MAP_INHERIT | MAP_UNALIGNED))
printk("%s: unimplemented OSF mmap flags %04lx\n", current->comm, flags);
[...]
and include/asm-alpha/mman.h contains
#define MAP_HASSEMAPHORE 0x0200
#define MAP_INHERIT 0x0400
#define MAP_UNALIGNED 0x0800
so my case (0201) should have to do with MAP_HASSEMAPHORE.
The db software indeed checks if this variable is defined
(in os/os_map.c), and calls the mmap function with modified
flags if it is. mmap(2) does not mention MAP_HASSEMAPHORE
among the supported flags.
To summarize, it appears to me that include/asm-alpha/mman.h
is indeed faulty in defining things which are not really
supported in glibc, thus causing kernel error messages and
perhaps misfunctioning applications.
If all this is true, include/asm-alpha/mman.h should be
modified in the next kernel distributions, removing these
three definitions.
furio ercolessi
Spin
Trieste (Italy)
next reply other threads:[~1998-11-15 23:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-15 23:25 furio ercolessi [this message]
1998-11-16 0:06 ` "unimplemented OSF mmap flags 0201" furio ercolessi
1998-11-16 5:17 ` Matti Aarnio
1998-11-16 9:43 ` furio ercolessi
1998-11-28 20:50 ` Using non-parity RAM in AS200? John Scott
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox