[Bug 1470687] Re: Not working properly with compile options "-symbolic-functions"
Launchpad Bug Tracker
1470687 at bugs.launchpad.net
Wed Jul 15 18:52:12 UTC 2015
This bug was fixed in the package autofs - 5.0.7-3ubuntu3.2
---------------
autofs (5.0.7-3ubuntu3.2) trusty; urgency=medium
[ Stefan Bader ]
* Add LDFLAGS to avoid issues with accessing global variables in
shared libraries (LP: #1470687).
-- Chris J Arges <chris.j.arges at canonical.com> Tue, 07 Jul 2015
12:47:34 -0500
** Changed in: autofs (Ubuntu Trusty)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1470687
Title:
Not working properly with compile options "-symbolic-functions"
Status in autofs package in Ubuntu:
Fix Released
Status in autofs source package in Trusty:
Fix Released
Status in autofs source package in Utopic:
Fix Released
Status in autofs source package in Vivid:
Fix Released
Bug description:
SRU Justification
[Impact]
Can't use ${VARIABLE} on config file with -Dvar=value
Actually this is not a direct cause. but one of symptoms.
It's affected from Trusty to Wily ( Precise is ok )
[Test Case]
set NFS server
- /export/test1
- /export/test2
- /export/test-wily ( has README file )
set NFS client
- insert "/test /etc/auto.test" on the bottom of /etc/auto.master
- insert "test autofs_nfs:/export/${TESTVAR}
- run "automount -DTESTVAR=test-wily --pid-file=/var/run/autofs.pid -d -f -v"
- go /test, run ll test
- can see whole subdirectories on /export, should see only files in /export/test-wily
[Regression Potential]
[Other Info]
After analyzing the codes and build,
I found that it's ok with result of "make" command.
but doesn't work with "debuild" command.
so I suspected compile option
I changed override_dh_auto_build part on debian/rules to below
-----
override_dh_auto_build:
CFLAGS="$(CFLAGS) $(CPPFLAGS) -fgnu89-inline" \
LDFLAGS="-Wl,-z,relro" \ <<
dh_auto_build
-----
then debuild, it works
with -symbolic-functions option, static global variable in shared
library can't be used properly.. they lose some variables or element
in list as I tested.
I'm curious whether it's affected all other pkg.. because it's
compiler option problem
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1470687/+subscriptions
More information about the foundations-bugs
mailing list