From nobody@FreeBSD.org  Wed Mar 29 15:25:08 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 2B31037B5EB
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 Mar 2000 15:25:08 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id PAA74049;
	Wed, 29 Mar 2000 15:25:08 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003292325.PAA74049@freefall.freebsd.org>
Date: Wed, 29 Mar 2000 15:25:08 -0800 (PST)
From: timlee@netcom.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: w3m port bugs
X-Send-Pr-Version: www-1.0

>Number:         17673
>Category:       ports
>Synopsis:       w3m port bugs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 29 15:30:00 PST 2000
>Closed-Date:    Sun May 7 06:56:40 JST 2000
>Last-Modified:  Sun May 07 06:57:18 JST 2000
>Originator:     Timothy J. Lee
>Release:        ports current
>Organization:
>Environment:
FreeBSD minos.dsllogic.com 3.4-STABLE FreeBSD 3.4-STABLE #2: Thu Mar  9 20:41:02 PST 2000     root@minos.dsllogic.com:/usr/src/sys/compile/MINOS  i386

>Description:
w3m has the following bugs:

a.  w3m-ssl port does not compile (with openssl-0.9.4 installed from
    the ports collection):

===>  Building for w3m-ssl-0.1.7
`Makefile' is up to date.
make -f XXMakefile
cc -pipe -pipe  -I/openssl -I -I/usr/local/include -I. -c main.c
In file included from fm.h:25,
                 from main.c:4:
html.h:5: ssl.h: No such file or directory
In file included from main.c:4:
fm.h:26: gc.h: No such file or directory
In file included from proto.h:466,
                 from fm.h:632,
                 from main.c:4:
indep.h:3: gc.h: No such file or directory
In file included from fm.h:25,
                 from main.c:4:
html.h:45: parse error before `SSL'
html.h:45: warning: no semicolon at end of struct or union
html.h:48: parse error before `}'
In file included from fm.h:632,
                 from main.c:4:
proto.h:370: parse error before `*'
*** Error code 1
 
Stop.

b.  w3m core dumps if you press 'F' for frame rendering (but just
    going to the frames with \r works like lynx).  For an example,
    just go to http://www.securityfocus.com and press 'F'.  Patch
    below stops the core dump, but then 'F' does not do anything:

--- frame.c.orig        Wed Mar 29 15:03:14 2000
+++ frame.c     Wed Mar 29 14:58:58 2000
@@ -634,6 +634,7 @@
 
   tmp = Sprintf("%s/w3mframe%d.%lx.html", rc_dir,getpid(),
                (unsigned long)Cbuf->frameQ);
+  if (Cbuf == NULL || Cbuf->frameQ == NULL) return NULL;
   f = fopen(tmp->ptr,"w");
   if (f == NULL) return NULL;
   if (createFrameFile(Cbuf->frameQ->frameset, f, Cbuf, 0) < 0)


>How-To-Repeat:
See above.

>Fix:
See above.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Sun May 7 06:56:40 JST 2000 
State-Changed-Why:  
The latest w3m includes this fix.  Thanks anyway! 
>Unformatted:
