Thread: Please help with making libpqdll.lib!!
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
Sokolow2 <sokolow2@mail.ru> wrote: >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 problem is that the VC++ does not understand a lot of stuff in >Cygwin system headers. [...] [...] >The DBMS itself is successfully installed, dbinit also has worked >fine. [...] (I haven't tried the win32 build since a while, but...) As your post suggests, you first built the backend (eventually using the cygwin autotools). The two builds are independent,so the configuration the "configure [--options]" does for cygwin isn't valid for win32. You must untar the source tree again, after removing the one for backend's build, and follow the instructions for win32. SLao __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/