Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c,

From: Reini Urban <rurban(at)x-ray(dot)at>
To: pgsql-cygwin(at)postgresql(dot)org
Cc: Jason Tishler <jason(at)tishler(dot)net>
Subject: Re: [PATCHES] cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c,
Date: 2004-08-24 23:12:46
Message-ID: 412BCB6E.405@x-ray.at (view raw or flat)
Thread:
Lists: pgsql-cygwinpgsql-patches
Jason Tishler schrieb:
> On Tue, Aug 24, 2004 at 09:49:51PM +0200, Reini Urban wrote:
>>There's on remaining issue for the cygwin build:
>>../../src/port/libpgport.a(dirmod.o)(.text+0x5ee):dirmod.c: undefined 
>>reference to `__imp__CurrentMemoryContext'
>>../../src/port/libpgport.a(dirmod.o)(.text+0x64b):dirmod.c: undefined 
>>reference to `__imp__CurrentMemoryContext'
> 
> 
> Note I have no experience with 8.0 so the following is a WAG...
> The above is likely caused by not linking against an import library
> (i.e., libpostgres.a).

Yes, it is defined in libpostgres.a. Hmm, a cross-dependency problem in 
the Makefile. With an added -lpostgres postgres.exe builds fine.
But I'll try to add the single object file only where it is defined.

I also see that it is still linking against cygipc.
LIBS=-lintl -lssl -lcrypto -lz -lreadline -lcygipc -lcrypt -lresolv -lm

Do we still need this? As I see it, pgsql has its own ipc mechanism.
Without -lcygipc it also builds fine. ...

 >I'm quite willing to help to ensure a smooth transition and to help
 >minimize your "pain." :,)  Maybe 8.0 can be a joint effort, with you
 >taking over fully with 8.0.x or 8.1?

Sure, why not?
But I'm also trying to build the 7.4.5 now, because I want to see the 
changes in the new 8 branch. So you can sit and have a rest. :)

 From another thread...
 > Is "--with-template=cygwin" required?  It wasn't before.

Yes, this is apparently new for 8.x.
And it does help to be precise in the configure line.

BTW: I will convert your build.sh to the cygwin generic-build-script 
system. This is much easier.

 > Does "--with-tcl" no longer build cleanly?

This wasn't in your 7.4.3 build.sh included and I didn't install the 
tcl/tk sources (only under my perltk tree). But I can have a try.

I have tclsh, the headers and the libs, just a tclConfig.sh script is 
missing from the cygwin build. Should not be that hard. All the libs and 
includes are at the standard paths.

I'll finish the 8.0.0-beta1 port to cygwin, and post to the patches list 
then the cumulative patches. Questions to pgsql-hackers or pgsql-cygwin?

The 8.x build is almost okay now. Just a remaining libreadline issue in 
src/bin/psql/tab-complete.c
And testing.

And sockets would also be fine.
$ postgresql-8.0.0beta1-1/src/backend/postgres.exe
FATAL:  unrecognized configuration parameter "tcpip_socket"
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

In response to

Responses

pgsql-cygwin by date

Next:From: Reini UrbanDate: 2004-08-24 23:40:57
Subject: Re: dlopen error 128 with createlang
Previous:From: Jason TishlerDate: 2004-08-24 20:24:50
Subject: Re: cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c, timezone/pgtz.c

pgsql-patches by date

Next:From: Jason TishlerDate: 2004-08-25 12:05:44
Subject: Re: [PATCHES] cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c, timezone/pgtz.c
Previous:From: Peter EisentrautDate: 2004-08-24 21:45:54
Subject: Re: Translation updates for 7.4/8.0: postgres-ru

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group