Wind River Support Network


LIN5-17867 : libcurl header files should support multilib environment (x32/x64)

Created: Jan 20, 2014    Updated: Dec 19, 2017
Resolved Date: Jan 26, 2014
Found In Version: 5.0.1
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Kernel


It is possible to build a platform that supports multilib versions of curl, like x64 and x32 however only version (testing shows it is the x64 version) of the header files make it into /usr/include/curl

Other distributions have implemented a solution by changing the file like this:
$ cat /usr/include/curl/curlbuild.h
#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include "curlbuild-32.h"
#elif __WORDSIZE == 64
#include "curlbuild-64.h"
#error "Unknown word size"

Steps to Reproduce

./wrlinux-5/wrlinux/configure --enable-board=intel-xeon-core-haswell --enable-rootfs=glibc_std_sato --enable-kernel=preempt-rt --enable-build=production 
add curl and lib32-curl packages 

then run:
$ make export-sdk
$ check /usr/include for which version end up into the sysroot folder

Other Downloads

Live chat