cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling curl for HP-UX 11.23 64bit

From: Alfred Gebert <alfred.gebert_at_gmail.com>
Date: Mon, 24 Jan 2011 09:07:26 +0100

On Fri, Jan 21, 2011 at 6:13 PM, Federico Cozzi
<federico.cozzi_at_dp2000.it> wrote:
> Hello,
> I need to migrate an old libcurl-based program from HP-UX 11.11 32-bit to
> HP-UX 11.23 64-bit, both PA-RISC. The program was based on libcurl 7.16.2
> which was compiled statically.
>
> I recompiled libcurl-7.16.2 from the old source on the new machine
> (configure; make; make install) and it worked fine. However, when I
> recompile the program, I get:
>     ld: Mismatched ABI (not an ELF file) for -lcurl
> This is the library I am trying to link against:
> -->file libcurl.sl.4.0
> libcurl.sl.4.0: PA-RISC2.0 shared library -not stripped
> Is it compiled for 64bit? How can I recompile it for 64bit?

On HP-UX ia64 64-bit (not PA-RISC2.0) I added the option
  CFLAGS=+DD64
to the configure command. You can check your compiler manual too.

> (this is a
> shared library. Can I compile a static 64-bit library on HP-UX?)
>
> Thanks,
> Federico
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-24