[rrd-developers] Compile failure due to libwrap on Ubuntu 11.10
Tobias Oetiker
tobi at oetiker.ch
Fri Dec 16 17:35:11 CET 2011
Hi Alex,
see r2241,r2242 I have modified the configure script to use standard
techniques to deal with libwrap, ev this helps ...
cheers
tobi
Today Alex Bennee wrote:
> On 16 December 2011 13:26, Tobias Oetiker <tobi at oetiker.ch> wrote:
> > Hi Alex,
> >
> > ah ... I found something ... try changeing
> >
> > include "tcpd.h"
> >
> > into
> >
> > include <tcpd.h>
> >
> > in the configure script
> > and run it again.
>
> I'm afraid not:
>
> make V=1
> ...
> make[2]: Entering directory `/export/csrc/packages/rrdtool/rrdtool.git-svn/src'
> /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -D_GNU_SOURCE
> -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow
> -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -Winline
> -Wold-style-definition -W -fPIC -DPIC -g -O2 -D_GNU_SOURCE
> -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow
> -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -Winline
> -Wold-style-definition -W -fPIC -DPIC -o rrdcached
> rrdcached-rrd_daemon.o librrd_th.la
> libtool: link: gcc -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall
> -std=gnu99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
> -Wold-style-definition -W -fPIC -DPIC -g -O2 -D_GNU_SOURCE
> -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow
> -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -Winline
> -Wold-style-definition -W -fPIC -DPIC -o .libs/rrdcached
> rrdcached-rrd_daemon.o ./.libs/librrd_th.so -pthread -Wl,-rpath
> -Wl,/opt/rrdtool-1.6.0/lib
> rrdcached-rrd_daemon.o: In function `connection_thread_main':
> /export/csrc/packages/rrdtool/rrdtool.git-svn/src/rrd_daemon.c:2657:
> undefined reference to `request_init'
> /export/csrc/packages/rrdtool/rrdtool.git-svn/src/rrd_daemon.c:2658:
> undefined reference to `sock_host'
> /export/csrc/packages/rrdtool/rrdtool.git-svn/src/rrd_daemon.c:2659:
> undefined reference to `hosts_access'
> /export/csrc/packages/rrdtool/rrdtool.git-svn/src/rrd_daemon.c:2660:
> undefined reference to `eval_client'
> /export/csrc/packages/rrdtool/rrdtool.git-svn/src/rrd_daemon.c:2660:
> undefined reference to `eval_client'
> collect2: ld returned 1 exit status
> make[2]: *** [rrdcached] Error 1
> make[2]: Leaving directory `/export/csrc/packages/rrdtool/rrdtool.git-svn/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/export/csrc/packages/rrdtool/rrdtool.git-svn'
> make: *** [all] Error 2
>
> What is odd is the link flags are there in the .la file:
>
> 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'
>
> But somehow the libtool script drops them. Unfortunately it's a mess
> of bash which is hard to follow.
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-developers
mailing list