Re: Builing C libs for 7.3.4 on XP Professional - Mailing list pgsql-cygwin

From Paul R. Sand
Subject Re: Builing C libs for 7.3.4 on XP Professional
Date
Msg-id 20031205212856.F1DF4D1B449@svr1.postgresql.org
Whole thread Raw
In response to Re: Builing C libs for 7.3.4 on XP Professional  (s0lao@netscape.net (S. L.))
List pgsql-cygwin
SLoa,

Thanks, this helps. What I did was manually copied the pg_config.h.win32 to
pg_config. Then I also edited the win32.mak in interfaces\libpq to include
in the CCPOPTS the include directory for my Visual C++ 6.0. But now I get
the following error running "nmake /f win32.mak" in src:


C:\PG\POSTGR~2.4\src>nmake /f win32.mak

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd include
        if not exist pg_config.h copy pg_config.h.win32 pg_config.h
        cd ..
        cd interfaces\libpq
        nmake /f win32.mak

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building the Win32 static library...

        cl.exe @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nma02328.
dllist.c
        cl.exe @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nmb02328.
md5.c
        cl.exe @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nmc02328.
wchar.c
        cl.exe @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nmd02328.
encnames.c
        cl.exe @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nme02328.
win32.c
fe-auth.c
fe-connect.c
fe-exec.c
fe-lobj.c
fe-misc.c
fe-print.c
fe-secure.c
pqexpbuffer.c
        link.exe -lib @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nmf02328.
        cl.exe @C:\DOCUME~1\PAUL_S~1\LOCALS~1\Temp\nmg02328.
libpqdll.c
        rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
libpq.rc(1) : fatal error RC1015: cannot open include file 'winver.h'.
NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio\VC98\Bin\N
MAKE.EXE"' : return code '0x2'
Stop.

C:\PG\POSTGR~2.4\src>

How do I recover from the missing 'winver.h'? Do I maybe need to change
another win32.mak to add the Visual C++ 6.0 Include directory?

Thank you so much for your help!

Regards,

Paul

-----Original Message-----
From: pgsql-cygwin-owner@postgresql.org
[mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of S. L.
Sent: Friday, December 05, 2003 1:09 AM
To: pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] Builing C libs for 7.3.4 on XP Professional

Paul,

[...]
>"nmake /f win32.mak" I get an error about not finding "pg_config_os.h". I
>find the file OK, it is linked to sys/win.h. If I remove the link and just
[...]

What kind of link? Please notice that (native) windows applications (here,
nmake) do not understand some cygwin links (i.e. "pg_config.h ->
/usr/src/postgresql-7.3.4/src/include/pg_config.h.win32"), especially those
that involve cygwin mounts.

[...]
>copy win.h as pg_config_os.h this error goes away. But then, I get errors
>about "cygwin/version.h" missing . Is there a patch or some predessor step
>that I missed in order to get this built?
[...]

Actually reading win32.mak one finds out that there is a command line set:

"  cd include
   if not exist pg_config.h copy pg_config.h.win32 pg_config.h "

that should solve your problem. In fact, what win.h did you copy for
pg_config.h?

SLao

__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial
today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org


pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: PostgreSQL/Win32 sqltypes.h conflict
Next
From: Seth Rubin
Date:
Subject: Re: PostgreSQL/Win32 sqltypes.h conflict