[Pidgin] #7872: Libpurple plugins can't find purple_* symbols when libpurple.so is loaded dynamically.

Pidgin trac at pidgin.im
Sun May 31 02:27:53 EDT 2009


#7872: Libpurple plugins can't find purple_* symbols when libpurple.so is loaded
dynamically.
-----------------------------------------------------+----------------------
 Reporter:  brunoabinader                            |        Owner:            
     Type:  defect                                   |       Status:  closed    
Milestone:                                           |    Component:  libpurple 
  Version:  2.5.3                                    |   Resolution:  worksforme
 Keywords:  libpurple, LD_PRELOAD, undefined symbol  |  
-----------------------------------------------------+----------------------
Changes (by darkrain42):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 By default, python isn't putting the purple.so or any dependency symbols
 (oh hey, like libpurple.so!) in the global symbol table when loading it.
 LD_PRELOAD works because the loader loads all libpurple's symbols before
 python can.

 From #pidgin:
 {{{
 23:13:42 < bolaum> the python guys helped me!
 23:13:53 < bolaum> sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
 23:14:14 < bolaum> the global flag isn't set by default
 }}}

 Presumably, that has to be before 'import purple' (or however one loads
 the python module).

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7872#comment:3>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list