gentoo / dotnet

[MIRROR] Newer mono, .NET languages, and libraries
https://gitweb.gentoo.org/repo/proj/dotnet.git
78 stars 56 forks source link

dev-dotnet/gtk-sharp-2.99.3-r1 fails to compile #505

Open Bigun opened 3 years ago

Bigun commented 3 years ago

gui-thread-check.c:90:1: warning: no previous prototype for 'mono_profiler_startup' [-Wmissing-prototypes] 90 | mono_profiler_startup (const char *desc) | ^~~~~ gui-thread-check.c: In function 'mono_profiler_startup': gui-thread-check.c:94:2: warning: implicit declaration of function 'mono_profiler_install'; did you mean 'mono_profiler_startup'? [-Wimplicit-function-declaration] 94 | mono_profiler_install (NULL, NULL); | ^~~~~ | mono_profiler_startup gui-thread-check.c:94:2: warning: nested extern declaration of 'mono_profiler_install' [-Wnested-externs] gui-thread-check.c:95:2: warning: implicit declaration of function 'mono_profiler_install_enter_leave' [-Wimplicit-function-declaration] 95 | mono_profiler_install_enter_leave (simple_method_enter, NULL); | ^~~~~~~~~ gui-thread-check.c:95:2: warning: nested extern declaration of 'mono_profiler_install_enter_leave' [-Wnested-externs] gui-thread-check.c:96:2: warning: implicit declaration of function 'mono_profiler_set_events'; did you mean 'mono_profiler_startup'? [-Wimplicit-function-declaration] 96 | mono_profiler_set_events (MONO_PROFILE_ENTER_LEAVE); | ^~~~~~~~ | mono_profiler_startup gui-thread-check.c:96:2: warning: nested extern declaration of 'mono_profiler_set_events' [-Wnested-externs] gui-thread-check.c:96:28: error: 'MONO_PROFILE_ENTER_LEAVE' undeclared (first use in this function) 96 | mono_profiler_set_events (MONO_PROFILE_ENTER_LEAVE); | ^~~~~~~~ gui-thread-check.c:96:28: note: each undeclared identifier is reported only once for each function it appears in make[4]: [Makefile:472: gui-thread-check.lo] Error 1 make[4]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.99.3-r1/work/gtk-sharp-2.99.3/gtk/gui-thread-check/profiler' make[3]: [Makefile:389: all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.99.3-r1/work/gtk-sharp-2.99.3/gtk/gui-thread-check' make[2]: [Makefile:605: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.99.3-r1/work/gtk-sharp-2.99.3/gtk' make[1]: [Makefile:451: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-dotnet/gtk-sharp-2.99.3-r1/work/gtk-sharp-2.99.3' make: *** [Makefile:379: all] Error 2

Looks like it's been addressed already in the mono/gtk-sharp hub, the e-build just needs to be updated, see below:

https://github.com/mono/gtk-sharp/commit/c1b9bd4214b78dc426bc6e6a07c23a8ab4ab50ea