Обсуждение: make hangs on Solaris 2.6

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

make hangs on Solaris 2.6

От
Ganimede
Дата:
Hi list,

few weeks ago I compiled PostgreSQL 8.3.1 on Solaris SPARC 9 without errors or problems. Today I would like to compile
iton my old Sparis SPARC 2.6 box, so I've download new gnu software. 

make hangs with this message:

gmake[3]: Leaving directory `/mnt/station-3/postgresql-8.3.1/src/timezone'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing-fwrapv -L../../src/port  -Wl,-R'/usr/local/pgsql/lib'  access/SUBSYS.o bootstrap/SUBSYS.o
catalog/SUBSYS.oparser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
nodes/SUBSYS.ooptimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o
tcop/SUBSYS.otsearch/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o ../../src/port/libpgport_srv.a -lposix4
-lsocket-ldl -lm -o postgres 
Undefined                       first referenced
 symbol                             in file
gethostbyname                       ../../src/port/libpgport_srv.a(getaddrinfo_srv.o)  (symbol belongs to implicit
dependency/usr/lib/libnsl.so.1) 
h_errno                             ../../src/port/libpgport_srv.a(getaddrinfo_srv.o)  (symbol belongs to implicit
dependency/usr/lib/libnsl.so.1) 
inet_ntoa                           ../../src/port/libpgport_srv.a(getaddrinfo_srv.o)  (symbol belongs to implicit
dependency/usr/lib/libnsl.so.1) 
ld: fatal: Symbol referencing errors. No output written to postgres
collect2: ld returned 1 exit status
gmake[2]: *** [postgres] Error 1
gmake[2]: Leaving directory `/mnt/station-3/postgresql-8.3.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/mnt/station-3/postgresql-8.3.1/src'
gmake: *** [all] Error 2
[station-1] /mnt/station-3/postgresql-8.3.1 |

I downloaded from http://www.sunfreeware.com

make-3.81-sol26-sparc-local.gz
gcc-3.4.6-sol26-sparc-local.gz
zip-2.32-sol26-sparc-local.gz
readline-5.2-sol26-sparc-local.gz
gzip-1.3.12-sol26-sparc-local

Have you got any idea ?

Regards.
Ganimede Dignan.





Re: make hangs on Solaris 2.6

От
Tom Lane
Дата:
Ganimede <newtoolbox@yahoo.com> writes:
> few weeks ago I compiled PostgreSQL 8.3.1 on Solaris SPARC 9 without errors or problems. Today I would like to
compileit on my old Sparis SPARC 2.6 box, so I've download new gnu software. 

2.6?  How old is that?

> Undefined                       first referenced
>  symbol                             in file
> gethostbyname                       ../../src/port/libpgport_srv.a(getaddrinfo_srv.o)  (symbol belongs to implicit
dependency/usr/lib/libnsl.so.1) 
> h_errno                             ../../src/port/libpgport_srv.a(getaddrinfo_srv.o)  (symbol belongs to implicit
dependency/usr/lib/libnsl.so.1) 
> inet_ntoa                           ../../src/port/libpgport_srv.a(getaddrinfo_srv.o)  (symbol belongs to implicit
dependency/usr/lib/libnsl.so.1) 
> ld: fatal: Symbol referencing errors. No output written to postgres

Just guessing, but maybe it will help to add -lnsl to LIBS (in
src/Makefile.global) after running configure.

            regards, tom lane