From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#17429: 24.4.50; __pngconf.h__ in libpng already includes setjmp.h Date: Wed, 07 May 2014 13:42:46 -0400 Message-ID: References: <87r4462j1w.fsf@turtle.gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1399484596 24272 80.91.229.3 (7 May 2014 17:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2014 17:43:16 +0000 (UTC) Cc: 17429@debbugs.gnu.org, Sven Joachim To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 07 19:43:09 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wi5s4-0003bJ-P9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 May 2014 19:43:08 +0200 Original-Received: from localhost ([::1]:42976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi5s4-0000bo-El for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 May 2014 13:43:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi5rz-0000aB-RS for bug-gnu-emacs@gnu.org; Wed, 07 May 2014 13:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wi5ry-0007WC-SP for bug-gnu-emacs@gnu.org; Wed, 07 May 2014 13:43:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi5ry-0007W8-PC for bug-gnu-emacs@gnu.org; Wed, 07 May 2014 13:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wi5ry-0002fN-En for bug-gnu-emacs@gnu.org; Wed, 07 May 2014 13:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 May 2014 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17429-submit@debbugs.gnu.org id=B17429.139948457010227 (code B ref 17429); Wed, 07 May 2014 17:43:02 +0000 Original-Received: (at 17429) by debbugs.gnu.org; 7 May 2014 17:42:50 +0000 Original-Received: from localhost ([127.0.0.1]:54743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wi5rl-0002er-UY for submit@debbugs.gnu.org; Wed, 07 May 2014 13:42:50 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58586 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wi5rj-0002eg-MU for 17429@debbugs.gnu.org; Wed, 07 May 2014 13:42:48 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Wi5ri-0000TU-DF; Wed, 07 May 2014 13:42:46 -0400 X-Spook: MD5 bemd Vickie Weaver Sundevil Chobetsu Bosnia IRA X-Ran: ?Llh*"oAMHjWM/7rF3jVy}1o3U37CVu/hP>H^"fN+u2|S/|f_;=6+k*i?Qm&#jRfh1d#_` X-Hue: green X-Attribution: GM In-Reply-To: <87r4462j1w.fsf@turtle.gmx.de> (Sven Joachim's message of "Wed, 07 May 2014 08:34:51 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88739 Archived-At: Sven Joachim wrote: > Trunk does not build for me, I get an error when compiling image.c: Prior to trunk r117068, image.c included png.h before setjmp.h. > ,---- > | In file included from /usr/include/libpng12/png.h:540:0, > | from image.c:5515: > | /usr/include/libpng12/pngconf.h:371:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token > | __pngconf.h__ in libpng already includes setjmp.h; > | ^ > | /usr/include/libpng12/pngconf.h:372:12: error: unknown type name '__dont__' > | __dont__ include it again.; > | ^ > | /usr/include/libpng12/pngconf.h:372:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'it' > | __dont__ include it again.; > | ^ > | /usr/include/libpng12/pngconf.h:372:29: error: unknown type name 'it' > | Makefile:339: recipe for target 'image.o' failed > `---- > > In pngconf.h there is the following explanation: > > ,---- > | #ifdef PNG_SETJMP_SUPPORTED > | /* This is an attempt to force a single setjmp behaviour on Linux. If > | * the X config stuff didn't define _BSD_SOURCE we wouldn't need this. > | * > | * You can bypass this test if you know that your application uses exactly > | * the same setjmp.h that was included when libpng was built. Only define > | * PNG_SKIP_SETJMP_CHECK while building your application, prior to the > | * application's '#include "png.h"'. Don't define PNG_SKIP_SETJMP_CHECK > | * while building a separate libpng library for general use. > | */ > | > | # ifndef PNG_SKIP_SETJMP_CHECK > | # ifdef __linux__ > | # ifdef _BSD_SOURCE > | # define PNG_SAVE_BSD_SOURCE > | # undef _BSD_SOURCE > | # endif > | # ifdef _SETJMP_H > | /* If you encounter a compiler error here, see the explanation > | * near the end of INSTALL. > | */ > | __pngconf.h__ in libpng already includes setjmp.h; > | __dont__ include it again.; > | # endif > | # endif /* __linux__ */ > | # endif /* PNG_SKIP_SETJMP_CHECK */ > `----