Обсуждение: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

Поиск
Список
Период
Сортировка

problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
u235sentinel
Дата:
Not sure if this is the right list but here goes.

I have gnu gcc and make on a Solaris 10 AMD64 system and having a bit of
a problem compling postgres 8.3.7 with openssl.  I've even tried with a
newly compiled version of openssl.  Verison 98 h-k.

I did read the solaris faq and it hasn't helped.  I"m curious if I"m
missing a bit of instruction somewhere in the docs that will tip me off
on how to build postgres.

I've been able to build it just fine btw without openssl.  But when I
tie ssl in it seems to compile but running pg_ctl gives me a relocate
error on libpq.so.

I'll copy / paste the error if I'm in the right place :-)

Thanks!



Re: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
"Joshua D. Drake"
Дата:
On Thu, 2009-09-17 at 12:06 -0600, u235sentinel wrote:
> Not sure if this is the right list but here goes.
>
> I have gnu gcc and make on a Solaris 10 AMD64 system and having a bit of
> a problem compling postgres 8.3.7 with openssl.  I've even tried with a
> newly compiled version of openssl.  Verison 98 h-k.

This doesn't answer your question but why not use prepackaged binaries?

>
> I did read the solaris faq and it hasn't helped.  I"m curious if I"m
> missing a bit of instruction somewhere in the docs that will tip me off
> on how to build postgres.
>
> I've been able to build it just fine btw without openssl.  But when I
> tie ssl in it seems to compile but running pg_ctl gives me a relocate
> error on libpq.so.
>
> I'll copy / paste the error if I'm in the right place :-)
>
> Thanks!
>
>
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander

Re: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
Scott Marlowe
Дата:
On Thu, Sep 17, 2009 at 12:06 PM, u235sentinel <u235sentinel@gmail.com> wrote:
> Not sure if this is the right list but here goes.
>
> I have gnu gcc and make on a Solaris 10 AMD64 system and having a bit of a
> problem compling postgres 8.3.7 with openssl.  I've even tried with a newly
> compiled version of openssl.  Verison 98 h-k.
>
> I did read the solaris faq and it hasn't helped.  I"m curious if I"m missing
> a bit of instruction somewhere in the docs that will tip me off on how to
> build postgres.
>
> I've been able to build it just fine btw without openssl.  But when I tie
> ssl in it seems to compile but running pg_ctl gives me a relocate error on
> libpq.so.

I remember this coming up a few months back and it had something to do
with there being > 1 version fo openssl installed and the compiler
wasn't seeing the right one.

> I'll copy / paste the error if I'm in the right place :-)

Yeap, it's a fine place for it.

Re: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
John P Weatherman
Дата:
It would also be helpful to know what your LD_LIBRARY_PATH looks like
and if you can do a 'find / -name libpq.so -print' to see where all the
copies of this library may reside.



On Thu, 2009-09-17 at 12:16 -0600, Scott Marlowe wrote:
> On Thu, Sep 17, 2009 at 12:06 PM, u235sentinel <u235sentinel@gmail.com> wrote:
> > Not sure if this is the right list but here goes.
> >
> > I have gnu gcc and make on a Solaris 10 AMD64 system and having a bit of a
> > problem compling postgres 8.3.7 with openssl.  I've even tried with a newly
> > compiled version of openssl.  Verison 98 h-k.
> >
> > I did read the solaris faq and it hasn't helped.  I"m curious if I"m missing
> > a bit of instruction somewhere in the docs that will tip me off on how to
> > build postgres.
> >
> > I've been able to build it just fine btw without openssl.  But when I tie
> > ssl in it seems to compile but running pg_ctl gives me a relocate error on
> > libpq.so.
>
> I remember this coming up a few months back and it had something to do
> with there being > 1 version fo openssl installed and the compiler
> wasn't seeing the right one.
>
> > I'll copy / paste the error if I'm in the right place :-)
>
> Yeap, it's a fine place for it.
>


Re: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
u235sentinel
Дата:
Joshua D. Drake wrote:
> On Thu, 2009-09-17 at 12:06 -0600, u235sentinel wrote:
>
>>
>
> This doesn't answer your question but why not use prepackaged binaries?
>
>
>
We're using prepackaged binaries from postgres.org and it seem to be
core dumping or seg faulting... well.. at least psql is.  It doesn't
seem to be very stable.  The 64 bit version at least.

I figured after a couple weeks of working on this I'd just start over
with my own build

Re: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
u235sentinel
Дата:
John P Weatherman wrote:
> It would also be helpful to know what your LD_LIBRARY_PATH looks like
> and if you can do a 'find / -name libpq.so -print' to see where all the
> copies of this library may reside.
>
>>
>> Yeap, it's a fine place for it.
>>
>>
>
>
>

