[R-pkg-team] Bug#1103202: rapache: FTBFS: mod_R.c:1241:11: error: implicit declaration of function 'Calloc'
Santiago Vila
sanvila at debian.org
Tue Apr 15 01:19:52 BST 2025
Package: src:rapache
Version: 1.2.10-2
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --with apache2
dh_clean
debian/rules binary
dh binary --with apache2
dh_update_autotools_config
dh_autoreconf
autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'tools'.
libtoolize: copying file 'tools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:13: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.in:13: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.in:13: the top level
configure.in:162: warning: AC_OUTPUT should be used without arguments.
configure.in:162: You should run autoupdate.
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:13: installing 'tools/compile'
configure.in:5: installing 'tools/missing'
Makefile.am:26: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- --with-R=/usr/bin/R --with-apache2-apxs=/usr/bin/apxs2 --with-apreq2-config=/usr/bin/apreq2-config
./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 --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --with-R=/usr/bin/R --with-apache2-apxs=/usr/bin/apxs2 --with-apreq2-config=/usr/bin/apreq2-config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 whether gcc understands -c and -o together... yes
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 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
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for --with-apxs... no
checking for apxs... /usr/bin/apxs
checking for R Program... /usr/bin/R
checking for apreq2-config... checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mod_R.h
config.status: executing libtool commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build
make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
R_DEFAULT_PACKAGES=NULL /usr/bin/R --vanilla --no-readline --slave -f tools/config_http.R --args /usr/bin/apxs /usr/sbin/apache2
Configuring libapreq2
touch .apreq-config
Compiling mod_R
/usr/bin/apxs -I/usr/share/R/include -I/usr/include/apreq2 -I/usr/include/apr-1.0 -I/usr/include -c mod_R.c -Wl,--export-dynamic -fopenmp -Wl,-z,relro -L/usr/lib/R/lib -lR -lpcre2-8 -ldeflate -lzstd -llzma -lbz2 -lz -ltirpc -lrt -ldl -lm -licuuc -licui18n -L/usr/lib/x86_64-linux-gnu -lapreq2
/usr/share/apr-1.0/build/libtool --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -I/usr/share/R/include -I/usr/include/apreq2 -I/usr/include/apr-1.0 -I/usr/include -c -o mod_R.lo mod_R.c && touch mod_R.slo
sh: 1: /usr/sbin/apache2: not found
libtool: compile: x86_64-linux-gnu-gcc -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -I/usr/share/R/include -I/usr/include/apreq2 -I/usr/include/apr-1.0 -I/usr/include -c mod_R.c -fPIC -DPIC -o .libs/mod_R.o
sh: 1: /usr/sbin/apache2: not found
sh: 1: /usr/sbin/apache2: not found
mod_R.c:94:9: warning: "HAVE_UINTPTR_T" redefined
94 | #define HAVE_UINTPTR_T
| ^~~~~~~~~~~~~~
In file included from /usr/share/R/include/R.h:68,
from mod_R.c:72:
/usr/share/R/include/Rconfig.h:31:9: note: this is the location of the previous definition
31 | #define HAVE_UINTPTR_T 1
| ^~~~~~~~~~~~~~
mod_R.c: In function 'CallFun1str':
mod_R.c:1241:11: error: implicit declaration of function 'Calloc'; did you mean 'calloc'? [-Wimplicit-function-declaration]
1241 | text = Calloc(strlen(fun)+strlen(arg)+5,char);
| ^~~~~~
| calloc
mod_R.c:1241:44: error: expected expression before 'char'
1241 | text = Calloc(strlen(fun)+strlen(arg)+5,char);
| ^~~~
mod_R.c:1244:4: error: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration]
1244 | Free(text);
| ^~~~
| free
mod_R.c: In function 'PrepareHandlerExpr':
mod_R.c:1310:36: error: expected expression before 'char'
1310 | strlen(r->filename),char);
| ^~~~
mod_R.c:1315:36: error: expected expression before 'char'
1315 | strlen(r->filename),char);
| ^~~~
mod_R.c:1331:101: error: expected expression before 'char'
1331 | text = Calloc(strlen(fmt2)+strlen(h->directive->package)+strlen(h->directive->function),char);
| ^~~~
mod_R.c:1338:71: error: expected expression before 'char'
1338 | text = Calloc(strlen(fmt1)+strlen(h->directive->function),char);
| ^~~~
mod_R.c: In function 'RApache_receiveBin':
mod_R.c:2418:25: error: expected expression before 'unsigned'
2418 | buf = Calloc(size,unsigned char);
| ^~~~~~~~
mod_R.c:2428:25: error: expected expression before 'unsigned'
2428 | buf = Calloc(size,unsigned char);
| ^~~~~~~~
mod_R.c:2439:19: error: implicit declaration of function 'Realloc'; did you mean 'realloc'? [-Wimplicit-function-declaration]
2439 | buf = Realloc(buf,size,unsigned char);
| ^~~~~~~
| realloc
mod_R.c:2439:36: error: expected expression before 'unsigned'
2439 | buf = Realloc(buf,size,unsigned char);
| ^~~~~~~~
apxs:Error: Command failed with rc=65536
.
make[1]: *** [Makefile:445: mod_R.so] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:19: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202504/
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:rapache, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the R-pkg-team
mailing list