dbTalk Databases Forums  

[BUGS] 8.0.0b1 cygwin problems

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] 8.0.0b1 cygwin problems in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Reini Urban
 
Posts: n/a

Default [BUGS] 8.0.0b1 cygwin problems - 08-24-2004 , 02:42 PM






This is a multi-part message in MIME format.
--------------050506010307010709020607
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

I haven't tested this with mingw or MSVC but the default cygwin layout
needs the attached header changes.

pending problems:

src/timezone has a configure problem
pgtz.c:105:2: #error No way to determine TZ? Can this happen?

PGAC_VAR_INT_TIMEZONE return no for cygwin, but our time.h has this:
extern __IMPORT time_t _timezone;
which is from newlib.
I truly mistrust PGAC_VAR_INT_TIMEZONE in config/c-library.m4

Right now the gcc-3.4.1 build for cygwin is in experimental status, we
will see what will change then. So far we only have gcc-3.3.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--------------050506010307010709020607
Content-Type: text/plain;
name="postgresql-8.0.0beta1-dirmode.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="postgresql-8.0.0beta1-dirmode.diff"

--- postgresql-8.0.0beta1/src/port/dirmod.c.orig 2004-08-08 07:44:36.000000000 +0100
+++ postgresql-8.0.0beta1/src/port/dirmod.c 2004-08-24 19:20:56.557435000 +0100
@@ -33,16 +33,28 @@


#include "miscadmin.h"
+
+#ifdef __CYGWIN__
+#include <windows.h>
+#include <w32api/winioctl.h>
+#else
#include <winioctl.h>
+#undef unlink
+#endif

#undef rename
-#undef unlink

+/* 2004-08-24 20:20:54 rurban: There are no pgport_palloc versions yet */
+#if 0
#ifndef FRONTEND
+#undef palloc
+#undef pstrdup
+#undef pfree
#define palloc(sz) pgport_palloc(sz)
#define pstrdup(str) pgport_pstrdup(str)
#define pfree(pointer) pgport_pfree(pointer)
#endif
+#endif


/*

--------------050506010307010709020607
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

--------------050506010307010709020607--

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.