Sorry for the quick post but I was rushing during lunch and I can't get
gmail to work from work.  Blocked on our proxy apparently :-(

Here is the LIBRARY_PATH

# echo $LD_LIBRARY_PATH
/usr/local/ssl98k/lib:/usr/lib/amd64:/usr/sfw/lib/64:/usr/local/lib:/usr/sfw/lib:/usr/openwin/lib

I've switched it all around to hopefully help find stuff.  And btw, the
ssl98k is a new 64 build I put together.  There were errors using the
one that came with solaris... weird.  I'll write it down if interested.
I figured the latest build should resolve any problems.  And btw, ssl98k
works great by itself.  Seems pretty stable.

Here is how I run configure

# ./configure --prefix=/usr/local/postgres CC="cc -m64
-I/usr/local/ssl98k/include -L/usr/local/ssl98k/lib
-I/usr/local/include" --with-openssl

This runs fine however when I run make then try running pg_ctl (for
example) here is the error I get


/usr/local/postgres/bin/pg_ctl --help
ld.so.1: pg_ctl: fatal: relocation error: R_AMD64_32: file
/usr/local/postgres/lib/libpq.so.5: symbol (unknown): value
0xfffffd7fff1ccad0 does not fit
Killed

Thoughts on what I am doing wrong?

And openssl is confirmed at 64 bit.


# file openssl
openssl:        ELF 64-bit LSB executable AMD64 Version 1, dynamically
linked, not stripped, no debugging information available


I have this working just fine under 64 bit without openssl.  It's very
stable and all.  But I do have a requirement to encrypt everything so I
have to go this route.

Thanks a bunch!!


Re: problems compiling postgres 8.3.7 on Solaris 10 64 bitwith openssl

От
"Joshua D. Drake"
Дата:
On Thu, 2009-09-17 at 12:06 -0600, u235sentinel wrote:
> Not sure if this is the right list but here goes.
>
> I have gnu gcc and make on a Solaris 10 AMD64 system and having a bit of
> a problem compling postgres 8.3.7 with openssl.  I've even tried with a
> newly compiled version of openssl.  Verison 98 h-k.

This doesn't answer your question but why not use prepackaged binaries?

>
> I did read the solaris faq and it hasn't helped.  I"m curious if I"m
> missing a bit of instruction somewhere in the docs that will tip me off
> on how to build postgres.
>
> I've been able to build it just fine btw without openssl.  But when I
> tie ssl in it seems to compile but running pg_ctl gives me a relocate
> error on libpq.so.
>
> I'll copy / paste the error if I'm in the right place :-)
>
> Thanks!
>
>
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander


Re: problems compiling postgres 8.3.7 on Solaris 10 64 bit with openssl

От
u235sentinel
Дата:
I'm curious if there are any thoughts on what I'm missing here.  The 64
bit postgres runs just fine without openssl.  As soon as I tie that in I
get headaches :/

Thanks!

u235sentinel wrote:
> John P Weatherman wrote:
>> It would also be helpful to know what your LD_LIBRARY_PATH looks like
>> and if you can do a 'find / -name libpq.so -print' to see where all the
>> copies of this library may reside.
>>
>>>
>>> Yeap, it's a fine place for it.
>>>
>>>
>>
>>
>>
>
> Sorry for the quick post but I was rushing during lunch and I can't
> get gmail to work from work.  Blocked on our proxy apparently :-(
>
> Here is the LIBRARY_PATH
>
> # echo $LD_LIBRARY_PATH
> /usr/local/ssl98k/lib:/usr/lib/amd64:/usr/sfw/lib/64:/usr/local/lib:/usr/sfw/lib:/usr/openwin/lib
>
>
> I've switched it all around to hopefully help find stuff.  And btw,
> the ssl98k is a new 64 build I put together.  There were errors using
> the one that came with solaris... weird.  I'll write it down if
> interested.  I figured the latest build should resolve any problems.
> And btw, ssl98k works great by itself.  Seems pretty stable.
>
> Here is how I run configure
>
> # ./configure --prefix=/usr/local/postgres CC="cc -m64
> -I/usr/local/ssl98k/include -L/usr/local/ssl98k/lib
> -I/usr/local/include" --with-openssl
>
> This runs fine however when I run make then try running pg_ctl (for
> example) here is the error I get
>
>
> /usr/local/postgres/bin/pg_ctl --help
> ld.so.1: pg_ctl: fatal: relocation error: R_AMD64_32: file
> /usr/local/postgres/lib/libpq.so.5: symbol (unknown): value
> 0xfffffd7fff1ccad0 does not fit
> Killed
>
> Thoughts on what I am doing wrong?
>
> And openssl is confirmed at 64 bit.
>
>
> # file openssl
> openssl:        ELF 64-bit LSB executable AMD64 Version 1, dynamically
> linked, not stripped, no debugging information available
>
>
> I have this working just fine under 64 bit without openssl.  It's very
> stable and all.  But I do have a requirement to encrypt everything so
> I have to go this route.
>
> Thanks a bunch!!
>
>