curl / Mailing Lists / curl-library / Single Mail

curl-library

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

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

Hello,

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 12.0.0.084 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-12.0.0.084/compiler/include -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-12.0.0.084/compiler/lib/ia32:/lib:/usr/lib
setenv SHLIB_PATH /opt/intel/compiler/12.0/compilerpro-12.0.0.084/compiler/lib/ia32:/lib:/usr/lib
setenv PATH /bin:/usr/bin:/usr/local/bin:/opt/intel/compiler/12.0/compilerpro-12.0.0.084/bin/ia32
setenv path "/bin /usr/bin /usr/local/bin /opt/intel/compiler/12.0/compilerpro-12.0.0.084/bin/ia32"

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)
[cid:image004.jpg_at_01D29126.CCCB8380]
Follow us on Facebook<http://www.facebook.com/amdocs/>, Twitter<http://twitter.com/amdocs>, LinkedIn<http://www.linkedin.com/company/amdocs>, YouTube<http://www.youtube.com/amdocsinc>, Google+<https://plus.google.com/105657940751678445194> and the Amdocs blog network<http://blogs.amdocs.com/>.

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 https://www.amdocs.com/about/email-terms-of-service <https://www.amdocs.com/about/email-terms-of-service>

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

image001.jpg
Received on 2019-03-12