Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librrd autotools issue @ fbsd #60

Closed
AdUser opened this issue Mar 14, 2017 · 1 comment
Closed

librrd autotools issue @ fbsd #60

AdUser opened this issue Mar 14, 2017 · 1 comment

Comments

@AdUser
Copy link

AdUser commented Mar 14, 2017

$ ./configure --disable-compat15 --disable-nsel --disable-fixtimebug \
  --disable-nfprofile --disable-nftrack --disable-readpcap --disable-sflow \
  --prefix=/usr/local
<...>
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for rrd_update in -lrrd... no
configure: error: Can not link librrd. Please specify --with-rrdpath=.. configure failed!

As i can see in configure.ac, librrd required either by --enable-nfprofile or --enable-nftrack . In this case both options are disabled, but librrd checks still called.

There is a ugly patch from ports tree, showing the source of problem. BUT it works with generated configure, so may break periodically after autotools update:

--- configure      2014-08-10 13:37:42.000000000 +0200
+++ configure   2014-08-10 13:39:21.000000000 +0200
@@ -4975,7 +4975,7 @@


 # Check whether --enable-nfprofile was given.
-if test "${enable_nfprofile+set}" = set; then :
+if test "x${enable_nfprofile}" = xyes; then :
   enableval=$enable_nfprofile;
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update in -lrrd" >&5
 $as_echo_n "checking for rrd_update in -lrrd... " >&6; }
@@ -5099,7 +5099,7 @@


 # Check whether --enable-nftrack was given.
-if test "${enable_nftrack+set}" = set; then :
+if test "x${enable_nftrack}" = xyes; then :
   enableval=$enable_nftrack;
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update in -lrrd" >&5
 $as_echo_n "checking for rrd_update in -lrrd... " >&6; }
@phaag
Copy link
Owner

phaag commented Dec 21, 2017

configure is no longer part of the archive and generated automatically when running bootstrap.
This should fix the problem

@phaag phaag closed this as completed Dec 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants