curl / Mailing Lists / curl-library / Single Mail


Need to build 32-bit curl on RH Linux 64-bit

From: Robert Sorrells via curl-library <>
Date: Tue, 12 Mar 2019 17:57:45 +0000


I'm attempting to configure a private 32-bit version of curl on a RH Linux 6.6 (Santiago) machine using the Intel compiler (Intel(R) C Compiler XE for applications running on IA-32, Version Build 20101006), using tcsh (not my choice).

The "fly in the ointment" is that curl 64-bit is installed on the machine in the "public" area, i.e.,

/usr/bin> curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

If it isn't possible for a public 64-bit and a private 32-bit version to coexist, let me know. Or maybe I need to override some pkg-config stuff when I build my private version. If that's the case, pointers for doing that would be much appreciated.

To keep it simple, I've currently set these variables in the environment:

setenv CC icc
setenv CPPFLAGS "-I/opt/intel/compiler/12.0/compilerpro- -I/usr/include -I/usr/include/sys"
setenv LDFLAGS "-L/lib -L/usr/lib -L/usr/local/lib -L/usr/lib/openssl/engines"
setenv LD_LIBRARY_PATH /opt/intel/compiler/12.0/compilerpro-
setenv SHLIB_PATH /opt/intel/compiler/12.0/compilerpro-
setenv PATH /bin:/usr/bin:/usr/local/bin:/opt/intel/compiler/12.0/compilerpro-
setenv path "/bin /usr/bin /usr/local/bin /opt/intel/compiler/12.0/compilerpro-"

The configure aborts with

checking size of time_t... configure: error: cannot determine a size for time_t

If I play with the above environmental variables, I can get around the time_t error, but then it always aborts at the "check for runtime" section of configure. And, it never finds OpenSSL, which is for sure installed on the machine.

If I set up all the environmental variables to use gcc to build a 64-bit version, everything runs great.

I have no objection to building the 32-bit version with gcc, if this is even possible.

I attempted to use gcc and configure with

./configure --host i686-pc-linux-gnu

But that still resulted in 64-bit shared libraries.

Any assistance would be much appreciated.

Bob Sorrells
Software Engineer/Software Developer
SI&O - Systems Integration & Operations
(314) 212-7692 (office)
Follow us on Facebook<>, Twitter<>, LinkedIn<>, YouTube<>, Google+<> and the Amdocs blog network<>.

This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at <>


Received on 2019-03-12