From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8673 invoked from network); 15 Nov 1998 23:25:24 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 15 Nov 1998 23:25:24 -0000 Received: from despam.spin.it (down.spin.it [147.123.1.23]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA00552 for ; Sun, 15 Nov 1998 18:25:23 -0500 Received: from mail.spin.it (up.spin.it [147.123.1.22]) by despam.spin.it (8.8.8/8.8.8/Spin-ext-980226) with ESMTP id AAA00837 for ; Mon, 16 Nov 1998 00:25:21 +0100 (MET) Received: (from furio@localhost) by mail.spin.it (8.8.8/8.8.8/Spin-int-980226) id AAA15784; Mon, 16 Nov 1998 00:25:20 +0100 (MET) From: furio ercolessi Message-Id: <199811152325.AAA15784@mail.spin.it> Subject: "unimplemented OSF mmap flags 0201" To: axp-list@redhat.com Date: Mon, 16 Nov 1998 0:25:20 MET Cc: furio@spin.it X-Mailer: Elm [revision: 109.19] 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)