Thread: readline doubt with postgresql (on HP-UX)

readline doubt with postgresql (on HP-UX)

From
"kanchana"
Date:
Hello all,
 
 
 I'm trying to build postgresql on PA-RISC.
By default it took readline libreary as "shared".
But i tried to compile postgresql with STATIC readline library.
It doesn't take the static readline(libreadline.a), it took libreadline.sl(shared library).
 
My Q is does postgresql take only the shared readline library?
 if so, i want to have install readline library as shared in my machine before stating postgresql.
Am i correct?
 
Plz reply asap.
Advance thanks.
 
Regards,
-Kanchana

Re: readline doubt with postgresql (on HP-UX)

From
Giles Lean
Date:
kanchana writes:

>  I'm trying to build postgresql on PA-RISC.=20
> By default it took readline libreary as "shared".

The HP-UX linker, like most linkers, will prefer a shared library to
a static one unless you are linking the whole program statically.

Easy workarounds are to either install the shared readline library,
or else build readline only as a static library, and link against
that.

You'd have to provide some details of what you are doing (HP-UX
version, compiler you're using, configure options) for anyone
to fully understand what you're doing.

Regards,

Giles

Re: readline doubt with postgresql (on HP-UX)

From
"kanchana"
Date:
Hello Lean,
Thanks for your response. I'll try.
and get back to you once i done.

FYI, i'm using
HP-UX-11.11(PA-RISC)
gcc- compiler
configure options - krb5 and ssl


Regards,
-Kanchana


>
> kanchana writes:
>
> >  I'm trying to build postgresql on PA-RISC.=20
> > By default it took readline libreary as "shared".
>
> The HP-UX linker, like most linkers, will prefer a shared library to
> a static one unless you are linking the whole program statically.
>
> Easy workarounds are to either install the shared readline library,
> or else build readline only as a static library, and link against
> that.
>
> You'd have to provide some details of what you are doing (HP-UX
> version, compiler you're using, configure options) for anyone
> to fully understand what you're doing.
>
> Regards,
>
> Giles
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>