← Back to team overview

touch-packages team mailing list archive

[Bug 1537328] Re: Undefined symbol when running scope in emulator

 

> The reason you see all that other noise about not finding other libs
is because once the scoperunner runs into an issue with one lib
(libschnasni.username_schnasni.so in this case), it then attempts to
find alternatives that it may have more luck with.

I did this after Michal applied a lot of pressure to allow short names
for scope libraries. Originally, you had to use the full-qualified scope
ID with a .so suffix. In effect, this has created aliasing for the
possible .so names, meaning that the scope loader has to look for a
whole bunch of possible names.

Next time, I'll be resisting that kind of suggestion a lot more. In the
long run, I think it creates more trouble than it's worth.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1537328

Title:
  Undefined symbol when running scope in emulator

Status in Client Developer Experience:
  New
Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  I'm trying to run the template scope in the emulator of the Ubuntu SDK
  in 15.04. The scope builds just fine, but when I try to run it in the
  emulator, it gives me the following error:

  scoperunner: unity::ResourceException: Cannot load scope schnasni.username_schnasni; tried in the following locations:
  /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/i386-linux-gnu/libschnasni.username_schnasni.so
  /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/i386-linux-gnu/schnasni.username_schnasni.so
  /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/i386-linux-gnu/scope.so
  /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/libschnasni.username_schnasni.so
  /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/schnasni.username_schnasni.so
  /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/scope.so
  Exception history:
      Exception #1:
          unity::ResourceException: /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/i386-linux-gnu/libschnasni.username_schnasni.so: cannot open shared object file: No such file or directory
      Exception #2:
          unity::ResourceException: /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/i386-linux-gnu/schnasni.username_schnasni.so: cannot open shared object file: No such file or directory
      Exception #3:
          unity::ResourceException: /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/i386-linux-gnu/scope.so: cannot open shared object file: No such file or directory
      Exception #4:
          unity::ResourceException: /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/libschnasni.username_schnasni.so: undefined symbol: _ZN5unity6scopes9ScopeBase22activate_result_actionERKNS0_6ResultERKNS0_14ActionMetadataERKSs
      Exception #5:
          unity::ResourceException: /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/schnasni.username_schnasni.so: cannot open shared object file: No such file or directory
      Exception #6:
          unity::ResourceException: /opt/click.ubuntu.com/schnasni.username/0.1/schnasni/scope.so: cannot open shared object file: No such file or directory

  It searches for the file in 6 directories, and does not find it in 5
  of these, which is expected I think. But what does

  undefined symbol:
  _ZN5unity6scopes9ScopeBase22activate_result_actionERKNS0_6ResultERKNS0_14ActionMetadataERKS

  mean and how can I resolve it?

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-developer-experience/+bug/1537328/+subscriptions


References