GNOME Bugzilla – Bug 722325
Should build with -lm
Last modified: 2018-03-26 15:34:05 UTC
glade 3.16.1 fails to build on Ubuntu builders https://launchpadlibrarian.net/162624761/buildlog_ubuntu-trusty-amd64.glade_3.16.1-0ubuntu1_FAILEDTOBUILD.txt.gz The issue is that libm functions are used but -lm is not used ".libs/libgladeui_2_la-glade-editor-property.o: In function `glade_eprop_numeric_value_set': /build/buildd/glade-3.16.1/gladeui/glade-editor-property.c:773: undefined reference to `floor' ..."
Created attachment 266443 [details] [review] that change fixes the build issue
Review of attachment 266443 [details] [review]: ::: gladeui/Makefile.am @@ +145,2 @@ libgladeui_2_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS) +libgladeui_2_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS) -lm Not sure this works on Windows, as standalone math library is a Linux thing: See http://mesonbuild.com/howtox.html#add-math-library-lm-portably
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/147.