Package: dpkg-dev Version: 1.17.25 Severity: normal Hi,
When I'm reading osamu's new maint-guide and playing around,
I found a issue with dpkg-shlibdeps. It says so:
dpkg-shlibdeps: warning: package could avoid a useless
dependency if debian/debhello-1.0/usr/bin/hello was not linked
against libm.so.6 (it uses none of the library's symbols)
however the program hello.c indeed used math.h and should be
linked to libm:
#include "config.h"
#include <math.h>
#include <stdio.h>
int
main()
{
printf("Hello, I am " PACKAGE_AUTHOR "!\n");
printf("4.0 * atan(1.0) = %10f8\n", 4.0*atan(1.0));
return 0;
}
I'm sure the generated ELF hello should be linked to libm,
and atan() is really a libm function.
$ objdump -d libm-2.19.so | grep \<atan
0000000000019ba0 <atan>:
19baf: 75 27 jne 19bd8 <atan+0x38>
Does dpkg-shlibdeps missed to trace the symbol "atan"?
the full package build script is available as attachment [1.0.log.gz]
the software debhello-1.0 is from osamu's people.d.o [1]
[1] https://people.debian.org/~osamu/debhello.tar.xz
1.0.log.gz
Description: application/gzip

