help-nano
[Top][All Lists]
Advanced

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

[Help-nano] Nano 2.1.9 on Interix (allsource for opt, -disable-mouse)


From: Jay
Subject: [Help-nano] Nano 2.1.9 on Interix (allsource for opt, -disable-mouse)
Date: Sat, 20 Jun 2009 12:47:57 +0000

c -o nano.o /src/nano-2.1.9/src/nano.c
/src/nano-2.1.9/src/nano.c: In function `main':
/src/nano-2.1.9/src/nano.c:2080: error: `optarg' undeclared (first use in this f
unction)
/src/nano-2.1.9/src/nano.c:2080: error: (Each undeclared identifier is reported
only once
/src/nano-2.1.9/src/nano.c:2080: error: for each function it appears in.)
/src/nano-2.1.9/src/nano.c:2466: error: `optind' undeclared (first use in this f
unction)



gcc -g -O2 -o nano browser.o chars.o color.o cut.o files.o global.o help.o mo
ve.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o -lncurses
browser.o(.text+0x804): In function `striponedir':
/src/nano-2.1.9/src/browser.c:1073: undefined reference to `_wmouse_trafo'
nano.o(.text+0x1ccc): In function `main':
/src/nano-2.1.9/src/nano.c:2585: undefined reference to `_wmouse_trafo'
prompt.o(.text+0x44b): In function `do_yesno_prompt':
/src/nano-2.1.9/src/prompt.c:1282: undefined reference to `_wmouse_trafo'
prompt.o(.text+0x1a53):/src/nano-2.1.9/src/prompt.c:1282: undefined reference to
`_wmouse_trafo'
winio.o(.text+0x13af): In function `do_credits':
/src/nano-2.1.9/src/winio.c:3448: undefined reference to `_wmouse_trafo'
collect2: ld returned 1 exit status


C:\src\nano-2.1.9\src>diff -u nano.c.orig nano.c
--- nano.c.orig 2009-02-16 19:06:35.000000000 -0800
+++ nano.c 2009-06-20 05:32:19.140625000 -0700
@@ -21,6 +21,10 @@
* *
**************************************************************************/
+#if defined(__INTERIX) && !defined(_ALL_SOURCE)
+#define _ALL_SOURCE
+#endif
+
#include "proto.h"
#include


For wmouse, I did configure -disable-mouse.
Maybe that can be autoconfigured based on inavailability of those functions?



Interix has:



c:\sfu\usr\include\curses.h(1232):/* mouse interface */
c:\sfu\usr\include\curses.h(1284):extern int getmouse(MEVENT *);
c:\sfu\usr\include\curses.h(1285):extern int ungetmouse(MEVENT *);
c:\sfu\usr\include\curses.h(1286):extern mmask_t mousemask(mmask_t, mmask_t *);
c:\sfu\usr\include\curses.h(1288):extern int mouseinterval(int);
c:\sfu\usr\include\curses.h(1305):extern char *_tracemouse(const MEVENT *);
c:\sfu\usr\include\term.h(503):#define key_mouse CUR Strings[355]
c:\sfu\usr\include\term.h(504):#define mouse_info CUR Strings[356]
c:\sfu\usr\include\term.h(505):#define req_mouse_pos CUR Strings[357]
c:\sfu\usr\include\term.h(506):#define get_mouse CUR Strings[358]



 Thanks,
 - Jay



reply via email to

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