Re: Postgres 7.1RC1 on Solaris 7 - Mailing list pgsql-general
| From | Justin Clift |
|---|---|
| Subject | Re: Postgres 7.1RC1 on Solaris 7 |
| Date | |
| Msg-id | 3ACEBC84.3690B1E1@iprimus.com.au Whole thread Raw |
| In response to | Re: Postgres 7.1RC1 on Solaris 7 (Peter Eisentraut <peter_e@gmx.net>) |
| Responses |
Re: Postgres 7.1RC1 on Solaris 7
|
| List | pgsql-general |
Hi,
It doesn't seem to have been mentioned that the preferable way to
compile PostgreSQL on Solaris is to unset your LD_LIBRARY_PATH and set
an LD_RUN_PATH instead.
That is right isn't it?
Regards and best wishes,
Justin Clift
Ahmed Moustafa wrote:
>
> Hi Tom,
>
> I did the test by hand and here is the output:
>
> bash-2.03# echo "int main() { return 0; }" >conftest.c
> bash-2.03# gcc -o conftest conftest.c -lz -lresolv -lgen -lnsl -lsocket -ldl
> -lm
> bash-2.03# ./conftest
> ld.so.1: ./conftest: fatal: libz.so: open failed: No such file or directory
> Killed
> bash-2.03# ldd conftest
> libz.so => (file not found)
> libresolv.so.2 => /usr/lib/libresolv.so.2
> libgen.so.1 => /usr/lib/libgen.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libm.so.1 => /usr/lib/libm.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
> /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> bash-2.03#
>
> So, how can I fix the problem, please?
>
> Best Regards,
>
> Ahmed
>
> Tom Lane wrote:
>
> > Peter Eisentraut <peter_e@gmx.net> writes:
> > > Ahmed Moustafa writes:
> > >> I downloaded Postgres 7.1RC1 from
> > >> ftp://ftp.postgresql.org/pub/dev/postgresql-7.1RC1.tar.gz. When I did
> > >> ./configure, I got a error with the test program. I could not figure out
> > >> the problem. Would you take a look at the config.log
> > >> (http://www.photo.net/users/ahmed/config.log) and tell me the problem
> > >> is, please?
> >
> > > In configure, line 6846, can you replace the 'return 0;' by 'exit(0);'?
> > > It's a long shot, but I don't see any other possibility.
> >
> > I am suspicious that it's a library linking issue. Unfortunately,
> > configure unhelpfully /dev/null's the stderr output obtained while
> > trying to execute the test program. (Peter, shouldn't we suggest to
> > the autoconf boys that that output ought to go into config.log?)
> >
> > Please try running the same test scenario by hand so we can see what is
> > printed:
> >
> > echo "int main() { return 0; }" >conftest.c
> > gcc -o conftest conftest.c -lz -lresolv -lgen -lnsl -lsocket -ldl -lm
> > ./conftest
> >
> > It might also be useful to see what "ldd conftest" produces.
> >
> > regards, tom lane
>
> ------------------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
pgsql-general by date: