# I'm getting Error during the build the program

**URL:** <https://forum.legato.io/t/im-getting-error-during-the-build-the-program/4883>\
**Category:** Legato Application Framework\
**Created:** [November 29, 2019, 7:55am UTC](https://forum.legato.io/t/im-getting-error-during-the-build-the-program/4883 "2019-11-29T07:55:42Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [December 23, 2019, 2:26am UTC](https://forum.legato.io/t/im-getting-error-during-the-build-the-program/4883/7 "2019-12-23T02:26:56Z")

</div>

in your adef file, you need to add the following to import on-board library to legato application :

```
requires:
{
	file:
    {
    	
 
/usr/lib/libcurl.so.4.5.0 /lib/libcurl.so.4
/usr/lib/libssh2.so.1.0.1 /lib/libssh2.so.1

```

Also there is a problem in DNS:

> [@Sample application Httpget cannot be run on WP76 R13](https://forum.legato.io/t/sample-application-httpget-cannot-be-run-on-wp76-r13/4787):
>
> It says DNS cannot resolve host name: Oct 29 02:00:56 | httpGet[9967]/httpGetComponent T=main | httpGet.c GetUrl() 78 | curl\_easy\_perform() failed: Couldn’t resolve host name Any idea on this? I remember this sample works on R9.

you need to change your code to the following to use real IP address:

> ```
> curl_easy_setopt(curl, CURLOPT_URL, "smtps://108.177.125.109:465");
> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 0);
> 
> ```

---

_[View the full topic](https://forum.legato.io/t/im-getting-error-during-the-build-the-program/4883)._
