Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dart-ext failing on native client header include #16140

Closed
DartBot opened this issue Jan 16, 2014 · 5 comments
Closed

dart-ext failing on native client header include #16140

DartBot opened this issue Jan 16, 2014 · 5 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. closed-not-planned Closed as we don't intend to take action on the reported issue

Comments

@DartBot
Copy link

DartBot commented Jan 16, 2014

This issue was originally filed by @shamblett


I include the following in my native extension :-

include "qpid/client/Connection.h"

include "qpid/client/Message.h"

include "qpid/client/Session.h"

My Dart code using the native extension works, all fine and dandy, if however I then include this :-

include "qpid/client/SubscriptionManager.h"

I suddenly get :-

cannot find extension library'file:///home/steve/Development/google/dart/projects/amqp_client/lib/amqp_client.dart': error: line 10 pos 1: library handler failed import 'dart-ext:so/amqp_extension';

It makes no difference if I include it on its own, just if I include it.
It seems that including it makes dart-ext think the native library is no longer valid.

I'm guessing no client side header inclusion should do this.

My build system and readelf are both telling me the .so file is OK.

Platform is Fedora20 x64
 

@lrhn
Copy link
Member

lrhn commented Jan 16, 2014

cc @whesse.
Added Area-VM, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jan 17, 2014

This comment was originally written by @shamblett


More info

Now I'm fleshing out my native functions to do real stuff I need to link against the amqp client library else I get errors like :-

symbol lookup error: /home/steve/Development/google/dart/projects/amqp_client/lib/so/libamqp_extension.so: undefined symbol: _ZN4qpid6client10ConnectionC1Ev

Fair enough, as soon as I do this dart-ext blows up again with the fault above.

Note the Dart version was 1.0, however the same happens with 1.1

This pretty much stops me dead as far as implementing this extension goes.

@DartBot
Copy link
Author

DartBot commented Jan 17, 2014

This comment was originally written by @shamblett


OK, fixed,

Note to self:

'Please remember that ldconfig ignores libraries that don't start with 'lib' whether or not you supply a config file for them.'

strace showed me the error, still don't fully get why this happened on the include though.

Can be closed.

@iposva-google
Copy link
Contributor

Thanks for following up. Closing.


Added WontFix label.

@whesse
Copy link
Member

whesse commented Jan 17, 2014

It may be that your extension's shared library had a broken or missing link to another shared library. This library load failure only shows up when loading the extension, so it is reported as a failure loading the extension library. It may be hard to improve the error message, because I think the system error 2 get may not be informative.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. labels Jan 17, 2014
@kevmoo kevmoo added closed-not-planned Closed as we don't intend to take action on the reported issue and removed priority-unassigned labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. closed-not-planned Closed as we don't intend to take action on the reported issue
Projects
None yet
Development

No branches or pull requests

5 participants