# Segfault compiling sample httpServer

**URL:** <https://forum.legato.io/t/segfault-compiling-sample-httpserver/2877>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [December 16, 2017, 5:30pm UTC](https://forum.legato.io/t/segfault-compiling-sample-httpserver/2877 "2017-12-16T17:30:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![outbackdingo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/outbackdingo/32/293_2.png) [@outbackdingo](https://forum.legato.io/u/outbackdingo)\
**Post date:** [December 16, 2017, 5:30pm UTC](https://forum.legato.io/t/segfault-compiling-sample-httpserver/2877/1 "2017-12-16T17:30:31Z")

</div>

using the standard ubuntu ovh image, i did run apt-get update / upgrade and repo sync on legato and git pull on mangOH

trying to build the httpServer sample make wp85

Parsing file: ‘/home/mangoh/legato\_framework/legato/apps/sample/httpServer/httpServer.adef’.  
Modelling application: ‘httpServer’  
defined in ‘/home/mangoh/legato\_framework/legato/apps/sample/httpServer/httpServer.adef’  
\*\* WARNING: application httpServer: Binding for unreferenced client-side interface ‘le\_cfg’. Bindings for unreferenced interfaces are deprecated.  
\*\* NOTE: application httpServer: If this is used by a legacy app, it should be included in the extern: requires: section  
\*\* WARNING: application httpServer: Binding for unreferenced client-side interface ‘le\_update’. Bindings for unreferenced interfaces are deprecated.  
\*\* NOTE: application httpServer: If this is used by a legacy app, it should be included in the extern: requires: section  
\*\* WARNING: application httpServer: Binding for unreferenced client-side interface ‘le\_appInfo’. Bindings for unreferenced interfaces are deprecated.  
\*\* NOTE: application httpServer: If this is used by a legacy app, it should be included in the extern: requires: section

== ‘httpServer’ application summary ==

Includes files from the build host:  
‘/home/mangoh/legato\_framework/legato/apps/sample/httpServer/binaries/lighttpd’:  
appearing inside app as: ‘/usr/local/bin/lighttpd’  
permissions: execute  
Includes directories from the build host:  
‘/home/mangoh/legato\_framework/legato/apps/sample/httpServer/binaries/lib’:  
appearing inside app as: ‘/modlibs’  
permissions: read  
‘/home/mangoh/legato\_framework/legato/apps/sample/httpServer/pages’:  
appearing inside app as: ‘/pages’  
permissions: read  
‘/home/mangoh/legato\_framework/legato/apps/sample/httpServer/cfg’:  
appearing inside app as: ‘/cfg’  
permissions: read  
Runs inside a sandbox.  
Imports the following files from the target host:  
‘/lib/libutil.so.1’:  
appearing inside app as: ‘/lib/libutil.so.1’  
‘/etc/nsswitch.conf’:  
appearing inside app as: ‘/etc/nsswitch.conf’  
‘/lib/libnss\_compat.so.2’:  
appearing inside app as: ‘/lib/libnss\_compat.so.2’  
‘/lib/libnsl.so.1’:  
appearing inside app as: ‘/lib/libnsl.so.1’  
‘/lib/libproc-3.2.8.so’:  
appearing inside app as: ‘/lib/libproc-3.2.8.so’  
‘/etc/passwd’:  
appearing inside app as: ‘/etc/passwd’  
‘/lib/libcrypto.so.1.0.0’:  
appearing inside app as: ‘/lib/libcrypto.so.1.0.0’  
‘/legato/systems/current/version’:  
appearing inside app as: ‘/legato/systems/current/version’  
‘/legato/systems/current/status’:  
appearing inside app as: ‘/legato/systems/current/status’  
Imports the following directories from the target host:  
‘/proc’:  
appearing inside app as: ‘/proc’  
‘/bin’:  
appearing inside app as: ‘/bin’  
‘/sbin’:  
appearing inside app as: ‘/sbin’  
‘/usr/lib’:  
appearing inside app as: ‘/usr/lib’  
‘/usr/bin’:  
appearing inside app as: ‘/usr/bin’  
‘/usr/include’:  
appearing inside app as: ‘/usr/include’  
‘/legato/systems/current/bin’:  
appearing inside app as: ‘/legato/systems/current/bin’  
‘/legato/systems/current/lib’:  
appearing inside app as: ‘/legato/systems/current/lib’  
‘/legato/systems/current/apps’:  
appearing inside app as: ‘/legato/systems/current/apps’  
Has the following limits:  
maxSecureStorageBytes: 8192  
maxThreads: 20  
maxMQueueBytes: 512  
maxQueuedSignals: 100  
maxMemoryBytes: 40960000  
cpuShare: 1024  
maxFileSystemBytes: 131072  
Has access to the following configuration trees:  
Its own tree: read + write  
system: read only  
Will be started automatically when the Legato framework starts.  
When started, will run process: ‘lighttpd’  
Executing file: ‘lighttpd’  
With the following command line arguments:  
‘-m’  
‘/modlibs/’  
‘-D’  
‘-f’  
‘/cfg/lighttpd.conf’  
With the following environment variables:  
HOME=/  
PATH=/usr/local/bin:/usr/bin:/bin  
Fault recovery action: ignore (default)  
Watchdog timeout: disabled  
With the following limits:  
Max. core dump file size: 102400 bytes  
Max. file size: 102400 bytes  
Max. locked memory size: 8192 bytes  
Max. number of file descriptors: 256  
Has the following client-side interfaces on pre-built executables:  
‘le\_appInfo’ → bound to service ‘le\_appInfo’ served by user .  
Makefile:41: recipe for target ‘wp85’ failed  
make: \*\*\* [wp85] Segmentation fault (core dumped)

---

<div class="post-metadata">

**Author:** ![Vasantha\_lax](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@Vasantha\_lax](https://forum.legato.io/u/Vasantha_lax)\
**Post date:** [December 20, 2017, 11:58am UTC](https://forum.legato.io/t/segfault-compiling-sample-httpserver/2877/2 "2017-12-20T11:58:49Z")

</div>

Hi,

From your post I see that you are building httpServer sample application for WP85 Module.  
The latest release for WP85 is legato 16.10.3.

1. And the right way to get the release for a specific module would be to follow the below link to download the code using legato-spm.  
[https://source.sierrawireless.com/resources/airprime/software/legato\_application\_development\_kit\_linux/](https://source.sierrawireless.com/resources/airprime/software/legato_application_development_kit_linux/)

2. Follow the steps in “Configure Legato Environment” in below link to set the environment and tools path.  
[https://source.sierrawireless.com/resources/airprime/software/legato\_spm/](https://source.sierrawireless.com/resources/airprime/software/legato_spm/)

3. you can build the application the usual way .

Regards,  
Vasantha

---

<div class="post-metadata">

**Author:** ![outbackdingo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/outbackdingo/32/293_2.png) [@outbackdingo](https://forum.legato.io/u/outbackdingo)\
**Post date:** [December 21, 2017, 10:49am UTC](https://forum.legato.io/t/segfault-compiling-sample-httpserver/2877/3 "2017-12-21T10:49:49Z")

</div>

i got through this with the newer sdk finally… thanks
