LD_PRELOAD= versus /etc/modules ... ; was "using exec in a script"
On 2011-03-10, firstname.lastname@example.org <email@example.com> wrote:
> From: Liam O'Toole <firstname.lastname@example.org>
> Date: Thu, 10 Mar 2011 20:03:52 +0000 (UTC)
>> export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
>> exec /usr/bin/skype
> Works perfectly. Thanks.
> For sake of interest, another approach which failed was to list
> v4l1compat in /etc/modules and invoke /usr/bin/skype in ~/.config/auto*/skype* .
> peter@dalton:~$ egrep -v '(^ *#)|(^ *$)' /etc/modules
> Why does this fail while use of LD_PRELOAD as above works?
The problem you were facing was a userspace one, namely, how to force an
executable to load a library that would not otherwise be loaded. That's
what LD_PRELOAD achieves.
I'm not aware of a kernel module named v4l1compat, so I can't see how
explicitly loading such a module would have helped anyway.
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com