Discussion:
plugin question
Matt Brown
2016-06-09 18:19:11 UTC
Permalink
Hi,

I'm pretty new to Genode so this is probably going to sound like a trivial
question:

I've been playing around with many of the examples you've provided and I
saw that you guys have included qt support so I played with most of the
examples. I then tried porting over a network messaging app that I wrote a
while ago. I got it to load but when I try to establish a connection the
log says "no plugin found for socket()". I looked at the arora target and
run files to see if there was anything NIC/socket related that I should add
and I found "set feature(NIC) 1" but that didn't work.

Is there something I'm missing?

My app is trying to make a connecting using the QTcpSocket library. Any
help would be greatly appreciated.

Thanks

-Matt
Josef Söntgen
2016-06-09 20:44:15 UTC
Permalink
Hello Matt,
Post by Matt Brown
I've been playing around with many of the examples you've provided and I
saw that you guys have included qt support so I played with most of the
examples. I then tried porting over a network messaging app that I wrote a
while ago. I got it to load but when I try to establish a connection the
log says "no plugin found for socket()". I looked at the arora target and
run files to see if there was anything NIC/socket related that I should add
and I found "set feature(NIC) 1" but that didn't work.
Is there something I'm missing?
You have to link your component against a libc plugin that provides the
socket API, e.g., libc_lwip_nic_dhcp or libc_lxip. If you take a closer
look at Arora's target.mk file you will see that the lwip plugin is
indeed added to the LIBS variable.


Regards
Josef
--
Josef Söntgen
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
Matt Brown
2016-06-09 21:14:21 UTC
Permalink
Josef,

I tried adding the library to the target.mk of my application and it didn't
work. I noticed that even though I added the library it wasn't addressed in
the build output. Just to make sure I'm doing this correctly in my target.mk
I added:

LIB += libc_lwip_nic_dhcp

*QT5 stuff*

I feel like maybe I'm missing a prepare_port call but the make script is
telling me I am.

Thanks for the help,

-Matt
On Thu, Jun 9, 2016 at 1:44 PM, Josef Söntgen <
Post by Josef Söntgen
Hello Matt,
Post by Matt Brown
I've been playing around with many of the examples you've provided and I
saw that you guys have included qt support so I played with most of the
a
Post by Matt Brown
while ago. I got it to load but when I try to establish a connection the
log says "no plugin found for socket()". I looked at the arora target and
run files to see if there was anything NIC/socket related that I should
add
Post by Matt Brown
and I found "set feature(NIC) 1" but that didn't work.
Is there something I'm missing?
You have to link your component against a libc plugin that provides the
socket API, e.g., libc_lwip_nic_dhcp or libc_lxip. If you take a closer
look at Arora's target.mk file you will see that the lwip plugin is
indeed added to the LIBS variable.
Regards
Josef
--
Josef Söntgen
Genode Labs
http://www.genode-labs.com/ · http://genode.org/
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
genode-main mailing list
https://lists.sourceforge.net/lists/listinfo/genode-main
Emery
2016-06-09 21:35:21 UTC
Permalink
It could be that it tries to open an IPv6 socket, I believe I've seen this
error in that case.

Emery
Post by Matt Brown
Josef,
I tried adding the library to the target.mk of my application and it didn't
work. I noticed that even though I added the library it wasn't addressed in
the build output. Just to make sure I'm doing this correctly in my target.mk
LIB += libc_lwip_nic_dhcp
*QT5 stuff*
I feel like maybe I'm missing a prepare_port call but the make script is
telling me I am.
Thanks for the help,
-Matt
On Thu, Jun 9, 2016 at 1:44 PM, Josef Söntgen <
Post by Josef Söntgen
Hello Matt,
Post by Matt Brown
I've been playing around with many of the examples you've provided and I
saw that you guys have included qt support so I played with most of the
a
Post by Matt Brown
while ago. I got it to load but when I try to establish a connection the
log says "no plugin found for socket()". I looked at the arora target and
run files to see if there was anything NIC/socket related that I should
add
Post by Matt Brown
and I found "set feature(NIC) 1" but that didn't work.
Is there something I'm missing?
You have to link your component against a libc plugin that provides the
socket API, e.g., libc_lwip_nic_dhcp or libc_lxip. If you take a closer
look at Arora's target.mk file you will see that the lwip plugin is
indeed added to the LIBS variable.
Regards
Josef
--
Josef Söntgen
Genode Labs
http://www.genode-labs.com/ · http://genode.org/
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and
traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
genode-main mailing list
https://lists.sourceforge.net/lists/listinfo/genode-main
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
genode-main mailing list
https://lists.sourceforge.net/lists/listinfo/genode-main
Norman Feske
2016-06-10 07:33:31 UTC
Permalink
Hi Matt,

welcome to the list!
Post by Matt Brown
LIB += libc_lwip_nic_dhcp
the variable is called 'LIBS', not 'LIB'.

Cheers
Norman
--
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Loading...