Please help with making libpqdll.lib!!

From: Sokolow2 <sokolow2(at)mail(dot)ru>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Please help with making libpqdll.lib!!
Date: 2002-12-11 07:54:59
Message-ID: 43730968.20021211105459@mail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)mail(dot)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 Content-Type Size
result.txt text/plain 3.8 KB

Browse pgsql-cygwin by date

  From Date Subject
Next Message Sokolow2 2002-12-11 09:24:45 Please help with making libpqdll.lib!! (attempt # 3)
Previous Message derry.birse 2002-12-10 14:18:04 Re: Works as Administrator but FAILS as postgres user