Bug#927739: FTBFS: undefined reference to `yylex'
On Mon, 2019-04-22 at 14:22 +0200, Santiago Vila wrote: > > I can build libkate in my autobuilders. > > I also triggered a rebuild in reproducible-builds and it worked: > > https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libkate.html > > Can you reproduce the failure in another system? > Does the failure happen always, or it happens randomly? I did some more testing. It happens only if libfl-dev is installed, which was on my system but is not part of the build dependencies. So this should either become part of Build-Conflicts or has to be fixed, but it's less bad than I thought :) To solve it, one can link with libfl.a instead of libfl.so apparently. signature.asc Description: This is a digitally signed message part
Bug#927739: FTBFS: undefined reference to `yylex'
Hi, I was not able to reproduce this neither in sbuild nor on my local system and reproducible builds doesn't show failures either. Interestingly debuild asked for bison, whereas sbuild installs neither flex nor bison. Maybe we should add both as build dependencies.. Can you send a full build log and the versions of the installed build dependencies? Cheers Jochen * Sebastian Dröge [2019-04-22 12:33]: Source: libkate Version: 0.4.1-9 Severity: serious Hi, Something seems to have changed with flex, which causes the package to now fail to build: /bin/bash ../libtool --tag=CC --silent --mode=link gcc -Wall -W -I/usr/include/libpng16 -g -O2 -fdebug-prefix-map=/home/slomo/tmp/foo/libkate-0.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o kateenc kateenc-kateenc.o kateenc-kate_lexer.o kateenc-kate_parser.o kateenc-kpng.o ../lib/liboggkate.la ../lib/libkate.la -logg -lpng16 -lz -lfl /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libfl.so: undefined reference to `yylex' collect2: error: ld returned 1 exit status Thanks! -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (700, 'unstable'), (500, 'unstable-debug'), (100, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-4-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled signature.asc Description: PGP signature
Bug#927739: FTBFS: undefined reference to `yylex'
On Mon, Apr 22, 2019 at 12:33:11PM +0300, Sebastian Dröge wrote: > Source: libkate > Version: 0.4.1-9 > Severity: serious > > Hi, > > Something seems to have changed with flex, which causes the package to now > fail to build: > > /bin/bash ../libtool --tag=CC --silent --mode=link gcc -Wall -W > -I/usr/include/libpng16 -g -O2 > -fdebug-prefix-map=/home/slomo/tmp/foo/libkate-0.4.1=. > -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro > -Wl,-z,now -o kateenc kateenc-kateenc.o kateenc-kate_lexer.o > kateenc-kate_parser.o kateenc-kpng.o ../lib/liboggkate.la ../lib/libkate.la > -logg -lpng16 -lz -lfl > /usr/bin/ld: > /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libfl.so: undefined > reference to `yylex' > collect2: error: ld returned 1 exit status I can build libkate in my autobuilders. I also triggered a rebuild in reproducible-builds and it worked: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libkate.html Can you reproduce the failure in another system? Does the failure happen always, or it happens randomly? Thanks.
Bug#927739: FTBFS: undefined reference to `yylex'
Source: libkate Version: 0.4.1-9 Severity: serious Hi, Something seems to have changed with flex, which causes the package to now fail to build: /bin/bash ../libtool --tag=CC --silent --mode=link gcc -Wall -W -I/usr/include/libpng16 -g -O2 -fdebug-prefix-map=/home/slomo/tmp/foo/libkate-0.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o kateenc kateenc-kateenc.o kateenc-kate_lexer.o kateenc-kate_parser.o kateenc-kpng.o ../lib/liboggkate.la ../lib/libkate.la -logg -lpng16 -lz -lfl /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libfl.so: undefined reference to `yylex' collect2: error: ld returned 1 exit status Thanks! -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (700, 'unstable'), (500, 'unstable-debug'), (100, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-4-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled