cURL / Mailing Lists / curl-library / Single Mail


Re: How do I get a 64 bit program out of an Itanium HPUX compile for 7.47.1?

From: Tom Avery via curl-library <>
Date: Mon, 29 Feb 2016 17:14:23 +0000 (UTC)

Got a little help and putting this here for my reference as well as others.
I was trying to set the CFLAGS inside the file.
I did it  at the command line and it compiled properly
export LDOPTS="+s -L/usr/local/lib/hpux64 -L/usr/local/lib -L/usr/lib/hpux64 -L/usr/lib"

./configure CC=”gcc –mlp64”

that and a make clean and I get this now
# ls -la /usr/local/bin/curl

-rwxr-xr-x   1root      sys         434968 Feb 29 09:42/usr/local/bin/curl

# file /usr/local/bin/curl

/usr/local/bin/curl:    ELF-64 executable object file -IA64



Here’s the original in the box from the internet expresspackage.

# file /usr/bin/curl

/usr/bin/curl:  ELF-32 executable object file - IA64

# ls -la /usr/bin/curl

lrwxr-xr-x   1root      sys             27Feb 26 19:41 /usr/bin/curl -> /opt/iexpress/curl/bin/curl


Now off to figure out how HPUX makes these into .depot files for portability among boxes.

      From: Daniel Stenberg <>
 To: Tom Avery <>; libcurl development <>
 Sent: Sunday, February 28, 2016 2:22 PM
 Subject: Re: How do I get a 64 bit program out of an Itanium HPUX compile for 7.47.1?
On Sat, 27 Feb 2016, Tom Avery via curl-library wrote:

>     I am working on a compile of your sourcefor Curl 7.47.1 to get a 64 bit
> version for HPUX Itanium for 11i.31   I must be missing something in what I
> am doing because italways comes back with an ELF32 executable.

This is more of a HPUX compiler question than a curl one.

What compiler flag do you need to pass on then to force this to happen? Set
CFLAGS to contain that option when you run configure and it might be all you


List admin:
Received on 2016-02-29