Re: Portierungsproblem

From: Oliver Fromme <olli(at)secnetix.de>
Date: Sun, 23 Mar 2003 22:16:20 +0100 (CET)

Michael Gusek <michael.gusek(at)web.de> wrote:
> Ich portiere gerade ein kleines Programm von Linux nach FreeBSD. Das Programm
> benutzt eine Funktion namens "mlockall". In der Headerdatei
> /usr/include/sys/mman.h bin ich auch fündig geworden. Leider bekomme ich beim
> kompilieren diese Fehlermeldung:
> grab.o(.text+0x1c0): undefined reference to `mlockall'
>
> Unter Linux befindet sich die Funktion in der libc, bei einem grep in /usr/lib
> bin ich leider nicht fündig geworden. Wo könnte ich noch suchen ?

Nach meiner Erfahrung verwenden manche Linux-Programme
mlockall() als Work-around für das eher suboptimale VM-
System von Linux, nicht aber, weil es tatsächlich not-
wendig ist.

Ich würde mal nachgucken, warum das Programm überhaupt
mlockall() machen will, und es im Zweifelsfall einfach
auskommentieren.

Gruß
   Olli

PS: Bitte neue Fragen nicht als Replies auf vorhandene
Mails machen. Das bringt das Threading durcheinander.
Ich hätte Deine Frage fast völlig übersehen, weil sie in
einem anderen (alten) Thread einsortiert wurde.

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
I worry about my child and the Internet all the time, even though she's
too young to have logged on yet.  Here's what I worry about.  I worry
that 10 or 15 years from now, she will come to me and say "Daddy, where
were you when they took freedom of the press away from the Internet?"
       -- Mike Godwin
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 23 Mar 2003 - 22:16:23 CET

search this site