Bug#1114192: lua-curl: FTBFS: curl_ftpmethods.h:4:66: error: stray '#' in program
Package: src:lua-curl
Version: 0.3.0-12
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:lua-curl, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=lua --with lua
dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -f Makefile clean
make[2]: Entering directory '/<<PKGBUILDDIR>>'
rm -f -f *.o *.lo *.la *.so app doc/index.html doc/*.lua
rm -f -rf ./.libs/
rm -f -f curlopt.h curl_netrcopt.h curl_form.h curl_authopt.h curl_ftpauthopt.h curl_ftpmethods.h static-stamp dynamic-stamp
rm -f -rf win32-*
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_clean
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 8 in use)
make --no-print-directory -f /usr/share/dh-lua/make/dh-lua.Makefile.multiple clean
Making target clean for debian/lua5.1.dh-lua.conf
# fix for leftovers of dh-lua < 14
Target clean made
Making target clean for debian/lua5.2.dh-lua.conf
# fix for leftovers of dh-lua < 14
Target clean made
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean -O--buildsystem=lua
dh_clean: warning: Compatibility levels before 10 are deprecated (level 8 in use)
debian/rules binary
dh binary --buildsystem=lua --with lua
dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
dh_update_autotools_config -O--buildsystem=lua
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -f Makefile HEADER="/usr/include/x86_64-linux-gnu/curl/curl.h" constants
make[2]: Entering directory '/<<PKGBUILDDIR>>'
cat /usr/include/x86_64-linux-gnu/curl/curl.h | grep "^ *CURLOPT(" | sed "s/CURLOPT(/{\"OPT_/" | \
sed "s/CURLOPT_//" | sed "s/, /\",/" | tr -s " " " " | \
sed "s/, / + /" | sed "s/),/},/" > curlopt.h
cat /usr/include/x86_64-linux-gnu/curl/curl.h | grep "^ *CURL_NETRC_[A-Z]*," | \
sed 's/^ *CURL_\(NETRC_[A-Z]*\),.*$/{"\1", (int)CURL_\1},/' \
> curl_netrcopt.h
cat /usr/include/x86_64-linux-gnu/curl/curl.h | grep "^ *CFINIT" | grep -v "CFINIT(NOTHING)" | \
sed 's/^ *CFINIT(\([^)]*\)),.*$/{"FORM_\1",CURLFORM_\1},/' \
> curl_form.h
cat /usr/include/x86_64-linux-gnu/curl/curl.h | grep "define *CURLAUTH_" | \
sed "s/#define *CURL/{\"/" | sed "s/ *\/\*.*//" | \
sed "s/ /\",/" | sed "s/$/},/" > curl_authopt.h
cat /usr/include/x86_64-linux-gnu/curl/curl.h | grep -B10 '} curl_ftpauth' | \
grep "CURLFTPAUTH_" | \
grep -v "LAST.*never use" | \
sed "s/^ *CURL//" | sed "s/^\([^,]*\),.*$/{\"\1\",CURL\1},/" \
> curl_ftpauthopt.h
cat /usr/include/x86_64-linux-gnu/curl/curl.h | grep -B10 '} curl_ftpmethod' | \
grep "CURLFTPMETHOD_" | \
grep -v "LAST.*never use" | \
sed "s/^ *CURL//" | sed "s/^\([^,]*\),.*$/{\"\1\",CURL\1},/" \
> curl_ftpmethods.h
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_configure
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 8 in use)
make --no-print-directory -f /usr/share/dh-lua/make/dh-lua.Makefile.multiple configure
Making target configure for debian/lua5.1.dh-lua.conf
# .install
Filling in debian/lua-curl.install using /usr/share/dh-lua/template/lib.install.in
Adding new line: usr/lib/x86_64-linux-gnu/lua/5.1/curl.so
Adding new line: usr/lib/x86_64-linux-gnu/liblua5.1-curl.so.*
Filling in debian/lua-curl-dev.install using /usr/share/dh-lua/template/dev.install.in
Adding new line: usr/lib/x86_64-linux-gnu/liblua5.1-curl.so
Adding new line: usr/lib/x86_64-linux-gnu/liblua5.1-curl.a
Adding new line: usr/lib/x86_64-linux-gnu/pkgconfig/lua5.1-curl.pc
Adding new line: usr/include/lua5.1/lua-curl.h
# lua_versions
Filling in debian/lua_versions
Adding new line: 5.1
Target configure made
Making target configure for debian/lua5.2.dh-lua.conf
# .install
Filling in debian/lua-curl.install using /usr/share/dh-lua/template/lib.install.in
Adding new line: usr/lib/x86_64-linux-gnu/lua/5.2/curl.so
Adding new line: usr/lib/x86_64-linux-gnu/liblua5.2-curl.so.*
Filling in debian/lua-curl-dev.install using /usr/share/dh-lua/template/dev.install.in
Adding new line: usr/lib/x86_64-linux-gnu/liblua5.2-curl.so
Adding new line: usr/lib/x86_64-linux-gnu/liblua5.2-curl.a
Adding new line: usr/lib/x86_64-linux-gnu/pkgconfig/lua5.2-curl.pc
Adding new line: usr/include/lua5.2/lua-curl.h
# lua_versions
Filling in debian/lua_versions
Adding new line: 5.2
Target configure made
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build -O--buildsystem=lua
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 8 in use)
make --no-print-directory -f /usr/share/dh-lua/make/dh-lua.Makefile.multiple build
Making target build for debian/lua5.1.dh-lua.conf
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './config.guess'
libtoolize: copying file './config.sub'
libtoolize: copying file './install-sh'
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 8 in use)
cd debian/.dh_lua-libtool && ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libexecdir=\${prefix}/lib/lua-curl --disable-maintainer-mode --disable-dependency-tracking CFLAGS= LDFLAGS= LDFLAGS_STATIC=
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for gawk... no
checking for mawk... mawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating ./config.status
config.status: executing libtool commands
/<<PKGBUILDDIR>>/debian/.dh_lua-libtool/libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -I/usr/include/x86_64-linux-gnu -isystem /usr/include/mit-krb5 -I/usr/include/p11-kit-1 -Wall -Wextra -o /<<PKGBUILDDIR>>/5.1-curl/lua-curl.lo lua-curl.c
libtool: compile: x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -I/usr/include/x86_64-linux-gnu -isystem /usr/include/mit-krb5 -I/usr/include/p11-kit-1 -Wall -Wextra lua-curl.c -fPIC -DPIC -o /<<PKGBUILDDIR>>/5.1-curl/.libs/lua-curl.o
In file included from lua-curl.c:185:
curl_authopt.h:13:22: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551599' to '4294967279' [-Woverflow]
13 | {"AUTH_ANY", (~CURLAUTH_DIGEST_IE)},
| ^
curl_authopt.h:14:22: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551598' to '4294967278' [-Woverflow]
14 | {"AUTH_ANYSAFE", (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))},
| ^
In file included from lua-curl.c:217:
curl_ftpmethods.h:3:36: warning: '/*' within comment [-Wcomment]
3 | #define CURLFTPMETHOD_NOCWD 2L /* no CWD at all */
curl_ftpmethods.h:4:66: error: stray '#' in program
4 | {"#define CURLFTPMETHOD_SINGLECWD 3L /* one CWD to full dir",CURL#define CURLFTPMETHOD_SINGLECWD 3L /* one CWD to full dir},
| ^
curl_ftpmethods.h:4:62: error: expected expression before 'CURL'
4 | {"#define CURLFTPMETHOD_SINGLECWD 3L /* one CWD to full dir",CURL#define CURLFTPMETHOD_SINGLECWD 3L /* one CWD to full dir},
| ^~~~
curl_ftpmethods.h:4:101: error: unterminated comment
4 | {"#define CURLFTPMETHOD_SINGLECWD 3L /* one CWD to full dir",CURL#define CURLFTPMETHOD_SINGLECWD 3L /* one CWD to full dir},
| ^
lua-curl.c:219:1: warning: missing initializer for field 'value' of 'const struct L_const' [-Wmissing-field-initializers]
219 | };
| ^
In file included from lua-curl.c:45:
luabind.h:24:22: note: 'value' declared here
24 | unsigned int value;
| ^~~~~
lua-curl.c:219:2: error: expected '}' before ';' token
219 | };
| ^
lua-curl.c:216:57: note: to match this '{'
216 | static const struct L_const curl_easy_ftpmethods_c [] = {
| ^
lua-curl.c:216:29: warning: 'curl_easy_ftpmethods_c' defined but not used [-Wunused-const-variable=]
216 | static const struct L_const curl_easy_ftpmethods_c [] = {
| ^~~~~~~~~~~~~~~~~~~~~~
lua-curl.c:200:29: warning: 'curl_easy_ftpauth_c' defined but not used [-Wunused-const-variable=]
200 | static const struct L_const curl_easy_ftpauth_c [] = {
| ^~~~~~~~~~~~~~~~~~~
lua-curl.c:184:29: warning: 'curl_easy_auth_c' defined but not used [-Wunused-const-variable=]
184 | static const struct L_const curl_easy_auth_c [] = {
| ^~~~~~~~~~~~~~~~
lua-curl.c:170:29: warning: 'curl_easy_netrc_c' defined but not used [-Wunused-const-variable=]
170 | static const struct L_const curl_easy_netrc_c [] = {
| ^~~~~~~~~~~~~~~~~
lua-curl.c:156:29: warning: 'curl_easy_c' defined but not used [-Wunused-const-variable=]
156 | static const struct L_const curl_easy_c [] = {
| ^~~~~~~~~~~
make[2]: *** [/usr/share/dh-lua/make/dh-lua.Makefile.single:446: /<<PKGBUILDDIR>>/5.1-curl/lua-curl.lo] Error 1
make[1]: *** [/usr/share/dh-lua/make/dh-lua.Makefile.multiple:12: build] Error 1
dh_auto_build: error: make --no-print-directory -f /usr/share/dh-lua/make/dh-lua.Makefile.multiple build returned exit code 2
make: *** [debian/rules:4: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Reply to: