Hi !! 
I am trying to install Postgresql-7.0.3 on the solaris 5.6 machine and
i am trying to configure it as a user and not as a root because i don't
have root access as it is my computer science departmental machine.
when i run a make it gives the following error:


gmake[3]: Leaving directory
`/cis/mira/projects/temp/postgresql-7.0.3/src/backen
d/utils/time'
sh  Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
/usr/local/bin/gcc -I../../include -I../../backend    -I..    -c fmgrtab.c
-o fm
grtab.o
ld -r -o SUBSYS.o fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o
fmgr/SUBS
YS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o sort/SUBSYS.o
time/
SUBSYS.o
gmake[2]: Leaving directory
`/cis/mira/projects/temp/postgresql-7.0.3/src/backen
d/utils'
/usr/local/bin/gcc -I../include -I../backend    -o postgres
access/SUBSYS.o boot
strap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o
lib/SUBSYS.o
 libpq/SUBSYS.o main/SUBSYS.o parser/SUBSYS.o nodes/SUBSYS.o
optimizer/SUBSYS.o
port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o
storage/SUBSYS
.o tcop/SUBSYS.o utils/SUBSYS.o  ../utils/version.o -lgen -lcrypt -lnsl
-lsocket
 -ldl -lm -lreadline -ltermcap -lncurses
libpq/SUBSYS.o: In function `be_recvauth':
libpq/SUBSYS.o(.text+0x5038): undefined reference to `__inet_ntoa'
libpq/SUBSYS.o: In function `process_hba_record':
libpq/SUBSYS.o(.text+0x60b0): undefined reference to `__inet_aton'
libpq/SUBSYS.o(.text+0x6114): undefined reference to `__inet_aton'
libpq/SUBSYS.o: In function `ident':
libpq/SUBSYS.o(.text+0x6cbc): undefined reference to `__inet_ntoa'
libpq/SUBSYS.o(.text+0x6dd0): undefined reference to `__inet_ntoa'
libpq/SUBSYS.o(.text+0x6ea0): undefined reference to `__inet_ntoa'
tcop/SUBSYS.o: In function `PostgresMain':
tcop/SUBSYS.o(.text+0x30e8): undefined reference to `__inet_ntoa'
gmake[1]: *** [postgres] Error 1
gmake[1]: Leaving directory
`/cis/mira/projects/temp/postgresql-7.0.3/src/backen
d'
gmake: *** [all] Error 2

Please if someone can help me out.
I was getting the same trouble with installing Apache WebServer in my
account and  had to go and modify the "makefiles" to include
-lbind option in them. Do i have to do the same thing here as well, i
tried doing that though and it didn't work.

Regards,
Amit

-------------------------------------------------------------------------------
"Let Noble thoughts come to us from all directions."  
                                                   -Rig Veda         
-------------------------------------------------------------------------------
Home:						   Office:
Amit Sharma,					   Amit Sharma,
1119,Kearney st.,				   Graduate Assistant,
Appt # 8,					   Dept. Of Mathematics,
Manhattan,					   Kansas State Univ.,
Kansas,66502.					   Kansas,66502.
Ph. No. 1-785-5373052				   Ph. No.1-785-5320561.


Wed, 7 Feb 2001 14:59:08 -0600 (CST)
Amit Sharma <amit@math.ksu.edu>
Solaris 5.6 install problem
Amit Sharma writes:

> libpq/SUBSYS.o(.text+0x5038): undefined reference to `__inet_ntoa'

> I was getting the same trouble with installing Apache WebServer in my
> account and  had to go and modify the "makefiles" to include
> -lbind option in them. Do i have to do the same thing here as well, i
> tried doing that though and it didn't work.

I think you need to add -lresolv.  Edit src/Makefile.global, the line
LIBS=...

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Mon, 12 Feb 2001 16:44:53 +0100 (CET)
Peter Eisentraut <peter_e@gmx.net>
Re: Solaris 5.6 install problem