"Andy" == Andy Stewart <kb1oiq@mval.net> writes:
Andy> I have received a few reports indicating that xlog will not Andy> compile without error from the source tarball. Since I'm the Andy> xlog maintainer, I get to fix it, but so far, I've been Andy> unsuccessful. Andy> The error looks like this, and I've easily reproduced it on Ubuntu 16.04 Andy> LTS: Andy> /usr/bin/ld: gui_gtkprintdialog.o: undefined reference to symbol Andy> 'trunc@@GLIBC_2.2.5' Andy> //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from Andy> command line Andy> I've traced this to recently modified behavior of gcc, where all Andy> libraries needed to properly link the executable must be Andy> included on the command line. In this case, "-lm" is not Andy> explicitly on the command line, and thus the error. Interesting. Have you been running 'autoreconf -force' after each time you make a change, esp in the .ac and .am files? I've found that sometimes it doesn't quite do what I expect. Andy> I have succeeded in making it work in this way, but it is just a workaround: Andy> ./configure LIBS="-lm" Andy> make Andy> make install Andy> It seems that automake 1.15 is needed to help get around this issue, and Andy> that version is part of Ubuntu 16.04. Andy> However, I'm stuck, trying to figure out the "right way" to fix this. Andy> I've googled for a couple of hours, trying to figure out what needs to Andy> go into configure.ac and/or Makefile.am, to no avail. Andy> I tried this in configure.ac: LT_LIB_M Andy> (nope) Andy> I tried this in Makefile.am: LIBS=-lm Andy> (nope) Andy> I also tried this in Makefile.am: LDFLAGS = -lm Andy> (nope) Andy> In each case, I reran autoconf, automake, and then ./configure, but the Andy> linker error persists. Andy> I must be missing something easy. Any helpful hints would surely be Andy> appreciated. Do you have git repository with this available so I can try playing with it at as well? I spent some time on getting autoconf working with duc (http://github.com/zevv/duc) so I might be able to help. John