[haiku-bugs] Re: [Haiku] #6427: Runtime loader doesn't look for add ons in $(PROGDIR)/add-ons/

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 20 Nov 2010 23:52:21 -0000

#6427: Runtime loader doesn't look for add ons in $(PROGDIR)/add-ons/
------------------------------------+------------------------------
  Reporter:  pulkomandy             |        Owner:  pulkomandy
      Type:  bug                    |       Status:  new
  Priority:  normal                 |    Milestone:  R1
 Component:  System/runtime_loader  |      Version:  R1/Development
Resolution:                         |     Keywords:
Blocked By:                         |  Has a Patch:  0
  Platform:  All                    |     Blocking:
------------------------------------+------------------------------

Comment (by bonefish):

 Replying to [comment:4 pulkomandy]:
 > I attached an strace log.
 > What might be happening is there are subfolders in the add-ons folder
 and APlayer does something like load_add_on("Clients/MainWindowSystem").
 I'm not sure the runtime_loader expect part of the add-on path to be
 embedded in the name. But I may not have read the code properly :)

 The current implementation uses the same search algorithm for add-ons as
 the one specified for loading libraries via `dlopen()` (just with other
 search paths). When the given name contains a '/' it is directly
 interpreted as the path to be opened; the search paths are ignored. It
 seems BeOS's load_add_on() does (also?) try to append the path to the
 search paths. We should investigate the exact semantics...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6427#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: