Please help with making libpqdll.lib!! - Mailing list pgsql-cygwin

From Sokolow2
Subject Please help with making libpqdll.lib!!
Date
Msg-id 43730968.20021211105459@mail.ru
Whole thread Raw
List pgsql-cygwin
Hello pgsql-cygwin,

I cannot build the libpqdll.lib. I receive lots of compiler errors
when executing "nmake /f win32mak" in the
"C:\cygwin\usr\src\postgresql-7.3\src\interfaces\libpq" directory
("C:\cygwin" is the directory where I installed Cygwin).
The errs appear when processing the "dllist.c" file (the first file
the compiler tries to process).

I'v saved the compiler output in the result.txt file and attached it
to the letter.

The problem is that the VC++ does not understand a lot of stuff in
Cygwin system headers.

I tried to edit the headers mentioned in the compiler output placing
something like:

#ifdef _MSC_VER
  typedef __int64 int64
#else
  // VC++ prodecus error here:
  __extension__ typedef long long _off64_t;
#endif

but the number of types the Microsoft Compiler does not understand was
too large :-(. I don't know all the types so I cannot define them
manually.

I tried to redirect the "include" path to the "native" MSVC headers
but it did not help.

What must I do so that the library were built?

==================

My operating system is: Windows 2000 5.00.2195 (russian edition).

The Cygwin is installed in "C:\Cygwin" and is taken from
http://sources.redhat.com/cygwin. I installed it with default options
plus "gcc" and "make".

The Postrges I use is taken from
http://www.postgresql.org/ftpsite/v7.3/postgresql-7.3.tar.gz.

The C++ compiler is Visual C++ 6.

The DBMS itself is successfully installed, dbinit also has worked
fine.

I tried to compile the win32.mak both under Far Manager and under
Cygwin. No result.

===========

Please help!!!


Best regards,
Sokolov Andrey, Peterburg, Russia,
mailto:sokolow2@mail.ru

===============

It's the second attempt to get help. I'v received your answer that my
first message was delayed because its length exceeded 40000 bytes.
Thank you :-(. I hope this one is short enough.

Attachment

pgsql-cygwin by date:

Previous
From: Sokolow2
Date:
Subject: Errors making libpqdll.lib. Help!!
Next
From: leon lee
Date:
Subject: postmaster problem