The attached patch fixes the following errors when compiling gmrun 0.9.2 with gcc 4.3.0: In file included from prefs.h:16, from history.cc:22: ci_string.h: In static member function 'static int ci_char_traits::compare(const char*, const char*, size_t)': ci_string.h:29: error: '::strncasecmp' has not been declared gtkcompletionline.cc: In function 'guint gtk_completion_line_get_type()': gtkcompletionline.cc:93: warning: deprecated conversion from string constant to 'gchar*' gtkcompletionline.cc: In function 'void gtk_completion_line_last_history_item(GtkCompletionLine*)': gtkcompletionline.cc:219: error: 'strlen' was not declared in this scope gtkcompletionline.cc: In function 'int select_executables_only(const dirent*)': gtkcompletionline.cc:355: error: 'strlen' was not declared in this scope gtkcompletionline.cc:373: error: 'strncmp' was not declared in this scope gtkcompletionline.cc: In function 'int my_alphasort(const void*, const void*)': gtkcompletionline.cc:386: error: 'strlen' was not declared in this scope gtkcompletionline.cc:388: error: 'strcmp' was not declared in this scope gtkcompletionline.cc:393: error: 'strncmp' was not declared in this scope gtkcompletionline.cc:396: error: 'strncmp' was not declared in this scope gtkcompletionline.cc: In function 'int generate_dirlist(const char*)': gtkcompletionline.cc:484: error: 'strdup' was not declared in this scope gtkcompletionline.cc: In function 'int search_back_history(GtkCompletionLine*, bool, bool)': gtkcompletionline.cc:819: error: 'strcmp' was not declared in this scope gtkcompletionline.cc: In function 'int search_forward_history(GtkCompletionLine*, bool, bool)': gtkcompletionline.cc:862: error: 'strcmp' was not declared in this scope main.cc: In function 'void run_with_system(const std::string&, gigi*)': main.cc:131: error: 'strerror' was not declared in this scope main.cc: In function 'void run_the_command(const std::string&, gigi*)': main.cc:219: error: 'memcpy' was not declared in this scope main.cc:249: error: 'strerror' was not declared in this scope main.cc: In function 'int main(int, char**)': main.cc:649: error: 'strcmp' was not declared in this scope prefs.cc: In constructor ‘Prefs::Prefs()’: prefs.cc:37: error: ‘getenv’ was not declared in this scope Please add the patch to portage if appropriate.
Created attachment 152423 [details, diff] gmrun gcc 4.3 patch add some includes. the source isn't perfect at all. it includes stdio.h instead of cstdio in cpp files etc. Unfortunately it just works, so I won't fix it. ^^
Applied, thanks.