From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Building without Emacs malloc, possible? Date: Wed, 21 Feb 2007 21:31:17 +0100 Message-ID: <45DCAC15.40305@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172089949 8690 80.91.229.12 (21 Feb 2007 20:32:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Feb 2007 20:32:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 21 21:32:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJy8T-00065x-4y for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2007 21:32:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJy8S-0002Wl-K5 for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2007 15:32:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJy8G-0002VG-0l for emacs-devel@gnu.org; Wed, 21 Feb 2007 15:32:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJy8E-0002TZ-Li for emacs-devel@gnu.org; Wed, 21 Feb 2007 15:32:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJy8E-0002TS-Du for emacs-devel@gnu.org; Wed, 21 Feb 2007 15:32:06 -0500 Original-Received: from av9-1-sn3.vrr.skanova.net ([81.228.9.185]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJy8E-0007N1-0t for emacs-devel@gnu.org; Wed, 21 Feb 2007 15:32:06 -0500 Original-Received: by av9-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 3B9E637F4B; Wed, 21 Feb 2007 21:32:03 +0100 (CET) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av9-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 1E87E37E84 for ; Wed, 21 Feb 2007 21:32:03 +0100 (CET) Original-Received: from husetbladh.homeip.net (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 0B2C037E49 for ; Wed, 21 Feb 2007 21:32:02 +0100 (CET) User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66583 Archived-At: Hello. What is the status of building without Emac malloc? There are some problems on cygwin + Gtk. Basically Gtk+ (glib actually) calls memalign, but on cygwin this does not call the Emacs supplied memalign, but cygwins own. Since malloc is the one Emacs has, cygwin memalign refuses to work. I don't know why the Emace memalign is not called, dynamic libraries on W32 seems to behave strange in this regard. One solution would be for Emacs to not use its own malloc, but that gives compilation errors. I don't have the errors here, but they are unresolved symbols in vm-limit.c. So, the question is what is need to compile on cygwin without Emacs malloc? I just added #define SYSTEM_MALLOC to s/cygwin.h. Apparently something more is needed. Jan D.