Re: [HACKERS] Win32 native port

Started by Bruce Momjianover 22 years ago4 messages
#1Bruce Momjian
pgman@candle.pha.pa.us

Below is the email that prompted me to add the derived files to
WIN32_DEV CVS.

However, most people don't want them in there, so I have removed them,
and updated the web page to recommend the nightly snapshots (which have
the derived files), and mentioned the tools that will be needed for a
CVS build:

http://momjian.postgresql.org/main/writings/pgsql/win32.html

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

steve novick wrote:

That would not only be a "quick fix" but enable folks that work on sections
of the tree not depending the bison/flex input to have a simpler build
process.

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org]On Behalf Of Bruce Momjian
Sent: Thursday, September 04, 2003 6:18 PM
To: Peter Eisentraut
Cc: Doug McNaught; Dann Corbit; Joerg Hessdoerfer;
pgsql-hackers@postgresql.org; PostgreSQL Win32 port list
Subject: Re: [HACKERS] Win32 native port

Peter Eisentraut wrote:

Bruce Momjian writes:

As you can see from the new "Compiling" web page, I just normally
compile under Unix, distclean, then Win32 compile via Samba.

That isn't very efficient unless you have two machines or use something
like vmware.

One quick solution would be to add the bison/flex output files to the
WIN32_DEV CVS tree. Do people want that?

--
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 359-1001
+  If your life is a hard drive,     |  13 Roberts Road
+  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#2Merlin Moncure
merlin.moncure@rcsonline.com
In reply to: Bruce Momjian (#1)

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: Thursday, September 11, 2003 10:11 PM
To: Steve Novick
Cc: PostgreSQL-development; PostgreSQL Win32 port list
Subject: Re: [HACKERS] Win32 native port

Below is the email that prompted me to add the derived files to
WIN32_DEV CVS.

However, most people don't want them in there, so I have removed them,
and updated the web page to recommend the nightly snapshots (which

have

the derived files), and mentioned the tools that will be needed for a
CVS build:

Here: http://unxutils.sourceforge.net/ are ports of several unix utility
programs (including bison and flex) for win32. From my experiences
compiling the Peer Direct port, this is the easiest way to get started.

Merlin

#3Zeugswetter Andreas SB SD
ZeugswetterA@spardat.at
In reply to: Merlin Moncure (#2)

Below is the email that prompted me to add the derived files to
WIN32_DEV CVS.

However, most people don't want them in there, so I have removed them,
and updated the web page to recommend the nightly snapshots (which have
the derived files), and mentioned the tools that will be needed for a
CVS build:

Here: http://unxutils.sourceforge.net/ are ports of several unix utility
programs (including bison and flex) for win32. From my experiences
compiling the Peer Direct port, this is the easiest way to
get started.

While I agree, that those utilities are really fine, the trouble with
this bison is that it is version 1.28. pg needs a newer bison version.

The bison from MinGW does really only seem to work under obscure
preconditions :-(

Andreas

#4Jason Tishler
jason@tishler.net
In reply to: Merlin Moncure (#2)

On Fri, Sep 12, 2003 at 08:57:16AM -0400, Merlin Moncure wrote:

Here: http://unxutils.sourceforge.net/ are ports of several unix
utility programs (including bison and flex) for win32. From my
experiences compiling the Peer Direct port, this is the easiest way to
get started.

OK, I'll throw my hat in the ring... :,)

I recommend using Cygwin in -mno-cygwin (aka Mingw) mode for the
following reasons:

1. Using Cygwin gcc -mno-cygwin mode produces native Win32
applications (i.e., do not depending on the Cygwin DLL)
that are not affected by the Cygwin license.

2. Using Cygwin as the Win32 build environment will facilitate
keeping the Unix and Win32 build environments as similar as
possible. For example:

a. Posix path can be used for both environments
b. symlinks can be used for both environments

3. Cygwin provides all the necessary tools (e.g., bison and flex).

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6