Wind River Support Network

HomeDefectsLIN6-6603
Fixed

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: 6.0.0.1
Fix Version: 6.0.0.3
Severity: Standard
Applicable for: Wind River Linux 6
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 

Other Downloads


Live chat
Online