Segfault compiling sample httpServer

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)

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/

  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/

  3. you can build the application the usual way .

Regards,
Vasantha

i got through this with the newer sdk finally… thanks