w3m(0.5.3) fails to build with bdw-gc 7.2.
The error message is following.
----
main.c: In function ‘main’:
main.c:836: error: void value not ignored as it ought to be
main.c: In function ‘getChar’:
main.c:2264: warning: passing argument 1 of ‘wtf_parse1’ from incompatible pointer type
make: *** [main.o] Error 1
----
I attached a patch which fixes this issue.
Fixed the building issue with bdw-gc7.2.
The patch fixes the same problem under Arch Linux.
May I please have some guidance to apply the patch on OSX Mountain Lion. I've tried all of the following to no avail:
/usr/bin/patch main.c < w3m-bdwgc72.diff
/usr/bin/patch < w3m-bdwgc72.diff
cp main.c main.c.original
/usr/bin/diff -u main.c.original main.c > w3m-bdwgc72.diff
I'm still getting the same error message described in this thread. Any help would be greatly appreciated.
Try this.
Last edit: waltarix 2013-05-30
Same as https://sourceforge.net/p/w3m/patches/63/.
Fixed in Debian w3m 0.5.3-6.
http://anonscm.debian.org/gitweb/?p=collab-maint/w3m.git
Patch updated in Debian w3m 0.5.3-17. (Replaced Gentoo's patch)
http://anonscm.debian.org/cgit/collab-maint/w3m.git/tree/debian/patches/080_gc72.patch?h=debian
Updated in Debian to correct GC version confirmation,
for future versions gc-8.0, 8.1 and so on.
cf.
- https://github.com/tats/w3m/pull/2/files
- http://anonscm.debian.org/cgit/collab-maint/w3m.git