From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David J Fussner Newsgroups: gmane.emacs.bugs Subject: bug#9929: 24.0.91; Compile failure at gnutls.c Date: Tue, 1 Nov 2011 10:33:34 +0000 Message-ID: <20111101103334.75975b51@font.localnet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320163613 17483 80.91.229.12 (1 Nov 2011 16:06:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2011 16:06:53 +0000 (UTC) To: 9929@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 01 17:06:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLGrO-00010i-Lv for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2011 17:06:46 +0100 Original-Received: from localhost ([::1]:59665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLGrL-0000T7-FK for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2011 12:06:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLGqQ-0000JB-Ne for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 12:05:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLGqP-00048C-6e for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 12:05:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLGqO-000486-US for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 12:05:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RLGsc-00029o-FK for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 12:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David J Fussner Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2011 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13201636778279 (code B ref -1); Tue, 01 Nov 2011 16:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2011 16:07:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLGsW-00029T-JY for submit@debbugs.gnu.org; Tue, 01 Nov 2011 12:07:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLBnp-0001iE-Ov for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:42:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLBlc-0000SJ-2f for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:40:29 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:50981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLBcR-0006n1-2E for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:30:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLBbW-0006iG-GW for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 06:30:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLBau-0006Kv-Ty for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 06:30:01 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:49782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLBau-0006JR-HC for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 06:29:24 -0400 Original-Received: by wyg24 with SMTP id 24so1992771wyg.0 for ; Tue, 01 Nov 2011 03:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=Po6E5ACk4AYqH/y3M8wwsbi4v9pkXvAaKsLIKCpbHCE=; b=Y36f5iUAjqZokskRVw54NgyKumPcvtDwQsc3Xn1wG7FIYoZn04/X7Dc24tc0nDFhJn a0gCwgW6LyG2+xFo4Qm50c89csL/bqFE98jlMvx+vq7Il9n0a9utdMxugJYg2hBkFrRE miJaNsGyWjHt+IrqoW5Cei4RuKRc5MXkW0w2s= Original-Received: by 10.227.58.17 with SMTP id e17mr22911472wbh.18.1320143363253; Tue, 01 Nov 2011 03:29:23 -0700 (PDT) Original-Received: from font.localnet (i-83-67-54-143.freedom2surf.net. [83.67.54.143]) by mx.google.com with ESMTPS id b5sm37574238wbh.4.2011.11.01.03.29.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Nov 2011 03:29:21 -0700 (PDT) X-Mailer: Claws Mail 3.5.0 (GTK+ 2.10.13; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 01 Nov 2011 12:07:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Nov 2011 12:08:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Tue, 01 Nov 2011 12:06:42 -0400 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:53389 Archived-At: Compilation of the latest pretest fails with this recipe: ./configure make gnutls.c: In function 'Fgnutls_boot': gnutls.c:962: error: 'GNUTLS_CERT_NOT_ACTIVATED' undeclared (first use in this function) gnutls.c:962: error: (Each undeclared identifier is reported only once gnutls.c:962: error: for each function it appears in.) gnutls.c:966: error: 'GNUTLS_CERT_EXPIRED' undeclared (first use in this function) make[1]: *** [gnutls.o] Error 1 make[1]: Leaving directory `/home/Downloads/emacs-24.0.91/src' make: *** [src] Error 2 This is Slackware GNU/Linux 12 pkg-config --modversion gnutls: 2.6.2 gcc (GCC) 4.1.2 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Selected parts of config.log, in case it helps: configure:11710: checking for gnutls >= 2.6.0 configure:11714: result: yes configure:11718: checking LIBGNUTLS_CFLAGS configure:11721: result: configure:11724: checking LIBGNUTLS_LIBS configure:11727: result: -lgnutls configure:11764: checking for gnutls_certificate_set_verify_function configure:11764: gcc -std=gnu99 -o conftest -g -O2 -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -Wl,-znocombreloc conftest.c -lgnutls -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lWand -lMagick -lrsvg-2 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lX11 -lpthread -ldbus-1 >&5 /tmp/ccgDoSOW.o: In function `main': /home/Downloads/emacs-24.0.91/conftest.c:138: undefined reference to `gnutls_certificate_set_verify_function' collect2: ld returned 1 exit status configure:11764: $? = 1 configure: failed program was: | /* confdefs.h */ .... | #define HAVE_GNUTLS 1 | /* end confdefs.h. */ | /* Define gnutls_certificate_set_verify_function to an innocuous variant, in case declares gnutls_certificate_set_verify_function. | For example, HP-UX 11i declares gettimeofday. */ | #define gnutls_certificate_set_verify_function innocuous_gnutls_certificate_set_verify_function | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char gnutls_certificate_set_verify_function (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef gnutls_certificate_set_verify_function | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char gnutls_certificate_set_verify_function (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_gnutls_certificate_set_verify_function || defined __stub___gnutls_certificate_set_verify_function | choke me | #endif | | int | main () | { | return gnutls_certificate_set_verify_function (); | ; | return 0; | } ./configure --without-gnutls works fine: In GNU Emacs 24.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.10.13) of 2011-10-31 on font Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--without-gnutls'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.ISO8859-1 value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t There was, by the way, the same problem compiling 24.0.90. I'm happy to test fixes, or indeed upgrade gnutls if necessary. Many thanks, David.