Ismael Cordeiro <ismael@cordeiro.com> wrote:
> I tried to compile w3m-0.1.8 on FreeBSD 3.4 and got this warning:
>
> gcc -O2 -I./gc -I/home/ismael/ssl/include/openssl
> -I/home/ismael/ssl/include -I. -c menu.c
> menu.c:18: warning: `sysm_process_menu_mouse' declared `static' but
> never defined
This is indicative that USE_SYSMOUSE was defined, but MOUSE wasn't...
> and then it stopped with:
>
> gcc -O2 -I./gc -I/home/ismael/ssl/include/openssl
> -I/home/ismael/ssl/include -I. -c terms.c
> terms.c: In function `do_getch':
> terms.c:1493: `is_xterm' undeclared (first use this function)
> terms.c:1493: (Each undeclared identifier is reported only once
> terms.c:1493: for each function it appears in.)
> *** Error code 1
... and this is, too.
How can this happen? Oh, I see. MOUSE is chosen manually as part
of the "model" query of the configure script; USE_SYSMOUSE is set
automatically on FreeBSD.
If you include mouse support in your configuration, the problem
should go away.
This patch makes configure define USE_SYSMOUSE only if MOUSE has
also been defined:
--- configure.orig Sat Apr 8 01:59:49 2000
+++ configure Sat Apr 8 02:02:20 2000
@@ -647,16 +647,15 @@
gpmlib="-lgpm"
fi
done
+ case $sysname in
+ freebsd|FreeBSD)
+ use_sysmouse="#define USE_SYSMOUSE"
+ ;;
+ *)
+ use_sysmouse="#undef USE_SYSMOUSE"
+ ;;
+ esac
fi
-
-case $sysname in
- freebsd|FreeBSD)
- use_sysmouse="#define USE_SYSMOUSE"
- ;;
- *)
- use_sysmouse="#undef USE_SYSMOUSE"
- ;;
-esac
extlib=''
-- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT