Source: captagent Version: 6.1.0.20-3 Severity: serious Tags: buster sid https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/captagent.html
... checking whether make sets $(MAKE)... (cached) yes checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking for pthread_create in -lpthread... yes checking for dlopen in -ldl... yes checking for XML_ParserCreate in -lexpat... yes checking for pcap_open_live in -lpcap... yes checking for json_object_get in -ljson... no checking for json_object_get in -ljson-c... yes checking for yywrap in -lfl... no configure: error: captagent requires but cannot find libfl Fix attached.
Description: AC_CHECK_LIB(fl, yywrap) doesn't work with shared libfl Author: Adrian Bunk <[email protected]> --- captagent-6.1.0.20.orig/configure.ac +++ captagent-6.1.0.20/configure.ac @@ -153,6 +153,10 @@ AC_PROG_LEX if test "$LEX" != "flex"; then AC_MSG_ERROR([flex not found. Please install flex]) fi +if test "x$LEXLIB" = "x"; then + AC_MSG_ERROR([captagent requires but cannot find libfl]) +fi + if test -z "`echo %%|$LEX -t|grep yypop_buffer_state`"; then AC_MSG_ERROR([flex missing yypop_buffer_state - upgrade to version 2.5.33 or later]) @@ -181,8 +185,6 @@ echo " If it is in a different di echo " the LDFLAGS to set its proper path."; AC_MSG_ERROR([Fatal: libjson not found.])])]) -AC_CHECK_LIB(fl, yywrap, [ FLEX_LIBS="-lfl" ] , [AC_MSG_ERROR([captagent requires but cannot find libfl])]) - AC_SUBST(PTHREAD_LIBS) AC_SUBST(DL_LIBS) AC_SUBST(EXPAT_LIBS) --- captagent-6.1.0.20.orig/src/Makefile.am +++ captagent-6.1.0.20/src/Makefile.am @@ -19,6 +19,6 @@ AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdi BUILT_SOURCES = capplan.tab.h noinst_HEADERS = md5.h captagent.h conf_function.h captagent_SOURCES = captagent.c conf_function.c log.c md5.c modules.c xmlread.c capplan.l capplan.tab.y -captagent_LDADD = ${PTHREAD_LIBS} ${EXPAT_LIBS} ${DL_LIBS} ${FLEX_LIBS} +captagent_LDADD = ${PTHREAD_LIBS} ${EXPAT_LIBS} ${DL_LIBS} ${LEXLIB} captagentconfdir = $(sysconfdir)/$(bin_PROGRAMS) captagentconf_DATA = $(top_srcdir)/conf/$(bin_PROGRAMS).xml

