On 07/16/2016 04:48 PM, John Stoffel wrote:
John> So what if you just putt the following into the src/Makefile.am file:
John> AM_LDFLAGS = \ John> -lm
John> I put it after the AM_CPPFLAGS definition up top. Seemed to do what I John> needed, but I haven't setup an Ubuntu 16.04 test VM yet to confirm.
So I spun up a droplet on Digital Oceon running Ubuntu 16.04 and with the above change, and the following steps, I got it to compile....
# apt-get update # apt-get install gcc libhamlib-dev make libgtk-dev libgtkextra-dev libglib2.0-dev libgtk2.0-dev # wget http://download.savannah.gnu.org/releases/xlog/xlog-2.0.14beta.tar.gz # tar xzf xlog-2.0.14beta.tar.gz # cd xlog-2.0.14beta/ # vi src/Makefile.am
- added in AM_LDFLAGS = -lm
# ./configure # make
and it did it. I'd like to say I'm really impressed at how there are NO compile warnings at all. Nice clean coding!
But if you could get more detailed error messages from those reporting problems compiling, that would be a big help as well.
Thanks, John
HI John, When I took over this code base, I attacked the compile warnings. I recall also passing a switch that says "warnings are errors", in order to keep the code clean. Regargind "AM_LDFLAGS -lm", I'd swear I did that and it didn't work for me, so I tried again. After adding AM_LDFLAGS to Makefile.am, I assume you ran automake or perhaps "automake -a". I tried it on my Ubuntu 16.04 and it did not work. It seems like your solution is the right one. Let me try blowing away my Ubuntu 16.04 in Virtualbox, in case something was corrupted, and I'll repeat the steps you listed above on a pristine Ubuntu 16.04. I'll let you know my result. Thanks!! Andy
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-- Andy Stewart (KB1OIQ) Founder: Worcester Linux Users' Group Founder: Chelmsford Linux Meetup Group President: PART of Westford, MA (WB1GOF)