GNOME Bugzilla – Bug 604904
Failure to build on OpenSolaris
Last modified: 2009-12-18 17:57:48 UTC
gnome-commander 1.2.8.4 fails to build on OpenSolaris as NAME_MAX is not defined. The patch belows works for me. --- /usr/tmp/gnome-commander-1.2.8.4/src/gnome-cmd-advrename-lexer.h 2009-10-20 22:13:42.000000000 +0100 +++ src/gnome-cmd-advrename-lexer.h 2009-12-18 12:17:23.843242000 +0000 @@ -23,6 +23,10 @@ #include "gnome-cmd-file.h" +#ifndef NAME_MAX +#define NAME_MAX (FILENAME_MAX) +#endif + void gnome_cmd_advrename_reset_counter(long start=1, int precision=-1, int step=1); void gnome_cmd_advrename_parse_template(const char *template_string, gboolean &has_counters); char *gnome_cmd_advrename_gen_fname(GnomeCmdFile *f, size_t new_fname_size=NAME_MAX);
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.