./.libs/libgladeui-2.so: error: undefined reference to 'floor'
@mcatanzaro
Submitted by Michael Catanzaro Link to original bug (#734323)
Description
I'm trying to build glade with jhbuild on Fedora 20. I think you need to pass -lm to the linker to pull in the math library.
CCLD libgladeui-2.la
CCLD glade-previewer
GISCAN Gladeui-2.0.gir
./.libs/libgladeui-2.so: error: undefined reference to 'floor'
./.libs/libgladeui-2.so: error: undefined reference to 'ceil'
collect2: error: ld returned 1 exit status
make[3]: *** [glade-previewer] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/libgladeui-2.so: error: undefined reference to 'floor'
./.libs/libgladeui-2.so: error: undefined reference to 'ceil'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'cc', '-o', '/home/mcatanzaro/jhbuild/checkout/glade/gladeui/tmp-introspectrQuGxW/Gladeui-2.0', '-export-dynamic', '-L/home/mcatanzaro/jhbuild/install/lib', '/home/mcatanzaro/jhbuild/checkout/glade/gladeui/tmp-introspectrQuGxW/Gladeui-2.0.o', '-L.', 'libgladeui-2.la', '-L/home/mcatanzaro/jhbuild/install/lib', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lgtk-3', '-lgdk-3', '-lpangocairo-1.0', '-lpango-1.0', '-latk-1.0', '-lcairo-gobject', '-lcairo', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0']' returned non-zero exit status 1
make[3]: *** [Gladeui-2.0.gir] Error 1
make[3]: Leaving directory /home/mcatanzaro/jhbuild/checkout/glade/gladeui' make[2]: *** [all] Error 2 make[2]: Leaving directory
/home/mcatanzaro/jhbuild/checkout/glade/gladeui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mcatanzaro/jhbuild/checkout/glade'
make: *** [all] Error 2