[PATCH] util: Try finding out application name using dladdr if available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 18, 2014 at 9:36 AM, Felipe Sateler <fsateler at debian.org> wrote:
> On Mon, Aug 18, 2014 at 3:07 AM, R?mi Denis-Courmont <remi at remlab.net> wrote:
>> Le 2014-08-14 07:44, Felipe Sateler a ?crit :
>>
>>> +#ifdef HAVE_DLADDR
>>> +extern int main(int, char*[]);
>>> +#endif
>>
>>
>> So what exports the main symbol while linking the library? If nothing does,
>> then builds may fail due to undefined symbols, e.g. when using "-z defs"
>> flag to GNU/ld.
>
> You are correct. When building with -z defs the library cannot be
> linked. I think it is possible to change this to use dlsym to find the
> main function. Will post an updated patch when I have this working.

And I just got a report from a user that kde breaks due to this
change. Possibly "main" does not exist when pulse is loaded via the
kde machinery.


-- 

Saludos,
Felipe Sateler


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux