Thread: bcc32.mak for libpq broken? (distro 8.0.0)

bcc32.mak for libpq broken? (distro 8.0.0)

From
Berényi Gábor
Date:
Dear libpq programmers,

src\interfaces\libpq> make -f bcc32.mak

fails with the message

'".\Release\win32.obj"' does not exist - don't know how to make it

Please, help.

With love, Gabor


Re: bcc32.mak for libpq broken? (distro 8.0.0)

From
Pavel Golub
Date:
Hello.

Guys, sorry that use your private mails.

It seems that I found error about bcc32.mak

The thing is that libpq\bcc32.mak and \psql\bcc32.mak waits that make
will be executed with -N option, but it is not. Why not? For this we
must look at \src\bcc32.mak

>>===============
...
ALL:  cd include  if not exist pg_config.h copy pg_config.h.win32 pg_config.h  cd ..  cd interfaces\libpq  make
-DCFG=$(CFG)/f bcc32.mak # This line executes make without -N option  cd ..\..\bin\psql  make -DCFG=$(CFG) /f bcc32.mak
#Thisone too  cd ..\..  echo All Win32 parts have been built!
 
...
>>===============

I changed these lines to such view and all seems OK:

make -DCFG=$(CFG) -N /f bcc32.mak

Please, tell me if I wrong cause I'm not so familiar with C. I am
Pascal developer.

And one more question. make executes and then I have sush error
message:

>>===============
...
       bcc32.exe -IE:\Bcc55\include;..\..\include -n".\Release" -WD -c -DFRONTE
ND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP; -tWM   -a8 -X -w-use -w-par-w-pia -w-csu -w-aus -w-ccc -O -Oi -OS
-DNDEBUGlibpqdll.c
 
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
libpqdll.c:
Fatal: 'libpq.rc' does not exist - don't know how to make it

** error 1 ** deleting ALL
>>===============

Where or how can I get it? Thanks in advance

-- 
With best wishes,Pavel                          mailto:pavel@microolap.com



Re: bcc32.mak for libpq broken? (distro 8.0.0)

From
Bruce Momjian
Date:
Pavel Golub wrote:
> Hello.
> 
> Guys, sorry that use your private mails.
> 
> It seems that I found error about bcc32.mak
> 
> The thing is that libpq\bcc32.mak and \psql\bcc32.mak waits that make
> will be executed with -N option, but it is not. Why not? For this we
> must look at \src\bcc32.mak
> 
> >>===============
> ...
> ALL:
>    cd include
>    if not exist pg_config.h copy pg_config.h.win32 pg_config.h
>    cd ..
>    cd interfaces\libpq
>    make -DCFG=$(CFG) /f bcc32.mak # This line executes make without -N option
>    cd ..\..\bin\psql
>    make -DCFG=$(CFG) /f bcc32.mak #This one too
>    cd ..\..
>    echo All Win32 parts have been built!
> ...
> >>===============
> 
> I changed these lines to such view and all seems OK:
> 
> make -DCFG=$(CFG) -N /f bcc32.mak

Yep, I just added -N to that file.  I had forgotten it was there at the
top level.  The fix will be in 8.0.X.  Add them to all the 'make' lines,
including the 'clean' ones.

> Please, tell me if I wrong cause I'm not so familiar with C. I am
> Pascal developer.
> 
> And one more question. make executes and then I have sush error
> message:
> 
> >>===============
> ...
> 
>         bcc32.exe -IE:\Bcc55\include;..\..\include -n".\Release" -WD -c -DFRONTE
> ND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP; -tWM   -a8 -X -w-use -w-par
>  -w-pia -w-csu -w-aus -w-ccc -O -Oi -OS -DNDEBUG libpqdll.c
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> libpqdll.c:
> Fatal: 'libpq.rc' does not exist - don't know how to make it
> 
> ** error 1 ** deleting ALL
> >>===============
> 
> Where or how can I get it? Thanks in advance

Now that seems strange.  Don't you have libpq.rc in your
src/interfaces/libpq directory?  I do, and the make build works fine. 
Have you tried running the bcc32.mak directly from the interfaces/libpq
directory?  Maybe that would help.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073