bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w3m: 'license'; error: redefinition of 'struct file_handle'


From: Cyril Roelandt
Subject: Re: w3m: 'license'; error: redefinition of 'struct file_handle'
Date: Sun, 03 Mar 2013 23:56:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 02/13/2013 07:57 AM, Nikita Karetnikov wrote:
Just replace "struct file_handle" with "struct io_file_handle"
everywhere in the w3m source code.  That will have no effect on the
operation of the program whatsoever.

I used the following:

     (arguments `(#:tests? #f ; no 'check' target
                  #:phases (alist-cons-before
                            'configure 'fix-perl-and-rename-file_handle
                            (lambda _
                              (substitute* '("scripts/w3mmail.cgi.in"
                                             "scripts/dirlist.cgi.in")
                                (("@PERL@") (which "perl")))
                              ;; https://launchpad.net/bugs/935540
                              ;; 'struct file_handle' is used by 'glibc'
                              (substitute* '("istream.c"
                                             "istream.h")
                                (("struct file_handle")
                                 "struct io_file_handle")))
                            %standard-phases)))

But I guess that it's not enough because the 'build' phase failed:

main.c: In function 'main':
main.c:836:23: error: void value not ignored as it ought to be
main.c: In function 'getChar':
main.c:2264:5: warning: passing argument 1 of 'wtf_parse1' from incompatible 
pointer type [enabled by default]
In file included from fm.h:44:0,
                  from main.c:3:
./libwc/wtf.h:71:19: note: expected 'wc_uchar **' but argument is of type 'char 
**'
make: *** [main.o] Error 1
make: *** Waiting for unfinished jobs....

This is a known issue: https://bugs.archlinux.org/task/33397 . The attached files make w3m buildable.

WBR,
Cyril.

Attachment: w3m.scm
Description: Text Data

Attachment: w3m-fix-compile.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]