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

wasm var co = new System.Net.CookieContainer(); error System.DllNotFoundException: libc #12871

Closed
iosub opened this issue Feb 7, 2019 · 2 comments
Assignees
Labels

Comments

@iosub
Copy link

@iosub iosub commented Feb 7, 2019

Steps to Reproduce

  1. create a wasm project
  2. add this code
  3. var co = new System.Net.CookieContainer();

Current Behavior

You get error:
System.DllNotFoundException: libc
mono.js:1 at (wrapper managed-to-native) System.Net.NetworkInformation.CommonUnixIPGlobalProperties.getdomainname(byte[],int)
mono.js:1 at System.Net.NetworkInformation.CommonUnixIPGlobalProperties.get_DomainName () [0x0000b] in /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mcs/class/System/System.Net.NetworkInformation/UnixIPGlobalProperties.cs:60
mono.js:1 at System.Net.CookieContainer..ctor () [0x0003a] in /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mcs/class/referencesource/System/net/System/Net/cookiecontainer.cs:122

Expected Behavior

this code works on Android, IOS, Unix but does not work on wasm

On which platforms did you notice this

[ ] macOS
[ X] Linux
[X ] Windows
[X] WebAssembly

Version Used:

Stacktrace

Please paste the stack trace here if available.
@iosub

This comment has been minimized.

Copy link
Author

@iosub iosub commented Mar 18, 2019

System.DllNotFoundException: libc assembly: type: member:(null)
mono.js:1 at (wrapper managed-to-native) System.Net.NetworkInformation.CommonUnixIPGlobalProperties.getdomainname(byte[],int)
mono.js:1 at System.Net.NetworkInformation.CommonUnixIPGlobalProperties.get_DomainName () [0x0000b] in /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mcs/class/System/System.Net.NetworkInformation/UnixIPGlobalProperties.cs:60
mono.js:1 at System.Net.CookieContainer..ctor () [0x0003a] in /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mcs/class/referencesource/System/net/System/Net/cookiecontainer.cs:122

kjpou1 added a commit to kjpou1/mono that referenced this issue Mar 28, 2019
Fixes issue: mono#12871
@kjpou1

This comment has been minimized.

Copy link
Member

@kjpou1 kjpou1 commented Mar 29, 2019

Fixed by #13705

@kjpou1 kjpou1 closed this Mar 29, 2019
jeromelaban added a commit to unoplatform/Uno.Wasm.Bootstrap that referenced this issue Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.