Wind River Support Network

HomeDefectsLIN5-17867
Fixed

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: 5.0.1.12
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

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"
#else
#error "Unknown word size"
#endif

Steps to Reproduce

WRL501.10
./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
Online