cURL / Mailing Lists / curl-users / Single Mail


Re: hpux64-parisc2-cc Shared Libraries

From: Albert Chin <>
Date: Thu, 31 Jan 2002 01:04:26 -0600

On Tue, Jan 29, 2002 at 04:34:26PM -0500, Mike Tardif wrote:
> Currently, on HP-UX B.11 (64), building curl-7.9.1 (and curl-7.9.3)
> yields shared libraries that are in this format:
> PA-RISC2.0 shared library
> as reported by the file command. I need to build ELF-64 shared
> libraries -- i.e., where file reports:
> ELF-64 shared object file - PA-RISC 2.0 (LP64)
> Anyone know the magic configure incantation to build ELF-64 shared
> libraries? TIA.

How are you building curl? I take it you have the HP C compiler. If
not, then I think you're out of luck. Actually, even with it, you
might be out of luck as libtool, used by curl to build the shared
library, doesn't know how to build HP-UX ELF-64 shared libraries with
proper dependencies. We plan to fix this in a few weeks. If you're
building just the library without SSL support, you should be OK by
adding +DA2.0W to CFLAGS.

You're welcome to visit:
for info on how to manually build the shared library the way you want.
Build with curl as usual and then rebuild the .sl library manually.

Unfortunately, you'll need to fix things like:
  /* Define this to 'int' if in_addr_t is not an available typedefed type */
  #define in_addr_t int
which is wront on HP-UX 11.00. Looks like TYPE_IN_ADDR_T is wrong.
Don't have time to fix now though. Oh wait. Patch below fixes it.

albert chin (
-- snip snip
--- acconfig.h.orig	Thu Jan 31 00:59:01 2002
+++ acconfig.h	Thu Jan 31 00:59:08 2002
@@ -61,6 +61,3 @@
-/* Define this to 'int' if in_addr_t is not an available typedefed type */
-#undef in_addr_t
--- acinclude.m4.orig	Thu Jan 31 00:57:30 2002
+++ acinclude.m4	Thu Jan 31 00:57:36 2002
@@ -176,7 +176,7 @@
       AC_DEFINE_UNQUOTED(in_addr_t, $curl_cv_in_addr_t_equiv,
 			[type to use in place of in_addr_t if not defined])],
       [#include <sys/types.h>
-#include <sys/socket.h>,
+#include <sys/socket.h>
 #include <arpa/inet.h>])
Received on 2002-01-31