Wind River Support Network


LIN6-6603 : CLONE - libcurl header files should support multilib environment (x32/x64)

Created: Jan 21, 2014    Updated: Dec 3, 2018
Resolved Date: Jan 26, 2014
Previous ID: LIN5-17875
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
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 

Other Downloads

Live chat