From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nyc4bos@aol.com Newsgroups: gmane.emacs.bugs Subject: bug#8825: 24.0.50; Problem with builtin gnutls on Windows Date: Tue, 14 Jun 2011 19:28:37 -0400 Message-ID: References: <87mxhpjudg.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308096960 9870 80.91.229.12 (15 Jun 2011 00:16:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 00:16:00 +0000 (UTC) To: 8825@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 15 02:15:56 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 1QWdlz-0000Xg-MN for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 02:15:55 +0200 Original-Received: from localhost ([::1]:49441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWdly-00046O-BA for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2011 20:15:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWd7W-0001to-28 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWd7T-0007Ot-L2 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:34:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWd7T-0007Oi-8d for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QWd7S-0001rd-6k; Tue, 14 Jun 2011 19:34:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: nyc4bos@aol.com Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2011 23:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8825 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.13080943977107 (code B ref -1); Tue, 14 Jun 2011 23:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jun 2011 23:33:17 +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 1QWd6j-0001qa-AM for submit@debbugs.gnu.org; Tue, 14 Jun 2011 19:33:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWd6g-0001qO-OG for submit@debbugs.gnu.org; Tue, 14 Jun 2011 19:33:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWd6Z-0007HL-QZ for submit@debbugs.gnu.org; Tue, 14 Jun 2011 19:33:09 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:47333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWd6Z-0007HH-FI for submit@debbugs.gnu.org; Tue, 14 Jun 2011 19:33:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWd6X-0001bt-LG for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:33:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWd6U-0007Gu-T4 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:33:05 -0400 Original-Received: from imr-da05.mx.aol.com ([205.188.105.147]:38324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWd6U-0007GV-IM for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 19:33:02 -0400 Original-Received: from mtaout-da01.r1000.mx.aol.com (mtaout-da01.r1000.mx.aol.com [172.29.51.129]) by imr-da05.mx.aol.com (8.14.1/8.14.1) with ESMTP id p5ENWpI1027765 for ; Tue, 14 Jun 2011 19:32:51 -0400 Original-Received: from RPLPUBBAS07 (unknown [63.117.244.126]) by mtaout-da01.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id 36609E000141 for ; Tue, 14 Jun 2011 19:32:51 -0400 (EDT) x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:482576928:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33814df7efa3172f X-AOL-IP: 63.117.244.126 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 14 Jun 2011 19:34:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47161 Archived-At: Sean Sieger writes: > nyc4bos@aol.com writes: > > I have the DLL libgnutls-26.dll in my PATH as well as in `exec-path`. > > Does the `26' refer to the version? The binary is built against > gnutls.h of version 2.10. This DLL is from gnutls-2.10.1.zip which was obtained from http://josefsson.org/gnutls4win. This is the location you are sent to when you click on the "windows" link on the page http://www.gnu.org/software/gnutls. Inside the ZIP file, among other files, is libgnutls-26.dll. I also tried the previous version, gnutls-2.10.0.zip, which is the one I think you said you had, with the same result. Both gnutls.h files from 2.10.1 and 2.10.0 were identical except for: #define GNUTLS_VERSION #define GNUTLS_VERSION_PATCH #define GNUTLS_VERSION_NUMBER I'm begining to think that the problem is in the way that gnutls is called and/or its error handling. When I try the test from the *scratch* buffer: (require 'gnutls) gnutls (open-gnutls-stream "tls" "tls-buffer" "imap.aim.com" "imaps") I get the *Backtrace* error: Debugger entered--Lisp error: (void-function gnutls-boot) gnutls-boot(# gnutls-x509pki (:priority "NORMAL" :hostname "imap.aim.com" :loglevel 0 :trustfiles nil :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :verify-hostname-error nil :callbacks nil)) gnutls-negotiate(:process # :type gnutls-x509pki :hostname "imap.aim.com") open-gnutls-stream("tls" "tls-buffer" "imap.aim.com" "imaps") eval((open-gnutls-stream "tls-" "tls-buffer" "imap.aim.com" "imaps") nil) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp() call-interactively(eval-print-last-sexp nil nil) recursive-edit() debug(error (void-function gnutls-boot)) But I do get the 'tls-buffer' and a TCP ESTABLISHED connection: I did get in `process-list': tls open tls-buffer -- (network connection to imap.aim.com) I also got an ESTALISHED TCP connection: TCP XXX.XXX.XXX.XXX:4151 205.188.58.10:993 ESTABLISHED The `tls-buffer' is empty for a while and then when it timesout it contains: Process tls connection broken by remote peer Gnus gets the same "void: gnutls-boot" error: Opening nnimap server on aol... Opening connection to imap.aim.com via tls... Unable to open server nnimap+aol due to: Symbol's function definition is void: gnutls-boot Opening nnimap server on aol...failed: Is it the handshaking that is failing? I turned on debugging '(setq gnutls-log-level 1)' but got no debugging information in the *Messages* buffer. Juanma said he successfully built Emacs 24 on Windows and was able to test builtin gnutls. Juanma: Are you using the libgnutls-26.dll in gnutls-2.10.1.zip (or gnutls-2.10.0.zip) from http://josefsson.org/gnutls4win? Are you linking, explicitly, to a gnutls library when building? Does libgnutls-26.dll show up when you do the equivalent of ldd on the emacs.exe binary? Sean's build is implicitly/dynamically using libgnutls-26.dll. I believe he only has the gnutls.h file and not any other file from the gnutls-2.10.0.zip archive. The variable `dynamic-library-alist' shows: Value: ((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll") (png "libpng14-14.dll" "libpng14.dll") (jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll") (tiff "libtiff3.dll" "libtiff.dll") (gif "giflib4.dll" "libungif4.dll" "libungif.dll") (svg "librsvg-2-2.dll") (gdk-pixbuf "libgdk_pixbuf-2.0-0.dll") (glib "libglib-2.0-0.dll") (gobject "libgobject-2.0-0.dll") (gnutls "libgnutls-26.dll")) I'm on Windows XP, if it matters. Thanks.