pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Namrata <nlabade@nulinkinc.com>
To: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-admin <pgsql-admin@postgresql.org>
To: postgres <pgsql-general@postgresql.org>
Subject: Re: problem in compilation.
Date: Tue, 10 Jul 2001 18:22:06 +0530
Message-ID: <3B4AFA76.31D4B8C9@nulinkinc.com> (raw)
References: <Pine.LNX.4.30.0107091748570.677-100000@peter.localdomain>

Hi There,


1. We had to make the following changes to the configure script, which
was not otherwise recognizing the presence of some libraries.

The modifications in the configure script are the following

A. Removal of -Wl from LDFLAGS

B. Addition of an empty main function ( int main() { ; return 0; } )
while creating
conftest.* files for the following checks
1. zlib.h
2. crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h
sys/pstat.h
sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h
termios.h
kernel/OS.h kernel/image.h SupportDefs.h
3. netinet/in.h
4. netinet/tcp.h
5. string.h and strings.h
6. readline/readline.h readline.h

ii. The following change has been done in src/backend/catalog/Makefile
in the
rules for generating global.bki and template1.bki files
CPP='$(CPP) -E' instead of CPP='$(CPP)'

After these changes, the compilation went through properly, but we had
problems
while invoking initdb, as given below.

+ mkdir /export/home/users/postgres/data/base/1
+ [  = yes ]
BACKEND_TALK_ARG=-Q
BACKENDARGS=-boot -C -F -D/export/home/users/postgres/data -Q
FIRSTRUN=-boot -x1 -C -F -D/export/home/users/postgres/data -Q
+ echo Creating template1 database in
/export/home/users/postgres/data/base/1
Creating template1 database in /export/home/users/postgres/data/base/1
+ [  = yes ]
+ cat /export/home/users/manoj/postgres/share/template1.bki
+ sed -e s/PGUID/1004/g
+ ./postgres -boot -x1 -C -F -D/export/home/users/postgres/data -Q
template1
DEBUG:  database system was shut down at 2001-07-09 11:28:13 IST
DEBUG:  CheckPoint record at (0, 8)
DEBUG:  Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 16384
DEBUG:  database system is in production state
syntax error 1200 : -> \
ERROR:  pg_atoi: error in "-": can't parse "-"
+ exit_nicely
+ stty echo
+ echo

+ echo initdb failed.
initdb failed.
+ [  != yes ]
+ [ yes = yes ]
+ echo Removing /export/home/users/postgres/data.
Removing /export/home/users/postgres/data.
+ rm -rf /export/home/users/postgres/data
+ echo Removing temp file /tmp/initdb.7563.
Removing temp file /tmp/initdb.7563.
+ rm -rf /tmp/initdb.7563
+ exit 1


-------------------------------------------------------------------------------

Thanks,
Namrata.



view thread (4+ messages)  latest in thread

Message-ID: <3B4AFA76.31D4B8C9@nulinkinc.com>
Permalink:  ../3B4AFA76.31D4B8C9@nulinkinc.com/
Also on:    postgresql.org/message-id/3B4AFA76.31D4B8C9@nulinkinc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nlabade@nulinkinc.com, peter_e@gmx.net, pgsql-general@postgresql.org
  Subject: Re: problem in compilation.
  In-Reply-To: <3B4AFA76.31D4B8C9@nulinkinc.com>
  References: <Pine.LNX.4.30.0107091748570.677-100000@peter.localdomain> <3B4AFA76.31D4B8C9@nulinkinc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox