[Debian-med-packaging] Bug#891529: acedb FTBFS with flex 2.6.4-6

Adrian Bunk bunk at debian.org
Mon Feb 26 12:56:21 UTC 2018


Source: acedb
Version: 4.9.39+dfsg.02-2
Severity: serious
Tags: patch

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

...
gcc -g -Wl,-z,relro -Wl,-z,now -o metacheck metadata.o -L. -lace -lfree -L/usr/X11R6/lib `../w3rdparty/libs-config glib-2.0 gtk+-2.0` -lm -lreadline -lX11 -lfl 
./libfree.a(filsubs.o): In function `filTmpOpenWithSuffix':
acedb_4.9.39+dfsg.02-2/bin.LINUX_4/filsubs.c:588: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/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[3]: *** [makefile:1271: metacheck] Error 1


Fix attached.
-------------- next part --------------
Description: With shared libfl needless linking causes FTBFS
 Due to libfl requiring yylex.
Author: Adrian Bunk <bunk at debian.org>

--- acedb-4.9.39+dfsg.02.orig/wmake/truemake
+++ acedb-4.9.39+dfsg.02/wmake/truemake
@@ -1017,7 +1017,7 @@ acelibtest : libfree.a libace.a acelibte
 
 tagcount : libfree.a libace.a tagcount.c
 	$(CC) tagcount.c
-	$(LINKER) -o tagcount tagcount.o -L. -lace -lfree $(LIBS) $(LEX_LIBS)
+	$(LINKER) -o tagcount tagcount.o -L. -lace -lfree $(LIBS)
 
 
 ##########################################
@@ -1268,7 +1268,7 @@ intron2 : libfree.a intron2.o
 	$(LINKER)  -o intron2 intron2.o -L. -lfree $(LIBS)
 
 metacheck : libfree.a libace.a metadata.o
-	  $(LINKER) -o metacheck metadata.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) 
+	  $(LINKER) -o metacheck metadata.o -L. -lace -lfree $(LIBS)
 
 makeUserPasswd: makeUserPasswd.c libfree.a libmd5.a 
 	$(CC) $@.c


More information about the Debian-med-packaging mailing list