|
From: Tatsuro M. <tma...@ya...> - 2015-05-02 22:36:11
|
Hello The cygwin version was bumped up to ver. 2.0.0 recently. From the version up, the build of gnuplot on cygwin (32 and 64 bit) fails at compiling wxt_gui.cpp ../../gnuplot/src/wxterminal/wxt_gui.cpp: In function 'int wxt_waitforinput(int)': ../../gnuplot/src/wxterminal/wxt_gui.cpp:3710:20: error: 'select' was not declared in this scope timeout ); Any suggestions? Tatsuro Full log ************************************** depbase=`echo wxterminal/wxt_gui.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ c++ -DHAVE_CONFIG_H -I. -I../../gnuplot/src -I.. -I../term -I../../gnuplot/term -DBINDIR=\"/opt/gp510/bin\" -DX11_DRIVER_DIR=\"/opt/gp510/libexec/gnuplot/5.1\" -DQT_DRIVER_DIR=\"/opt/gp510/libexec/gnuplot/5.1\" -DGNUPLOT_SHARE_DIR=\"/opt/gp510/share/gnuplot/5.1\" -DGNUPLOT_PS_DIR=\"/opt/gp510/share/gnuplot/5.1/PostScript\" -DGNUPLOT_JS_DIR=\"/opt/gp510/share/gnuplot/5.1/js\" -DGNUPLOT_LUA_DIR=\"/opt/gp510/share/gnuplot/5.1/lua\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/opt/gp510/share/gnuplot/5.1/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`.exe\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -I/usr/local/include -I/usr/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -D_REENTRANT -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXUSINGDLL -D__WXGTK__ -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -MT wxterminal/wxt_gui.o -MD -MP -MF $depbase.Tpo -c -o wxterminal/wxt_gui.o ../../gnuplot/src/wxterminal/wxt_gui.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/local/include/wx-2.8/wx/wx.h:18:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/list.h:506:35: warning: type attributes ignored after type is already defined [-Wattributes] friend class WXDLLIMPEXP_FWD_BASE wxNodeBase; // should be able to call DetachNode() ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:19:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/hash.h:117:40: warning: attributes ignored on elaborated-type-specifier that is not a forward declaration [-Wattributes] typedef class WXDLLIMPEXP_FWD_BASE wxHashTableBase_Node _Node; ^ /usr/local/include/wx-2.8/wx/hash.h:157:39: warning: type attributes ignored after type is already defined [-Wattributes] friend class WXDLLIMPEXP_FWD_BASE wxHashTableBase_Node; ^ In file included from /usr/local/include/wx-2.8/wx/event.h:21:0, from /usr/local/include/wx-2.8/wx/wx.h:25, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/gdicmn.h:39:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxString; ^ In file included from /usr/local/include/wx-2.8/wx/cursor.h:41:0, from /usr/local/include/wx-2.8/wx/event.h:22, from /usr/local/include/wx-2.8/wx/wx.h:25, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/utils.h:26:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxArrayString; ^ /usr/local/include/wx-2.8/wx/utils.h:27:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxArrayInt; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:25:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/event.h:33:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxList; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:26:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/app.h:28:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxLog; ^ /usr/local/include/wx-2.8/wx/app.h:29:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxMessageOutput; ^ In file included from /usr/local/include/wx-2.8/wx/app.h:570:0, from /usr/local/include/wx-2.8/wx/wx.h:26, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/gtk/app.h:18:24: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_BASE wxLog; ^ In file included from /usr/local/include/wx-2.8/wx/window.h:24:0, from /usr/local/include/wx-2.8/wx/wx.h:36, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/font.h:30:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxSize; ^ In file included from /usr/local/include/wx-2.8/wx/window.h:26:0, from /usr/local/include/wx-2.8/wx/wx.h:36, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/region.h:19:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxColour; ^ In file included from /usr/local/include/wx-2.8/wx/window.h:37:0, from /usr/local/include/wx-2.8/wx/wx.h:36, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/accel.h:23:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxKeyEvent; ^ In file included from /usr/local/include/wx-2.8/wx/gtk/accel.h:15:0, from /usr/local/include/wx-2.8/wx/accel.h:154, from /usr/local/include/wx-2.8/wx/window.h:37, from /usr/local/include/wx-2.8/wx/wx.h:36, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/generic/accel.h:13:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxKeyEvent; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:36:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/window.h:58:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxCursor; ^ /usr/local/include/wx-2.8/wx/window.h:1424:40: warning: attributes ignored on elaborated-type-specifier that is not a forward declaration [-Wattributes] static struct WXDLLIMPEXP_FWD_CORE wxWindowNext *ms_winCaptureNext; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:37:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/containr.h:16:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxFocusEvent; ^ /usr/local/include/wx-2.8/wx/containr.h:17:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxNavigationKeyEvent; ^ /usr/local/include/wx-2.8/wx/containr.h:18:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxWindow; ^ /usr/local/include/wx-2.8/wx/containr.h:19:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxWindowBase; ^ In file included from /usr/local/include/wx-2.8/wx/panel.h:15:0, from /usr/local/include/wx-2.8/wx/wx.h:38, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/generic/panelg.h:22:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxControlContainer; ^ In file included from /usr/local/include/wx-2.8/wx/toplevel.h:22:0, from /usr/local/include/wx-2.8/wx/wx.h:39, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/iconbndl.h:20:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxString; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:44:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/bitmap.h:28:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxPalette; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:45:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/image.h:66:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxPalette; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:45:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/image.h:426:39: warning: type attributes ignored after type is already defined [-Wattributes] friend class WXDLLIMPEXP_FWD_CORE wxImageHandler; ^ In file included from /usr/local/include/wx-2.8/wx/brush.h:38:0, from /usr/local/include/wx-2.8/wx/dc.h:26, from /usr/local/include/wx-2.8/wx/wx.h:48, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/gtk/brush.h:13:24: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_CORE wxBitmap; ^ /usr/local/include/wx-2.8/wx/gtk/brush.h:14:24: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_CORE wxColour; ^ In file included from /usr/local/include/wx-2.8/wx/dcclient.h:24:0, from /usr/local/include/wx-2.8/wx/wx.h:49, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/gtk/dcclient.h:16:24: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_CORE wxWindow; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:53:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/button.h:48:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxBitmap; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:54:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/menuitem.h:29:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxAcceleratorEntry; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:55:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/menu.h:33:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxMenuItem; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:63:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/settings.h:18:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxWindow; ^ In file included from /usr/local/include/wx-2.8/wx/checklst.h:17:0, from /usr/local/include/wx-2.8/wx/wx.h:72, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/listbox.h:26:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxArrayInt; ^ /usr/local/include/wx-2.8/wx/listbox.h:27:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxArrayString; ^ In file included from /usr/local/include/wx-2.8/wx/choice.h:75:0, from /usr/local/include/wx-2.8/wx/wx.h:73, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/gtk/choice.h:13:24: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_BASE wxSortedArrayString; ^ /usr/local/include/wx-2.8/wx/gtk/choice.h:14:24: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_BASE wxArrayString; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:84:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/scrolwin.h:18:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxTimer; ^ In file included from /usr/local/include/wx-2.8/wx/gtk/dirdlg.h:13:0, from /usr/local/include/wx-2.8/wx/dirdlg.h:110, from /usr/local/include/wx-2.8/wx/wx.h:85, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/generic/dirdlgg.h:19:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxTextCtrl; ^ In file included from /usr/local/include/wx-2.8/wx/toolbar.h:67:0, from /usr/local/include/wx-2.8/wx/wx.h:86, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/tbarbase.h:29:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxImage; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:88:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/layout.h:35:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxWindowBase; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:89:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/sizer.h:23:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxButton; ^ /usr/local/include/wx-2.8/wx/sizer.h:788:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxStaticBox; ^ In file included from /usr/local/include/wx-2.8/wx/choicdlg.h:17:0, from /usr/local/include/wx-2.8/wx/wx.h:92, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/generic/choicdgg.h:18:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxListBoxBase; ^ In file included from /usr/local/include/wx-2.8/wx/textdlg.h:15:0, from /usr/local/include/wx-2.8/wx/wx.h:93, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/generic/textdlgg.h:25:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxTextCtrl; ^ In file included from /usr/local/include/wx-2.8/wx/gtk/filedlg.h:13:0, from /usr/local/include/wx-2.8/wx/filedlg.h:210, from /usr/local/include/wx-2.8/wx/wx.h:94, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/generic/filedlgg.h:24:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxBitmapButton; ^ /usr/local/include/wx-2.8/wx/generic/filedlgg.h:25:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxCheckBox; ^ /usr/local/include/wx-2.8/wx/generic/filedlgg.h:26:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxChoice; ^ /usr/local/include/wx-2.8/wx/generic/filedlgg.h:30:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxListEvent; ^ /usr/local/include/wx-2.8/wx/generic/filedlgg.h:31:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxListItem; ^ /usr/local/include/wx-2.8/wx/generic/filedlgg.h:32:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxStaticText; ^ /usr/local/include/wx-2.8/wx/generic/filedlgg.h:33:19: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLEXPORT wxTextCtrl; ^ In file included from ../../gnuplot/src/wxterminal/wxt_gui.h:82:0, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/clipbrd.h:23:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxDataFormat; ^ /usr/local/include/wx-2.8/wx/clipbrd.h:24:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_CORE wxDataObject; ^ In file included from /usr/local/include/wx-2.8/wx/config.h:15:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:97, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/confbase.h:20:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxArrayString; ^ In file included from /usr/local/include/wx-2.8/wx/config.h:28:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:97, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: /usr/local/include/wx-2.8/wx/fileconf.h:97:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxInputStream; ^ /usr/local/include/wx-2.8/wx/fileconf.h:98:28: warning: type attributes ignored after type is already defined [-Wattributes] class WXDLLIMPEXP_FWD_BASE wxOutputStream; ^ In file included from /usr/local/include/wx-2.8/wx/wx.h:25:0, from ../../gnuplot/src/wxterminal/wxt_gui.h:77, from ../../gnuplot/src/wxterminal/wxt_gui.cpp:97: ../../gnuplot/src/wxterminal/wxt_gui.h:241:19: warning: 'wxExitLoopEvent' redeclared without dllimport attribute after being referenced with dll linkage DEFINE_EVENT_TYPE(wxExitLoopEvent) ^ /usr/local/include/wx-2.8/wx/event.h:106:51: note: in definition of macro 'DEFINE_EVENT_TYPE' #define DEFINE_EVENT_TYPE(name) const wxEventType name = wxNewEventType(); ^ ../../gnuplot/src/wxterminal/wxt_gui.h:244:19: warning: 'wxCreateWindowEvent' redeclared without dllimport attribute after being referenced with dll linkage DEFINE_EVENT_TYPE(wxCreateWindowEvent) ^ /usr/local/include/wx-2.8/wx/event.h:106:51: note: in definition of macro 'DEFINE_EVENT_TYPE' #define DEFINE_EVENT_TYPE(name) const wxEventType name = wxNewEventType(); ^ ../../gnuplot/src/wxterminal/wxt_gui.h:248:19: warning: 'wxStatusTextEvent' redeclared without dllimport attribute after being referenced with dll linkage DEFINE_EVENT_TYPE(wxStatusTextEvent) ^ /usr/local/include/wx-2.8/wx/event.h:106:51: note: in definition of macro 'DEFINE_EVENT_TYPE' #define DEFINE_EVENT_TYPE(name) const wxEventType name = wxNewEventType(); ^ ../../gnuplot/src/wxterminal/wxt_gui.cpp: In function 'int wxt_waitforinput(int)': ../../gnuplot/src/wxterminal/wxt_gui.cpp:3710:20: error: 'select' was not declared in this scope timeout ); ^ Makefile:912: recipe for target 'wxterminal/wxt_gui.o' failed make[4]: *** [wxterminal/wxt_gui.o] Error 1 make[4]: Leaving directory '/cygdrive/e/usr/Tatsu/cyg64work/gnuplotcvs/build-release/src' Makefile:955: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/cygdrive/e/usr/Tatsu/cyg64work/gnuplotcvs/build-release/src' Makefile:630: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/cygdrive/e/usr/Tatsu/cyg64work/gnuplotcvs/build-release/src' Makefile:417: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/cygdrive/e/usr/Tatsu/cyg64work/gnuplotcvs/build-release' Makefile:355: recipe for target 'all' failed make: *** [all] Error 2 |
|
From: Tatsuro M. <tma...@ya...> - 2015-05-02 22:39:54
|
----- Original Message ----- > From: Tatsuro MATSUOKA > To: gnuplot-beta > Cc: > Date: 2015/5/3, Sun 07:35 > Subject: Cygwin build fails at in compling wxt_gui.cpp > > Hello > > The cygwin version was bumped up to ver. 2.0.0 recently. >> From the version up, the build of gnuplot on cygwin (32 and 64 bit) fails > at compiling wxt_gui.cpp > > ../../gnuplot/src/wxterminal/wxt_gui.cpp: In function 'int > wxt_waitforinput(int)': > ../../gnuplot/src/wxterminal/wxt_gui.cpp:3710:20: error: 'select' was > not declared in this scope > timeout ); > > Any suggestions? I forgot to mention what source was used. The source used is cvs version (ChangeLog 2015-05-02.) Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2015-05-02 23:02:26
|
----- Original Message ----- > From: Tatsuro MATSUOKA > To: tmacchant3; gnuplot-beta > Cc: > Date: 2015/5/3, Sun 07:39 > Subject: Re: Cygwin build fails at in compling wxt_gui.cpp > > ----- Original Message ----- > >> From: Tatsuro MATSUOKA >> To: gnuplot-beta >> Cc: >> Date: 2015/5/3, Sun 07:35 >> Subject: Cygwin build fails at in compling wxt_gui.cpp >> >> Hello >> >> The cygwin version was bumped up to ver. 2.0.0 recently. >>> From the version up, the build of gnuplot on cygwin (32 and 64 bit) > fails >> at compiling wxt_gui.cpp >> >> ../../gnuplot/src/wxterminal/wxt_gui.cpp: In function 'int >> wxt_waitforinput(int)': >> ../../gnuplot/src/wxterminal/wxt_gui.cpp:3710:20: error: 'select' > was >> not declared in this scope >> timeout ); >> >> Any suggestions? > > > I forgot to mention what source was used. > The source used is cvs version (ChangeLog 2015-05-02.) > The patch below #******************************* --- wxt_gui.orig.h 2014-12-27 08:21:48.000000000 +0900 +++ wxt_gui.h 2015-05-03 07:53:12.766815500 +0900 @@ -201,6 +201,12 @@ * only needed here when using WXGTK * (or at least not needed on Windows) */ # include <signal.h> +/* cygwin*/ +/* According to POSIX.1-2001 */ +#ifdef __CYGWIN__ +#include <sys/select.h> +#endif + } #*********************************** makes the compiling successful. However, select function is used in other places in the gnuplot code. I cannot figure out why the above is required for the current cygwin + wxwidgtes 2.8. Tatsuro |
|
From: sfeam <sf...@us...> - 2015-05-03 17:24:08
|
On Sunday, 03 May 2015 08:02:17 AM Tatsuro MATSUOKA wrote:
> ----- Original Message -----
>
> > From: Tatsuro MATSUOKA
> > To: tmacchant3; gnuplot-beta
> > Cc:
> > Date: 2015/5/3, Sun 07:39
> > Subject: Re: Cygwin build fails at in compling wxt_gui.cpp
> >
> > ----- Original Message -----
> >
> >> From: Tatsuro MATSUOKA
> >> To: gnuplot-beta
> >> Cc:
> >> Date: 2015/5/3, Sun 07:35
> >> Subject: Cygwin build fails at in compling wxt_gui.cpp
> >>
> >> Hello
> >>
> >> The cygwin version was bumped up to ver. 2.0.0 recently.
> >>> From the version up, the build of gnuplot on cygwin (32 and 64 bit)
> > fails
> >> at compiling wxt_gui.cpp
> >>
> >> ../../gnuplot/src/wxterminal/wxt_gui.cpp: In function 'int
> >> wxt_waitforinput(int)':
> >> ../../gnuplot/src/wxterminal/wxt_gui.cpp:3710:20: error: 'select'
> > was
> >> not declared in this scope
> >> timeout );
> >>
> >> Any suggestions?
> >
> >
> > I forgot to mention what source was used.
> > The source used is cvs version (ChangeLog 2015-05-02.)
> >
>
>
>
> The patch below
>
> #*******************************
> --- wxt_gui.orig.h 2014-12-27 08:21:48.000000000 +0900
> +++ wxt_gui.h 2015-05-03 07:53:12.766815500 +0900
> @@ -201,6 +201,12 @@
> * only needed here when using WXGTK
> * (or at least not needed on Windows) */
> # include <signal.h>
> +/* cygwin*/
> +/* According to POSIX.1-2001 */
> +#ifdef __CYGWIN__
> +#include <sys/select.h>
> +#endif
> +
> }
> #***********************************
>
> makes the compiling successful.
> However, select function is used in other places in the gnuplot code.
> I cannot figure out why the above is required for the current cygwin + wxwidgtes 2.8.
>
> Tatsuro
The call to select() is inside a block marked #ifdef WXT_MULTITHREADED
Maybe the new cygwin version now supports multithreading but the older
one did not?
Does the patch fix it also? It seems to me that other platforms in
addition to cygwin also may want this change.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff -urp gnuplot/src/wxterminal/wxt_gui.h gnuplot-cvs/src/wxterminal/wxt_gui.h
--- gnuplot/src/wxterminal/wxt_gui.h 2014-12-26 15:21:48.000000000 -0800
+++ gnuplot-cvs/src/wxterminal/wxt_gui.h 2015-05-03 10:17:01.984135939 -0700
@@ -201,6 +201,12 @@ extern "C" {
* only needed here when using WXGTK
* (or at least not needed on Windows) */
# include <signal.h>
+
+/* Needed for cygwin v2.0.0 and maybe others */
+#if defined(HAVE_SYS_SELECT_H) && defined(WXT_MULTITHREADED)
+#include <sys/select.h>
+#endif
+
}
/* interaction with wxt.trm(wxt_options) : plot number, enhanced state.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ethan
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2015-05-03 18:18:17
|
Am 03.05.2015 um 19:20 schrieb sfeam: > The call to select() is inside a block marked #ifdef WXT_MULTITHREADED > Maybe the new cygwin version now supports multithreading but the older > one did not? Unlikely. The key problem is that the code has completely failed to #include the necessary header for select(). It was only included indirectly, by sheer happenstance. That's a bona fide bug, which just happened not to trigger until now. Now, after a change to the header files of cygwin, it does. I've checked in an improved fix already. |