Closed jeandestouches closed 1 year ago
It would be great to get a patch. Because it's way too hard to reproduce the environment for me at the moment.
After asking for help on gentoo forums, it turns out the error is caused by a change in musl 1.2.3 : https://bugs.gentoo.org/839975 A simple fix was to replace the NULL value to 0 :
index 02eca42..323d5db 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -163,7 +163,7 @@ MainWindow::MainWindow()
closure = g_cclosure_new(G_CALLBACK(keys[key].func), (gpointer)this, NULL);
gtk_accel_group_connect(accelerators, keys[key].key,
(GdkModifierType)keys[key].modifier,
- (GtkAccelFlags)NULL, closure);
+ (GtkAccelFlags)0, closure);
g_closure_unref(closure);
}
This is not needed if compiled with glibc obviously, although it still compiles without error using glibc with the small change applied. I just tried just in case. Thanks for reading.
Hi, I'm trying to build gsimplecal 2.4.1 on gentoo musl (with glibc, it compiles fine) but it fails with this error :
MainWindow.cpp:166:33: error: invalid cast from type 'std::nullptr_t' to type 'GtkAccelFlags'
system is x86-64, musl version 1.2.3, gcc 12.2.1
Full build log :
It would be great to be able to compile gsimplecal with musl for a lightweight calendar on a minimal X system. The only alternative being orage, but it is quite old and deprecated by gentoo.
Thanks!