Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220859 - [gcc 4.3] x11-misc/gmrun-0.9.2 fails to compile
Summary: [gcc 4.3] x11-misc/gmrun-0.9.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 07:08 UTC by Markus Rothe (RETIRED)
Modified: 2008-06-07 10:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gmrun gcc 4.3 patch (gmrun-0.9.2-gcc43.patch,1.11 KB, patch)
2008-05-08 07:10 UTC, Markus Rothe (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2008-05-08 07:08:23 UTC
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.
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2008-05-08 07:10:34 UTC
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. ^^
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-06-07 10:29:04 UTC
Applied, thanks.