From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.devel Subject: libxpm-3.5.7-w32-src package on website Date: Sat, 20 Feb 2010 19:58:26 -0700 Message-ID: <4B80A152.6090905@gmail.com> 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: dough.gmane.org 1266814077 32649 80.91.229.12 (22 Feb 2010 04:47:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 04:47:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 21 05:38:47 2010 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.69) (envelope-from ) id 1Nj3Nr-0008Rm-V5 for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2010 05:25:32 +0100 Original-Received: from localhost ([127.0.0.1]:46661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj33d-0002rT-Cc for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2010 23:04:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nj21e-0007PU-W4 for emacs-devel@gnu.org; Sat, 20 Feb 2010 21:58:31 -0500 Original-Received: from [140.186.70.92] (port=36693 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj21e-0007Oq-5h for emacs-devel@gnu.org; Sat, 20 Feb 2010 21:58:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nj21d-0000bU-IZ for emacs-devel@gnu.org; Sat, 20 Feb 2010 21:58:30 -0500 Original-Received: from qw-out-1920.google.com ([74.125.92.144]:6122) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj21d-0000bN-Eb for emacs-devel@gnu.org; Sat, 20 Feb 2010 21:58:29 -0500 Original-Received: by qw-out-1920.google.com with SMTP id 5so306080qwf.24 for ; Sat, 20 Feb 2010 18:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=I5DVQBH7cckb5Mx6qP11uE8jX1xLgh9wP0KuXwvt0OA=; b=yB7Dl7r63QniW1zp5yAXs9w33q4BAyiVwkD7W4odkUlwRQHXbNyxtTFZbNbCDrzKWQ vqJtPsKb4fRQ0x5R1tEs74Q/Sw3nt2voZ4uEpsCrIwuRW5Vyugo7zl7rvoc/8Pyh11Sb cLh5YnmTeNLX6bF/MLsEWAiYB4HT55LZ2f1S4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=r11YHhfxpVXzuLV4IOGr7rOJxZeizBKAQBwJrxZRud/fdR5CXLzdvLdtrijPmjsFUA uebRWS8Cuxg8rZ/b7y4HRjAJZPzK5H5p/j0SFM+X4aR/6NFGUKc9ykRAiwhGf4MTCrEJ JeJ8YtyUHduyhCdEjbXr72RMnerLgTOuD0XZg= Original-Received: by 10.224.69.194 with SMTP id a2mr1569192qaj.306.1266721108709; Sat, 20 Feb 2010 18:58:28 -0800 (PST) Original-Received: from ?192.168.1.4? (67-41-158-234.hlrn.qwest.net [67.41.158.234]) by mx.google.com with ESMTPS id 22sm1409081qyk.6.2010.02.20.18.58.27 (version=SSLv3 cipher=RC4-MD5); Sat, 20 Feb 2010 18:58:28 -0800 (PST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 20 Feb 2010 23:03:42 -0500 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:121274 Archived-At: I was trying to compile Emacs Pretest 23.1.92 on Windows with the libxpm-3.5.7-w32-src from the website and configure always showed this error: XPM support is missing. It is required for color icons in the toolbar. Install libXpm development files or use --without-xpm Important libraries are missing. Fix these issues before running make. I investigated further and found two things: 1. When compiling on Windows simx.h is included by xpm.h but simx.h is not included in the source package. It is not needed to compile libxmp itself but when compiling emacs with xpm support it is needed. After including simx.h in the include path, the config log shows this: In file included from junk.c:2: D:/devel/emacs/libXpm-3.5.7/include/X11/xpm.h:320: error: syntax error before "extern" junk.c:3: error: syntax error before "main" The failed program was: #define FOR_MSW 1 #include "X11/xpm.h" main (){} 2. The version of xpm.h included in the libxpm-3.5.7-w32-src package (v1.2) contains _XFUNCPROTOBEGIN and _XFUNCPROTOEND. However, these macros are not defined anywhere, that's why configure fails. xpm.h v1.3, which I got from the libxpm source package from the GnuWin32 website, does not contain the _XFUNCPROTOBEGIN/END macros but explicitely uses #ifdef __cplusplus extern "C" { #endif and #ifdef __cplusplus } /* for C++ V2.0 */ #endif With this version 1.3 of xpm.h configure works fine without any other dependencies. BTW, these are the only differences between v1.2 and v1.3 of xpm.h. So, I am wondering, would it be possible to a) include simx.h in the libxpm package provided at http://alpha.gnu.org/gnu/emacs/pretest/windows/? b) upgrade xpm.h to v1.3? Thanks, Christoph