Could not compile wmfire since 12.1

Here’s the error:

  120s] gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmfire\" -DVERSION=\"1.2.3\" -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRSTR=1 -I. -I/usr/X11R6/include -I/usr/local/include    -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14   -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -MT wmfire.o -MD -MP -MF .deps/wmfire.Tpo -c -o wmfire.o wmfire.c
  124s] mv -f .deps/wmfire.Tpo .deps/wmfire.Po
  124s] gcc  -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14   -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -o wmfire wmfire.o  -lXext -lX11   -lgdk-x11-2.0  -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lgtop-2.0 -lglib-2.0  
  124s] /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: wmfire.o: undefined reference to symbol 'sincos@@GLIBC_2.1'
  124s] /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'sincos@@GLIBC_2.1' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
  124s] /lib/libm.so.6: could not read symbols: Invalid operation
  124s] collect2: error: ld returned 1 exit status
  124s] make[1]: *** [wmfire] Error 1

https://build.opensuse.org/package/show?package=wmfire&project=home%3Aplease_try_again

On Fri, 07 Sep 2012 05:26:02 GMT please try again wrote:

> 124s] /usr/lib/gcc/i586-suse-linux/4.7/…/…/…/…/i586-suse-linux/bin/ld:
> wmfire.o: undefined reference to symbol
> ‘sincos@@GLIBC_2.1’ 124s] /usr/lib/gcc/i586-suse-linux/4.7/…/…/…/…/i586-suse-linux/bin/ld:
> note: ‘sincos@@GLIBC_2.1’ is defined in DSO /lib/libm.so.6 so try
> adding it to the linker command line

Add ‘-lm’ to ‘LIBS=…’ in the patch.

Absolutely! That also fixed the other builds. Thanks a lot. I guess I’ll send you some candy bars.
:slight_smile: