Just compiled ht://Dig version 3.1.0 on my Alpha Linux system and had a memory
map error when running htsearch, also dig, merge etc. I had the same problem
with the beta2 release as well. Here is the code I comment in
htdig-3.1.0/db/os/os_map.c to get rid of the annoying error message.
=================== Code snippet ==============================
/*
* I know of no systems that implement the flag to tell the system
* that the region contains semaphores, but it's not an unreasonable
* thing to do, and has been part of the design since forever. I
* don't think anyone will object, but don't set it for read-only
* files, it doesn't make sense.
*/
#ifdef MAP_HASSEMAPHORE
/* PJM COMMENT 2/10/99
if (!is_rdonly)
flags |= MAP_HASSEMAPHORE;
*/
#endif
prot = PROT_READ | (is_rdonly ? 0 : PROT_WRITE);
========================= END SNIPPET ================================
Red Hat 5.1 Linux 2.0.34 kernel on the Alpha (LX164) platform appears to define
the MAP_HASSEMAPHORE, but does not implement it from what I recall. Anyway,
commenting these lines gets rid of a lot of error messages to the system
console and the messages file.
>From what I can tell, the new code appears to have compiled alright and appears
to dig okay, but I did get a whole bunch of "BAD TAG IN SERIALIZED DATA:"
messages when I did rundig. I'm not sure at this point if it was related to the
mmap problem or something else. I will investigate over the course of the next
week or so.
Regards, Paul
--
__
Paul J. Meyer
Global Hydrology and Climate Center
NASA/MSFC code HR20 | [EMAIL PROTECTED] (SMTP)
Huntsville, AL 35812 | [EMAIL PROTECTED] (X.500)
Voice: (256) 922-5892 Fax: (256) 922-5723
http://wwwghcc.msfc.nasa.gov/
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.