On 2007-August-14 , at 13:59 , john cliff wrote:
try adding g_ to the strndup call on line 76. should fix it.
it did. should I commit this? is this generic enough?
On 8/14/07, jiho <jo.irisson@...400...> wrote:
I am getting this with latest SVN:
depbase=`echo extension/paramcolor.o | sed 's|[^/]*$|.deps/&|;s|.o $||'`;\ g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include/freetype2 -I/opt/ local/include -D_REENTRANT -DORBIT2=1 -I/opt/local/include/gnome- vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/ gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/ glib-2.0 - I/opt/local/lib/glib-2.0/include -I/opt/local/include -DXTHREADS - I/opt/local/include -I/opt/local/include/freetype2 -I/usr/X11R6/ include -DPNG_NO_MMX_CODE -DXTHREADS -I/opt/local/include/gtk-unix- print-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/atk-1.0 - I/opt/local/include/cairo -I/opt/local/lib/gtk-2.0/include -I/opt/ local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/ lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/ freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include - DPOTRACE="potrace" -DPNG_NO_MMX_CODE -DXTHREADS -D_REENTRANT -I/ opt/ local/include/gdkmm-2.4 -I/opt/local/lib/gdkmm-2.4/include -I/opt/ local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/ local/include/pangomm-1.4 -I/opt/local/include/gtk-2.0 -I/opt/local/ lib/gtk-2.0/include -I/opt/local/include/cairomm-1.0 -I/opt/local/ include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/ include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/ include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/ opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/ X11R6/include -I/opt/local/include/gtkmm-2.4 -I/opt/local/lib/ gtkmm-2.4/include -I/opt/local/include/atkmm-1.6 -I/opt/local/ include/ atk-1.0 -I/opt/local/include/libxml2 -I../cxxtest -I/opt/local/ include -Wall -Wformat-security -W -Wpointer-arith -Wcast-align - Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno- unused-parameter -O3 -Wall -MT extension/paramcolor.o -MD -MP -MF $depbase.Tpo -c -o extension/paramcolor.o extension/paramcolor.cpp &&\ mv -f $depbase.Tpo $depbase.Po extension/paramcolor.h:26: warning: unused parameter 'doc' extension/paramcolor.h:26: warning: unused parameter 'node' extension/paramcolor.cpp:43: warning: unused parameter 'doc' extension/paramcolor.cpp:43: warning: unused parameter 'node'
>>>>>>>>>>>
extension/paramcolor.cpp: In constructor 'Inkscape::Extension::ParamColor::ParamColor(const gchar*, const gchar*, const gchar*, Inkscape::Extension::Parameter::_scope_t, Inkscape::Extension::Extension*, Inkscape::XML::Node*)': extension/paramcolor.cpp:76: error: 'strndup' was not declared in this scope extension/paramcolor.cpp: At global scope:
>>>>>>>>>>>
extension/paramcolor.cpp:109: warning: unused parameter 'doc' extension/paramcolor.cpp:109: warning: unused parameter 'node' extension/paramcolor.cpp: In function 'void Inkscape::Extension::sp_color_param_changed(SPColorSelector*, GObject*)': extension/paramcolor.cpp:139: warning: unused variable 'rgba' make[2]: *** [extension/paramcolor.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
JiHO
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
JiHO --- http://jo.irisson.free.fr/