From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | SAKAI Kiyotaka <ksakai(at)isr(dot)co(dot)jp> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Compiling problem on Solaris |
Date: | 2006-12-14 17:02:30 |
Message-ID: | 458183A6.4040906@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
SAKAI Kiyotaka wrote:
> I compiled PostgreSQL-8.2.0 on Solaris 8, but I cannot execute
> binaries because it cannot find linked shared libraries, like
> libgcc_s.so.
>
> % cd src/interfaces/libp
> % rm libpq.so*
> % make
> gcc -shared -h libpq.so.5 fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o inet_aton.o strlcpy.o getaddrinfo.o -L../../../src/port -lsocket -lnsl -Wl,-R'/usr/local/pgsql/lib' -o libpq.so.5.0
> rm -f libpq.so.5
> ln -s libpq.so.5.0 libpq.so.5
> rm -f libpq.so
> ln -s libpq.so.5.0 libpq.so
> % ldd libpq.so
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libgcc_s.so.1 => (file not found)
> libc.so.1 => /usr/lib/libc.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
> /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
>
Gcc compiler is not part of Solaris 8. You can use LD_LIBRARY_PATH in
runtime or LDFLAGS for ./configure setup. I guess, that your suggested
patch could be generate unexpected result for other people.
By the way, sun studio compiler is significantly better on SPARC cpu
than gcc. You can download it from sun webpage. Also if you can upgrade
OS than Solaris 10 is faster and you can use DTrace probes in postgres.
Zdenek
From | Date | Subject | |
---|---|---|---|
Next Message | martin.pihlak | 2006-12-14 22:07:36 | BUG #2826: Segfault on prepared statement after changing column type |
Previous Message | Tom Lane | 2006-12-14 16:23:52 | Re: execute incorect query and get data |