Source: gradm2
Version: 3.1~201701031918-2
Severity: serious
Tags: patch buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/gradm2.html

...
/usr/bin/gcc -O2 -fPIC -fPIE -Wcast-qual -DGRSEC_DIR=\"/etc/grsec2\" 
-D_LARGEFILE64_SOURCE -o gradm2 gradm.tab.o lex.gradm.o learn_pass1.tab.o 
learn_pass2.tab.o fulllearn_pass1.tab.o fulllearn_pass2.tab.o 
fulllearn_pass3.tab.o gradm_misc.o gradm_parse.o gradm_arg.o gradm_pw.o 
gradm_opt.o gradm_cap.o gradm_sha256.o gradm_adm.o gradm_analyze.o gradm_res.o 
gradm_human.o gradm_learn.o gradm_net.o gradm_nest.o gradm_pax.o gradm_sym.o 
gradm_newlearn.o gradm_fulllearn.o gradm_lib.o lex.fulllearn_pass1.o 
lex.fulllearn_pass2.o lex.fulllearn_pass3.o lex.learn_pass1.o lex.learn_pass2.o 
grlearn_config.tab.o lex.grlearn_config.o gradm_globals.o gradm_replace.o -lfl 
-Wl,-z,relro -Wl,-z,now -pie
/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libfl.so: undefined 
reference to `yylex'
collect2: error: ld returned 1 exit status
Makefile:61: recipe for target 'gradm2' failed
make[1]: *** [gradm2] Error 1


Fix is attached, with the fix the libfl-dev build dependency
can also be removed.
Description: Stop unnecessary -lfl linking which FTBFS with shared libfl
Author: Adrian Bunk <b...@debian.org>

--- gradm2-3.1~201701031918.orig/Makefile
+++ gradm2-3.1~201701031918/Makefile
@@ -29,7 +29,7 @@ STRIP=/usr/bin/strip
 else
 STRIP=/bin/true
 endif
-LIBS := $(shell if [ "`uname -m`" != "sparc64" -a "`uname -m`" != "x86_64" ]; 
then echo "-lfl" ; else echo "" ; fi)
+LIBS := 
 OPT_FLAGS := -O2 -fPIC
 # for older versions of grsecurity, comment the above line and uncomment the 
below:
 #OPT_FLAGS := $(shell if [ "`uname -m`" != "sparc64" ] && [ "`uname -m`" != 
"x86_64" ]; then echo "-O2" ; else echo "-O2 -m64" ; fi)

Reply via email to