Thread: Problem in installation of PostgreSQL 7.0.2

Problem in installation of PostgreSQL 7.0.2

From
"Chandra Sekhar . K"
Date:
Hi,

I had downloaded the latest postgresql tar ball
and carried out the installation on 'Windows NT'
platform (with the aid of the cygwin binaries).

I followed the instructions given in the readme
file titled 'Installing PostgreSQL on NT'.

I could successfully run the 'configure' command.
The next step 'make' is unsuccessful. 'make' terminates
giving the following diagnostics :

----------------------------------------------------
make[2]: Entering directory `/usr/src/utils'
gcc -I../include -I../backend -I/usr/local/include -O2
-I/usr/local/include -Wall -Wmissing-prototypes -Wmissing-decla
rations -c -o dllinit.o dllinit.c
dllinit.c:49: conflicting types for `DllMain'
dllinit.c:44: previous declaration of `DllMain'
dllinit.c:49: conflicting types for `_cygwin_dll_entry'
dllinit.c:49: previous declaration of `_cygwin_dll_entry'
dllinit.c:81: conflicting types for `DllMain'
dllinit.c:49: previous declaration of `DllMain'
make[2]: *** [dllinit.o] Error 1
make[2]: Leaving directory `/usr/src/utils'
make[1]: *** [../utils/dllinit.o] Error 2
make[1]: Leaving directory `/usr/src/backend'
make: *** [all] Error 2
----------------------------------------------------------


Any clues on this ?
Help needed ASAP !


Thnaks,
Chandra

Re: Problem in installation of PostgreSQL 7.0.2

From
Pete Forman
Date:
[PostgreSQL 7.0.2, NT, Cygwin 1.1.4]

I presume that you have cygipc 1.07 and copied in tcp.h.

You also need Jason Tishler's (revised) patch posted on this list on
2000-09-26.

The file /usr/include/cygwin/cygwin_dll.h needs to be updated.  I got
mine from <http://sources.redhat.com/cygwin/snapshots/cygwin-src-20000
918.tar.bz2/winsup/cygwin/include/cygwin/cygwin_dll.h>.  That is
probably the cause of your immediate problem.

If you don't have an /etc/passwd, then you should run mkpasswd.  See
the Cygwin docs.
--
Pete Forman                 -./\.- Disclaimer: This post is originated
Western Geophysical           -./\.-  by myself and does not represent
pete.forman@westgeo.com         -./\.-  the opinion of Baker Hughes or
http://www.crosswinds.net/~petef  -./\.-  its divisions.

Re: Problem in installation of PostgreSQL 7.0.2

From
Jason Tishler
Date:
Chandra,

On Tue, Oct 31, 2000 at 08:00:18PM +0000, Chandra Sekhar . K wrote:
> Any clues on this ?

Please see the following:

    http://people.freebsd.org/~kevlo/postgres/portNT.html

The solution to your problem is to perform step #6 of Install PostgreSQL
7.0.2.

Jason

--
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

Re: Problem in installation of PostgreSQL 7.0.2

From
"Chandra Sekhar . K"
Date:
Hi Jason,

      Thanks for your response but this URL does seems to be existing now.
  (
http://sources.redhat.com/cygwin/snapshots/cygwin-src-20000918.tar.bz2/winsu
p/cygwin/include/cygwin/cygwin_dll.h  )

 How can I get the old patches ?

Chandra

At 09:58 AM 10/31/00 -0500, Jason Tishler wrote:
>Chandra,
>
>On Tue, Oct 31, 2000 at 08:00:18PM +0000, Chandra Sekhar . K wrote:
>> Any clues on this ?
>
>Please see the following:
>
>    http://people.freebsd.org/~kevlo/postgres/portNT.html
>
>The solution to your problem is to perform step #6 of Install PostgreSQL
>7.0.2.
>
>Jason
>
>--
>Jason Tishler
>Director, Software Engineering       Phone: +1 (732) 264-8770 x235
>Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
>82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
>Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com
>

Re: Problem in installation of PostgreSQL 7.0.2

From
Pete Forman
Date:
Chandra Sekhar . K writes:
 >       Thanks for your response but this URL does seems to be existing now.
 >   (
 > http://sources.redhat.com/cygwin/snapshots/cygwin-src-20000918.tar.bz2/winsu
 > p/cygwin/include/cygwin/cygwin_dll.h  )
 >
 >  How can I get the old patches ?

Change the date within that URL from 20000918 to 20001027.  The file
contents are the same, give or take whitespace.
--
Pete Forman                 -./\.- Disclaimer: This post is originated
Western Geophysical           -./\.-  by myself and does not represent
pete.forman@westgeo.com         -./\.-  the opinion of Baker Hughes or
http://www.crosswinds.net/~petef  -./\.-  its divisions.

Re: Problem in installation of PostgreSQL 7.0.2

From
"Chandra Sekhar . K"
Date:
Now the previous problem is solved but getting the new error

~~~~~~~

make[2]: Leaving directory `/usr/src/utils'
dlltool --export-all --output-def postgres.def access/SUBSYS.o
bootstrap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o exe
cutor/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
dlltool --dllname postgres.exe --def postgres.def --output-lib libpostgres.a
dlltool --dllname postgres.exe --output-exp postgres.exp --def postgres.def
gcc -g -o postgres.exe -Wl,--base-file,postgres.base postgres.exp
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o co
mmands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
parser/SUBSYS.o nodes/SUBSYS.o optimizer/SUB
SYS.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 -L/usr/local/lib -lcygipc -lcrypt -lcygwin -lkernel32
utils/SUBSYS.o(.text+0x42ec7):elog.c: undefined reference to `_sys_nerr'
utils/SUBSYS.o(.text+0x438a5):exc.c: undefined reference to `_sys_nerr'
collect2: ld returned 1 exit status
make[1]: *** [postgres] Error 1
make[1]: Leaving directory `/usr/src/backend'
make: *** [all] Error 2


Thanks,
Chandra



At 03:48 PM 10/31/00 +0000, Pete Forman wrote:
>Chandra Sekhar . K writes:
> >       Thanks for your response but this URL does seems to be existing now.
> >   (
> > http://sources.redhat.com/cygwin/snapshots/cygwin-src-20000918.tar.bz2/winsu
> > p/cygwin/include/cygwin/cygwin_dll.h  )
> >
> >  How can I get the old patches ?
>
>Change the date within that URL from 20000918 to 20001027.  The file
>contents are the same, give or take whitespace.
>--
>Pete Forman                 -./\.- Disclaimer: This post is originated
>Western Geophysical           -./\.-  by myself and does not represent
>pete.forman@westgeo.com         -./\.-  the opinion of Baker Hughes or
>http://www.crosswinds.net/~petef  -./\.-  its divisions.
>