Source: mccs
Version: 1:1.1-6
Severity: serious
Tags: patch

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/mccs.html

...
g++ -Wall -O6 -Wl,-z,relro  -DUSELPSOLVE -o mccs objs/cudf.o 
objs/constraint_generation.o objs/lp_solver.o objs/pblib_solver.o 
objs/removed_criteria.o objs/changed_criteria.o objs/new_criteria.o 
objs/notuptodate_criteria.o objs/nunsat_criteria.o objs/count_criteria.o 
objs/unaligned_criteria.o objs/lexicographic_combiner.o 
objs/lexagregate_combiner.o objs/agregate_combiner.o 
objs/lexsemiagregate_combiner.o objs/leximin_combiner.o objs/leximax_combiner.o 
objs/lexleximin_combiner.o objs/lexleximax_combiner.o objs/cudf_reductions.o 
objs/lpsolve_solver.o -lfl -L. -lccudf \
         \
         \
        -L/usr/lib -llpsolve55 -ldl -lcolamd \
        
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libfl.so: undefined 
reference to `yylex'
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:55: mccs] Error 1


Fix is attached.
Description: Remove unused linking with libfl
 Due to the yylex requirement this caused FTBFS
 when a shared libfl is provided.
Author: Adrian Bunk <b...@debian.org>

--- mccs-1.1.orig/makefile
+++ mccs-1.1/makefile
@@ -52,7 +52,7 @@ endif
 
 # to make mccs solver
 mccs:  $(OBJS) libccudf.a
-       $(CCC) -o mccs $(OBJS) -lfl -L. -lccudf \
+       $(CCC) -o mccs $(OBJS) -L. -lccudf \
                $(CPXLD) \
                $(GUROBILD) \
                $(LPSOLVELD) \
@@ -60,7 +60,7 @@ mccs:  $(OBJS) libccudf.a
 
 # to make a light version of mccs solver which does not include libccudf
 mccs-light:  $(OBJS) libccudf.so
-       $(CCC) -o mccs $(OBJS) -lfl -L. -lccudf -Wl,-rpath,$(PWD) \
+       $(CCC) -o mccs $(OBJS) -L. -lccudf -Wl,-rpath,$(PWD) \
                $(CPXLD) \
                $(GUROBILD) \
                $(LPSOLVELD) \
@@ -68,7 +68,7 @@ mccs-light:  $(OBJS) libccudf.so
 
 # to make a static version of mccs solver (cannot be done with Gurobi: no 
static library)
 mccs-static: $(OBJS) libccudf.a
-       $(CCC) -o mccs -static $(OBJS) -lfl -L. -lccudf \
+       $(CCC) -o mccs -static $(OBJS) -L. -lccudf \
                $(CPXLD) \
                $(LPSOLVELD) \
                $(GLPKLD) \

Reply via email to