On Sun, Jul 10, 2011 at 11:42:32PM +0200, Agustin Martin wrote:
> tags 633448 +patch +pending
> thanks
> 
> 2011/7/10 David Shorten <dpshor...@gmail.com>:
> > Package: libpam-encfs
> > Version: 0.1.4.1-4
> > Severity: normal
> > Tags: patch fixed
> > User: peter.fritzs...@gmx.de
> > Usertags: no-add-needed
> >
> > The attached patch was applied in ubuntu in order to fix LP#803183. It
> > should fix the bug described here. It changes debian/rules so that the
> > libraries are ordered correctly.
> 
> Thanks for the info,
...

> I cannot check now in a sid box. 

Surprisingly I cannot reproduce the problem in a sid box with normal ld
linker,

/usr/bin/make LDFLAGS="--shared -x -lc"
make[1]: Entering directory ...
gcc -fPIC -O2 -c -g -Wall -Wformat-security -fno-strict-aliasing pam_encfs.c
ld --shared -x -lc -o pam_encfs.so pam_encfs.o -lpam
make[1]: Leaving directory ...

usr/bin/make LDFLAGS="--as-needed --shared -x -lc"
make[1]: Entering directory ...
gcc -fPIC -O2 -c -g -Wall -Wformat-security -fno-strict-aliasing pam_encfs.c
ld --as-needed --shared -x -lc -o pam_encfs.so pam_encfs.o -lpam
make[1]: Leaving directory ...

/usr/bin/make LDFLAGS="--no-as-needed --shared -x -lc"
make[1]: Entering directory ...
gcc -fPIC -O2 -c -g -Wall -Wformat-security -fno-strict-aliasing pam_encfs.c
ld --no-as-needed --shared -x -lc -o pam_encfs.so pam_encfs.o -lpam
make[1]: Leaving directory ...

What is the difference in Ubuntu linker that makes this problem appear
there? Seems that Ubuntu is using binutils-gold and --no-as-needed is not
emulating it properly regarding this issue.

I installed binutils-gold and tried to reproduce the problem with it. No
luck. There is however an additional problem with it, current Debian 
binutils-gold does not know about new Debian multiarch locations, so,

$ ld --shared -x -o pam_encfs.so pam_encfs.o -lpam -lc                          
ld: error: cannot find -lc

happens in this box unless -L/usr/lib/i386-linux-gnu is passed. This is 
definitely not a problem in libpam-encfs but in binutils-gold linker.

> I admit I was a bit surprised that
> not having a trailing -lc worked in the strict approach, but it did (I
> also played at that time with something similar to the proposed
> patch).

Will move anyway -lc to EOL, but would really like to know how to reproduce
the original problem. 

-- 
Agustin



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to