Re: [rrd-developers] Compile failure due to libwrap on Ubuntu 11.10
Hi Alex, Today Alex Bennee wrote: On 16 December 2011 16:35, Tobias Oetiker t...@oetiker.ch wrote: Hi Alex, see r2241,r2242 I have modified the configure script to use standard techniques to deal with libwrap, ev this helps ... I'm afraid not in my case. But it's not the autoconf logic that's failing, it's the libtool call. If you look at the .la file it's correct: 15:52 ajb@sloy/x86_64 [rrdtool.git-svn] grep wrap src/librrd_th.la dependency_libs=' -lpthread /usr/lib/libxml2.la -lm -lwrap /usr/lib/libdbi.la -ldl -lpng12 -lpangocairo-1.0 -lpango-1.0 /usr/lib/x86_64-linux-gnu/libcairo.la -lgobject-2.0 -lglib-2.0' It just never makes it to the final CC invocation. In fact without the attached patch I see a failure in eval while running configure: Test Library Functions checking for acos... no checking for acos in -lm... yes checking for round... yes ./configure: eval: line 13465: unexpected EOF while looking for matching `' ./configure: eval: line 13466: syntax error: unexpected end of file The code looks like: eval `./libtool --config | grep pic_flag` CFLAGS=$CFLAGS $pic_flag ok, applied your patch ... what did ./libtool --config | grep pic_flag return on your system? also, what does configure report once it has run through. cheers tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900 ___ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
Re: [rrd-developers] Compile failure due to libwrap on Ubuntu 11.10
On 19 December 2011 16:04, Tobias Oetiker t...@oetiker.ch wrote: Today Alex Bennee wrote: In fact without the attached patch I see a failure in eval while running configure: Test Library Functions checking for acos... no checking for acos in -lm... yes checking for round... yes ./configure: eval: line 13465: unexpected EOF while looking for matching `' ./configure: eval: line 13466: syntax error: unexpected end of file The code looks like: eval `./libtool --config | grep pic_flag` CFLAGS=$CFLAGS $pic_flag ok, applied your patch ... what did ./libtool --config | grep pic_flag return on your system? It's in the patch. I get: 16:07 ajb@sloy/x86_64 [rrdtool.git-svn] ./libtool --config | grep pic_flag pic_flag= -fPIC -DPIC archive_cmds=\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib also, what does configure report once it has run through. Config is DONE! With MMAP IO: yes Build rrd_getopt: no Build rrd_graph: yes Static programs: no Perl Modules: perl_piped perl_shared Perl Binary: /usr/bin/perl Perl Version: 5.12.4 Perl Options: PREFIX=/opt/rrdtool-1.4.999 LIB=/opt/rrdtool-1.4.999/lib/perl/5.12.4 Ruby Modules: ruby Ruby Binary: /usr/bin/ruby Ruby Options: sitedir=/opt/rrdtool-1.4.999/lib/ruby Build Lua Bindings: yes Lua Binary: /usr/bin/lua Lua Version: 5.1.4 Lua C-modules dir: /opt/rrdtool-1.4.999/lib/lua/5.1 Build Tcl Bindings: yes Build Python Bindings: yes Build rrdcgi: yes Build librrd MT: yes Use gettext: yes With libDBI: yes With libwrap: yes Libraries: -lxml2 -lglib-2.0 -lcairo -lcairo -lcairo -lm -lwrap -ldbi -ldl -lcairo -lpng12 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 On a side note, are you IRC anywhere at the moment? We might get faster back and forth, although you currently have my attention for at least the next 2 hours ;-) -- Alex, homepage: http://www.bennee.com/~alex/ http://www.half-llama.co.uk ___ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
Re: [rrd-developers] Compile failure due to libwrap on Ubuntu 11.10
Hi Alex, Today Alex Bennee wrote: Config is DONE! With MMAP IO: yes Build rrd_getopt: no Build rrd_graph: yes Static programs: no Perl Modules: perl_piped perl_shared Perl Binary: /usr/bin/perl Perl Version: 5.12.4 Perl Options: PREFIX=/opt/rrdtool-1.4.999 LIB=/opt/rrdtool-1.4.999/lib/perl/5.12.4 Ruby Modules: ruby Ruby Binary: /usr/bin/ruby Ruby Options: sitedir=/opt/rrdtool-1.4.999/lib/ruby Build Lua Bindings: yes Lua Binary: /usr/bin/lua Lua Version: 5.1.4 Lua C-modules dir: /opt/rrdtool-1.4.999/lib/lua/5.1 Build Tcl Bindings: yes Build Python Bindings: yes Build rrdcgi: yes Build librrd MT: yes Use gettext: yes With libDBI: yes With libwrap: yes Libraries: -lxml2 -lglib-2.0 -lcairo -lcairo -lcairo -lm -lwrap -ldbi -ldl -lcairo -lpng12 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 On a side note, are you IRC anywhere at the moment? We might get faster back and forth, although you currently have my attention for at least the next 2 hours ;-) so the libraries look good ... I don't see at the moment how -lwrap could get removed from that string again ... very odd ... cheers tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900 ___ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
Re: [rrd-developers] Compile failure due to libwrap on Ubuntu 11.10
Alex, your system seems to be using a different version of libtool ... so did you run MakeMakefile ? cheers tobi Today Alex Bennee wrote: On 19 December 2011 16:19, Tobias Oetiker t...@oetiker.ch wrote: Hi Alex, snip so the libraries look good ... I don't see at the moment how -lwrap could get removed from that string again ... very odd ... cheers tobi I've just diffed the generated libtool from the 1.4.3 Debian packages and the current source. There seem to be a lot of non-obvious differences. Could you compare the attached libtool (from my trunk build) with yours? -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900 ___ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
Re: [rrd-developers] Compile failure due to libwrap on Ubuntu 11.10
On 19 December 2011 17:00, Tobias Oetiker t...@oetiker.ch wrote: Alex, your system seems to be using a different version of libtool ... so did you run MakeMakefile ? No, isn't that part of the configure/autogen stuff? Regardless running it now makes no difference. The libtool on this system is: 17:09 ajb@sloy/x86_64 [rrdtool.git-svn] dpkg --status libtool Package: libtool snip Version: 2.4-2ubuntu1 Although obviously the 1.4.3 package (pre-libwrap) stuff builds fine under this setup. I'm a little unclear as to where the libtool script comes from. Is it all driven from autoconf magic in the rrd distribution or also influenced by the system software installed? The resulting libtool script between 1.4.3 and trunk seem quite big despite the relatively few tweaks to configure.ac. Is there anything else that influences how libtool gets built? -- Alex, homepage: http://www.bennee.com/~alex/ http://www.half-llama.co.uk ___ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers