Please apply upstream patch for dpkg-buildsource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
samba (Ubuntu) |
Fix Released
|
Medium
|
Steve Langasek |
Bug Description
Binary package hint: dpkg
Release: Ubuntu Hardy (8.04)
Package: dpkg 1.14.16.6ubuntu3
Script dpkg-buildsource includes harmful default option "-Wl,-Bsymbolic
This affects many "pkg-config"-like mechanizm based programs, such as krb5-config, mysql-config, net-snmp-config, etc. And this flag cascades to other packages such as cupsys, samba, etc, using such packages.
Upstream of dpkg fixed this bug on this commit:
http://
But the version of the source in Ubuntu Hardy differs from it, So I created patch having same meaning. (I attached to this report).
Further information:
Linker flag "-Bsymbolic(
Unintended usage for this flag may break condition on run-time, for example, non-correct initialization.
Example:
Samba package was built with "-Wl,Bsymbolic-
(This flag was incorporated by krb5-config and cups-config.)
If you use "wins" option for "host" in nsswitch.conf, following simple program built with "-lsmbclient" stops accidentally.
#include <netdb.h>
int main(int argc, char *argv[])
{
gethostbyna
return 0;
}
(Mechanism: Both of libsmbclient.so and libnss_wins.so include same source lib/debug.c. That file has symbol named "DEBUGLEVEL_CLASS" as variable, and symbol named "debug_add_class" as function. With "-Bsymbolic-
Changed in samba: | |
assignee: | nobody → vorlon |
Changed in samba: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
We've already taken most of the hit of introducing -Wl,-Bsymbolic- functions in Hardy; it was an intentional decision, although it's true that it has had slightly more consequences than we'd like. Rather than reverting it, I think the minimal fix for Hardy would be to cause samba's packaging to cancel the LDFLAGS that are undesirable for it.