Your message dated Mon, 7 Jul 2025 13:08:44 +0200 with message-id <[email protected]> and subject line Re: Bug#10648: Spurious dependence on libelf when checking for getloadavg() has caused the Debian Bug report #10648, regarding Spurious dependence on libelf when checking for getloadavg() to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 10648: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=10648 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: autoconf Version: 2.12-1 Autoconf spuriously makes a binary depend on libelf if that's installed when checking for getloadavg (as in at :-). Consider the following case: $ cat configure.in AC_INIT(hello.c) AC_PROG_CC AC_FUNC_GETLOADAVG AC_OUTPUT(Makefile) $ cat Makefile.in CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ CC = @CC@ hello: hello.o $(CC) $(LDFLAGS) -o hello hello.o $(LIBS) hello.o: hello.c $(CC) $(CFLAGS) -c hello.c $ cat hello.c #include <stdio.h> int main() { printf("Hello, world!\n"); return 0; } $ autoconf $ configure creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for elf_begin in -lelf... yes checking for kvm_open in -lkvm... no checking for getloadavg in -lutil... no checking for getloadavg in -lgetloadavg... no checking for getloadavg... no checking for sys/dg_sys_info.h... no checking for nlist.h... yes checking for n_un in struct nlist... no checking whether getloadavg requires setgid... no updating cache ./config.cache creating ./config.status creating Makefile $ cat Makefile # Generated automatically from Makefile.in by configure. CFLAGS = -g -O2 LDFLAGS = LIBS = -lelf CC = gcc hello: hello.o $(CC) $(LDFLAGS) -o hello hello.o $(LIBS) hello.o: hello.c $(CC) $(CFLAGS) -c hello.c $ make gcc -g -O2 -c hello.c gcc -o hello hello.o -lelf $ ldd hello libelf.so.0 => /usr/lib/libelf.so.0 libc.so.5 => /lib/libc.so.5 This dependency on libelf is clearly bunk. The comments in the generated configure script admit this: # Some systems with -lutil have (and need) -lkvm as well, some do not. # On Solaris, -lkvm requires nlist from -lelf, so check that first # to get the right answer into the cache. echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 echo "configure:759: checking for elf_begin in -lelf" >&5 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lelf $LIBS" -- Thomas Koenig, [email protected], [email protected]. The joy of engineering is to find a straight line on a double logarithmic diagram.
--- End Message ---
--- Begin Message ---Source: autoconf Source-Version: 2.72-3.1 On Tue, Jun 17, 1997 at 06:37:39PM +0200, Thomas Koenig wrote: > Autoconf spuriously makes a binary depend on libelf if that's installed > when checking for getloadavg (as in at :-). I'm marking this bug done, as it is not reproducible anymore on a current install with autoconf 2.72-3.1. While the -lelf detection logic is still present, at least -lelf is no longer emitted into LIBS. Maybe the root cause was fixed elsewhere (in gnulib?). Chris
--- End Message ---

