Thread: error while compiling libpq (borland 5.5)

error while compiling libpq (borland 5.5)

From
"Vishal Sudheer"
Date:
<p> Hi,<br /><br />   When I try to create libpq interfaces using Borland 5.5 compiler I am getting<br /> the following
error.The BLIBPQ.LIB is created sucessfully, but when I try<br /> to link it to my C program I am getting<br /><br />
Error:Unresolved external '_pqGethostbyname' referenced from
H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo<br/><br />   Please help<br /><br />  
Thankyou<br /><br /> Vishal<br /><br /><br /> MAKE ERRORS<br /> -----------<br /><br /><br /> MAKE Version 5.2 
Copyright(c) 1987, 2000 Borland<br /> Building the Win32 DLL and Static Library...No configuration specified.
Defaultingto Release.     bcc32.exe -o".\Release\win32" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\win32.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> .\win32.c:<br />    
 bcc32.exe-o".\Release\getaddrinfo" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\getaddrinfo.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\port\getaddrinfo.c:<br/>      bcc32.exe -o".\Release\inet_aton" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\inet_aton.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\port\inet_aton.c:<br/>      bcc32.exe -o".\Release\crypt" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\crypt.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\port\crypt.c:<br/>      bcc32.exe -o".\Release\path" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\path.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\port\path.c:<br/>      bcc32.exe -o".\Release\dllist" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\lib\dllist.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\backend\lib\dllist.c:<br/>      bcc32.exe -o".\Release\md5" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\libpq\md5.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\backend\libpq\md5.c:<br/>      bcc32.exe -o".\Release\ip" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\libpq\ip.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\backend\libpq\ip.c:<br/>      bcc32.exe -o".\Release\fe-auth" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-auth.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> .\fe-auth.c:<br />
    bcc32.exe -o".\Release\fe-protocol2" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-protocol2.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
.\fe-protocol2.c:<br/>      bcc32.exe -o".\Release\fe-protocol3" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-protocol3.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
.\fe-protocol3.c:<br/>      bcc32.exe -o".\Release\fe-connect" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-connect.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
.\fe-connect.c:<br/> Warning W8075 .\fe-connect.c 778: Suspicious pointer conversion in function
connectMakeNonblocking<br/>      bcc32.exe -o".\Release\fe-exec" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-exec.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> .\fe-exec.c:<br />
    bcc32.exe -o".\Release\fe-lobj" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-lobj.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> .\fe-lobj.c:<br />
    bcc32.exe -o".\Release\fe-misc" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-misc.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> .\fe-misc.c:<br />
    bcc32.exe -o".\Release\fe-print" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-print.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> .\fe-print.c:<br
/>     bcc32.exe -o".\Release\fe-secure" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-secure.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
.\fe-secure.c:<br/>      bcc32.exe -o".\Release\pqexpbuffer" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\pqexpbuffer.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
.\pqexpbuffer.c:<br/>      bcc32.exe -o".\Release\wchar" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\utils\mb\wchar.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
..\..\backend\utils\mb\wchar.c:<br/>      bcc32.exe -o".\Release\encnames" -If:\Borland\Bcc55\include;..\..\include -WD
-c-DFRONTEND;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 ..\..\backend\utils\mb\encnames.c<br /> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000
Borland<br/> ..\..\backend\utils\mb\encnames.c:<br />      tlib.exe ".\Release\blibpq.lib" @MAKE0001.@@@<br /> TLIB 4.5
Copyright(c) 1987, 1999 Inprise Corporation<br /> +-".\Release\win32.obj" &<br /> +-".\Release\getaddrinfo.obj"
&<br/> +-".\Release\inet_aton.obj" &<br /> +-".\Release\crypt.obj" &<br /> +-".\Release\path.obj" &<br
/>+-".\Release\dllist.obj" &<br /> +-".\Release\md5.obj" &<br /> +-".\Release\ip.obj" &<br />
+-".\Release\fe-auth.obj"&<br /> +-".\Release\fe-protocol2.obj" &<br /> +-".\Release\fe-protocol3.obj" &<br
/>+-".\Release\fe-connect.obj" &<br /> +-".\Release\fe-exec.obj" &<br /> +-".\Release\fe-lobj.obj" &<br />
+-".\Release\fe-misc.obj"&<br /> +-".\Release\fe-print.obj" &<br /> +-".\Release\fe-secure.obj" &<br />
+-".\Release\pqexpbuffer.obj"&<br /> +-".\Release\wchar.obj" &<br /> +-".\Release\encnames.obj" &<br />
+-""<br/> Warning: 'win32' not found in library<br /> Warning: 'getaddrinfo' not found in library<br /> Warning:
'inet_aton'not found in library<br /> Warning: 'crypt' not found in library<br /> Warning: 'path' not found in
library<br/> Warning: 'dllist' not found in library<br /> Warning: 'md5' not found in library<br /> Warning: 'ip' not
foundin library<br /> Warning: 'fe-auth' not found in library<br /> Warning: 'fe-protocol2' not found in library<br />
Warning:'fe-protocol3' not found in library<br /> Warning: 'fe-connect' not found in library<br /> Warning: 'fe-exec'
notfound in library<br /> Warning: 'fe-lobj' not found in library<br /> Warning: 'fe-misc' not found in library<br />
Warning:public '_pqFlush' in module 'fe-misc' clashes with prior module 'fe-exec'<br /> Warning: 'fe-print' not found
inlibrary<br /> Warning: 'fe-secure' not found in library<br /> Warning: 'pqexpbuffer' not found in library<br />
Warning:'wchar' not found in library<br /> Warning: 'encnames' not found in library<br /> Warning: '' not found in
library<br/> Warning: '.OBJ' file not found<br />      bcc32.exe -o".\Release\libpqdll"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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<br /> Borland C++ 5.5.1 for Win32
Copyright(c) 1993, 2000 Borland<br /> .\libpqdll.c:<br />      brcc32.exe -l 0x409 -if:\Borland\Bcc55\include
-fo".\Release\libpq.res"libpq.rc<br /> Borland Resource Compiler  Version 5.40<br /> Copyright (c) 1990, 1999 Inprise
Corporation. All rights reserved.<br />      ilink32.exe @MAKE0000.@@@<br /> Turbo Incremental Link 5.00 Copyright (c)
1997,2000 Borland<br /> Error: Unresolved external '_pqGethostbyname' referenced from
H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo<br/> Error: Unresolved external
'_pqStrerror'referenced from H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj<br /><br /> **
error2 ** deleting ".\Release\blibpq.dll"<br /><br /><br /><a href="http://clients.rediff.com/signature/track_sig.asp"
target="_blank"><imgborder="0" height="74" hspace="0"
src="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"vspace="0" width="496"
/></a>

Re: error while compiling libpq (borland 5.5)

From
Bruce Momjian
Date:
Please try the attached patch.  Thread.c was added late in 7.4
development and it seems no one tested bcc since it was added.

---------------------------------------------------------------------------

Vishal  Sudheer wrote:
> Hi,
>
>   When I try to create libpq interfaces using Borland 5.5 compiler I am getting
> the following error. The BLIBPQ.LIB is created sucessfully, but when I try
> to link it to my C program I am getting
>
> Error: Unresolved external '_pqGethostbyname' referenced from
H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo
>
>   Please help
>
>   Thank you
>
> Vishal
>
>
> MAKE ERRORS
> -----------
>
>
> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
> Building the Win32 DLL and Static Library...No configuration specified. Defaulting to Release.    bcc32.exe
-o".\Release\win32"-If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\win32.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\win32.c:
>     bcc32.exe -o".\Release\getaddrinfo" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\getaddrinfo.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\port\getaddrinfo.c:
>     bcc32.exe -o".\Release\inet_aton" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\inet_aton.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\port\inet_aton.c:
>     bcc32.exe -o".\Release\crypt" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\crypt.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\port\crypt.c:
>     bcc32.exe -o".\Release\path" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\path.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\port\path.c:
>     bcc32.exe -o".\Release\dllist" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\lib\dllist.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\backend\lib\dllist.c:
>     bcc32.exe -o".\Release\md5" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\libpq\md5.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\backend\libpq\md5.c:
>     bcc32.exe -o".\Release\ip" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\libpq\ip.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\backend\libpq\ip.c:
>     bcc32.exe -o".\Release\fe-auth" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-auth.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-auth.c:
>     bcc32.exe -o".\Release\fe-protocol2" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-protocol2.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-protocol2.c:
>     bcc32.exe -o".\Release\fe-protocol3" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-protocol3.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-protocol3.c:
>     bcc32.exe -o".\Release\fe-connect" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-connect.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-connect.c:
> Warning W8075 .\fe-connect.c 778: Suspicious pointer conversion in function connectMakeNonblocking
>     bcc32.exe -o".\Release\fe-exec" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-exec.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-exec.c:
>     bcc32.exe -o".\Release\fe-lobj" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-lobj.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-lobj.c:
>     bcc32.exe -o".\Release\fe-misc" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-misc.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-misc.c:
>     bcc32.exe -o".\Release\fe-print" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-print.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-print.c:
>     bcc32.exe -o".\Release\fe-secure" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-secure.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\fe-secure.c:
>     bcc32.exe -o".\Release\pqexpbuffer" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\pqexpbuffer.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> .\pqexpbuffer.c:
>     bcc32.exe -o".\Release\wchar" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\utils\mb\wchar.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\backend\utils\mb\wchar.c:
>     bcc32.exe -o".\Release\encnames" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\utils\mb\encnames.c 
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> ..\..\backend\utils\mb\encnames.c:
>     tlib.exe ".\Release\blibpq.lib" @MAKE0001.@@@
> TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
> +-".\Release\win32.obj" &
> +-".\Release\getaddrinfo.obj" &
> +-".\Release\inet_aton.obj" &
> +-".\Release\crypt.obj" &
> +-".\Release\path.obj" &
> +-".\Release\dllist.obj" &
> +-".\Release\md5.obj" &
> +-".\Release\ip.obj" &
> +-".\Release\fe-auth.obj" &
> +-".\Release\fe-protocol2.obj" &
> +-".\Release\fe-protocol3.obj" &
> +-".\Release\fe-connect.obj" &
> +-".\Release\fe-exec.obj" &
> +-".\Release\fe-lobj.obj" &
> +-".\Release\fe-misc.obj" &
> +-".\Release\fe-print.obj" &
> +-".\Release\fe-secure.obj" &
> +-".\Release\pqexpbuffer.obj" &
> +-".\Release\wchar.obj" &
> +-".\Release\encnames.obj" &
> +-""
> Warning: 'win32' not found in library
> Warning: 'getaddrinfo' not found in library
> Warning: 'inet_aton' not found in library
> Warning: 'crypt' not found in library
> Warning: 'path' not found in library
> Warning: 'dllist' not found in library
> Warning: 'md5' not found in library
> Warning: 'ip' not found in library
> Warning: 'fe-auth' not found in library
> Warning: 'fe-protocol2' not found in library
> Warning: 'fe-protocol3' not found in library
> Warning: 'fe-connect' not found in library
> Warning: 'fe-exec' not found in library
> Warning: 'fe-lobj' not found in library
> Warning: 'fe-misc' not found in library
> Warning: public '_pqFlush' in module 'fe-misc' clashes with prior module 'fe-exec'
> Warning: 'fe-print' not found in library
> Warning: 'fe-secure' not found in library
> Warning: 'pqexpbuffer' not found in library
> Warning: 'wchar' not found in library
> Warning: 'encnames' not found in library
> Warning: '' not found in library
> Warning: '.OBJ' file not found
>     bcc32.exe -o".\Release\libpqdll" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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:
>     brcc32.exe -l 0x409 -if:\Borland\Bcc55\include -fo".\Release\libpq.res" libpq.rc
> Borland Resource Compiler  Version 5.40
> Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
>     ilink32.exe @MAKE0000.@@@
> Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
> Error: Unresolved external '_pqGethostbyname' referenced from
H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo
> Error: Unresolved external '_pqStrerror' referenced from
H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj
>
> ** error 2 ** deleting ".\Release\blibpq.dll"

--
  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, Pennsylvania 19073
Index: src/interfaces/libpq/bcc32.mak
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/libpq/bcc32.mak,v
retrieving revision 1.4
diff -c -c -r1.4 bcc32.mak
*** src/interfaces/libpq/bcc32.mak    12 Jun 2003 08:15:29 -0000    1.4
--- src/interfaces/libpq/bcc32.mak    30 Nov 2003 05:53:31 -0000
***************
*** 67,72 ****
--- 67,73 ----
      "$(INTDIR)\inet_aton.obj" \
      "$(INTDIR)\crypt.obj" \
      "$(INTDIR)\path.obj" \
+     "$(INTDIR)\thread.obj" \
      "$(INTDIR)\dllist.obj" \
      "$(INTDIR)\md5.obj" \
      "$(INTDIR)\ip.obj" \

Re: error while compiling libpq (borland 5.5)

From
"Vishal Sudheer"
Date:
<p> Hi,<br /><br />   Thanks, I created the dlls and libs sucessfully with some<br /> warnings using Borland 5.5. Can I
useit for production<br /> database ?<br /><br />   Thank you.<br /><br /> Sudheer<br /><br /><br /> On Sun, 30 Nov
2003Bruce Momjian wrote :<br /> ><br /> >Please try the attached patch.  Thread.c was added late in 7.4<br />
>developmentand it seems no one tested bcc since it was added.<br /> ><br />
>---------------------------------------------------------------------------<br/> ><br /> >Vishal  Sudheer
wrote:<br/> > > Hi,<br /> > ><br /> > >  When I try to create libpq interfaces using Borland 5.5
compilerI am getting<br /> > > the following error. The BLIBPQ.LIB is created sucessfully, but when I try<br />
>> to link it to my C program I am getting<br /> > ><br /> > > Error: Unresolved external
'_pqGethostbyname'referenced from H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo<br />
>><br /> > >  Please help<br /> > ><br /> > >  Thank you<br /> > ><br /> > >
Vishal<br/> > ><br /> > ><br /> > > MAKE ERRORS<br /> > > -----------<br /> > ><br />
>><br /> > > MAKE Version 5.2  Copyright (c) 1987, 2000 Borland<br /> > > Building the Win32 DLL and
StaticLibrary...No configuration specified. Defaulting to Release.     bcc32.exe -o".\Release\win32"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 .\win32.c<br /> > > Borland C++ 5.5.1 for Win32
Copyright(c) 1993, 2000 Borland<br /> > > .\win32.c:<br /> > >      bcc32.exe -o".\Release\getaddrinfo"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 ..\..\port\getaddrinfo.c<br /> > > Borland C++
5.5.1for Win32 Copyright (c) 1993, 2000 Borland<br /> > > ..\..\port\getaddrinfo.c:<br /> > >    
 bcc32.exe-o".\Release\inet_aton" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\inet_aton.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br
/>> > ..\..\port\inet_aton.c:<br /> > >      bcc32.exe -o".\Release\crypt"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 ..\..\port\crypt.c<br /> > > Borland C++ 5.5.1
forWin32 Copyright (c) 1993, 2000 Borland<br /> > > ..\..\port\crypt.c:<br /> > >      bcc32.exe
-o".\Release\path"-If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\port\path.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
>> ..\..\port\path.c:<br /> > >      bcc32.exe -o".\Release\dllist"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 ..\..\backend\lib\dllist.c<br /> > > Borland C++
5.5.1for Win32 Copyright (c) 1993, 2000 Borland<br /> > > ..\..\backend\lib\dllist.c:<br /> > >    
 bcc32.exe-o".\Release\md5" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\libpq\md5.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000
Borland<br/> > > ..\..\backend\libpq\md5.c:<br /> > >      bcc32.exe -o".\Release\ip"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 ..\..\backend\libpq\ip.c<br /> > > Borland C++
5.5.1for Win32 Copyright (c) 1993, 2000 Borland<br /> > > ..\..\backend\libpq\ip.c:<br /> > >    
 bcc32.exe-o".\Release\fe-auth" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-auth.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\fe-auth.c:<br /> > >      bcc32.exe -o".\Release\fe-protocol2" -If:\Borland\Bcc55\include;..\..\include -WD
-c-DFRONTEND;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 .\fe-protocol2.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
>> .\fe-protocol2.c:<br /> > >      bcc32.exe -o".\Release\fe-protocol3"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 .\fe-protocol3.c<br /> > > Borland C++ 5.5.1 for
Win32Copyright (c) 1993, 2000 Borland<br /> > > .\fe-protocol3.c:<br /> > >      bcc32.exe
-o".\Release\fe-connect"-If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-connect.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\fe-connect.c:<br /> > > Warning W8075 .\fe-connect.c 778: Suspicious pointer conversion in function
connectMakeNonblocking<br/> > >      bcc32.exe -o".\Release\fe-exec" -If:\Borland\Bcc55\include;..\..\include -WD
-c-DFRONTEND;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 .\fe-exec.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\fe-exec.c:<br /> > >      bcc32.exe -o".\Release\fe-lobj" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-lobj.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\fe-lobj.c:<br /> > >      bcc32.exe -o".\Release\fe-misc" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-misc.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\fe-misc.c:<br /> > >      bcc32.exe -o".\Release\fe-print" -If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 .\fe-print.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\fe-print.c:<br /> > >      bcc32.exe -o".\Release\fe-secure" -If:\Borland\Bcc55\include;..\..\include -WD
-c-DFRONTEND;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 .\fe-secure.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br />
>> .\fe-secure.c:<br /> > >      bcc32.exe -o".\Release\pqexpbuffer"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 .\pqexpbuffer.c<br /> > > Borland C++ 5.5.1 for
Win32Copyright (c) 1993, 2000 Borland<br /> > > .\pqexpbuffer.c:<br /> > >      bcc32.exe
-o".\Release\wchar"-If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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 ..\..\backend\utils\mb\wchar.c<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000
Borland<br/> > > ..\..\backend\utils\mb\wchar.c:<br /> > >      bcc32.exe -o".\Release\encnames"
-If:\Borland\Bcc55\include;..\..\include-WD -c -DFRONTEND;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 ..\..\backend\utils\mb\encnames.c<br /> > >
BorlandC++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> > > ..\..\backend\utils\mb\encnames.c:<br />
>>      tlib.exe ".\Release\blibpq.lib" @MAKE0001.@@@<br /> > > TLIB 4.5 Copyright (c) 1987, 1999 Inprise
Corporation<br/> > > +-".\Release\win32.obj" &<br /> > > +-".\Release\getaddrinfo.obj" &<br /> >
>+-".\Release\inet_aton.obj" &<br /> > > +-".\Release\crypt.obj" &<br /> > >
+-".\Release\path.obj"&<br /> > > +-".\Release\dllist.obj" &<br /> > > +-".\Release\md5.obj"
&<br/> > > +-".\Release\ip.obj" &<br /> > > +-".\Release\fe-auth.obj" &<br /> > >
+-".\Release\fe-protocol2.obj"&<br /> > > +-".\Release\fe-protocol3.obj" &<br /> > >
+-".\Release\fe-connect.obj"&<br /> > > +-".\Release\fe-exec.obj" &<br /> > >
+-".\Release\fe-lobj.obj"&<br /> > > +-".\Release\fe-misc.obj" &<br /> > >
+-".\Release\fe-print.obj"&<br /> > > +-".\Release\fe-secure.obj" &<br /> > >
+-".\Release\pqexpbuffer.obj"&<br /> > > +-".\Release\wchar.obj" &<br /> > >
+-".\Release\encnames.obj"&<br /> > > +-""<br /> > > Warning: 'win32' not found in library<br /> >
>Warning: 'getaddrinfo' not found in library<br /> > > Warning: 'inet_aton' not found in library<br /> >
>Warning: 'crypt' not found in library<br /> > > Warning: 'path' not found in library<br /> > > Warning:
'dllist'not found in library<br /> > > Warning: 'md5' not found in library<br /> > > Warning: 'ip' not
foundin library<br /> > > Warning: 'fe-auth' not found in library<br /> > > Warning: 'fe-protocol2' not
foundin library<br /> > > Warning: 'fe-protocol3' not found in library<br /> > > Warning: 'fe-connect' not
foundin library<br /> > > Warning: 'fe-exec' not found in library<br /> > > Warning: 'fe-lobj' not found in
library<br/> > > Warning: 'fe-misc' not found in library<br /> > > Warning: public '_pqFlush' in module
'fe-misc'clashes with prior module 'fe-exec'<br /> > > Warning: 'fe-print' not found in library<br /> > >
Warning:'fe-secure' not found in library<br /> > > Warning: 'pqexpbuffer' not found in library<br /> > >
Warning:'wchar' not found in library<br /> > > Warning: 'encnames' not found in library<br /> > > Warning:
''not found in library<br /> > > Warning: '.OBJ' file not found<br /> > >      bcc32.exe
-o".\Release\libpqdll"-If:\Borland\Bcc55\include;..\..\include -WD -c
-DFRONTEND;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<br /> > > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland<br /> >
>.\libpqdll.c:<br /> > >      brcc32.exe -l 0x409 -if:\Borland\Bcc55\include -fo".\Release\libpq.res"
libpq.rc<br/> > > Borland Resource Compiler  Version 5.40<br /> > > Copyright (c) 1990, 1999 Inprise
Corporation. All rights reserved.<br /> > >      ilink32.exe @MAKE0000.@@@<br /> > > Turbo Incremental Link
5.00Copyright (c) 1997, 2000 Borland<br /> > > Error: Unresolved external '_pqGethostbyname' referenced from
H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo<br/> > > Error: Unresolved external
'_pqStrerror'referenced from H:\PG-7.4\POSTGRESQL-7.4\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj<br /> >
><br/> > > ** error 2 ** deleting ".\Release\blibpq.dll"<br /> ><br /> >--<br /> >  Bruce Momjian   
                   |  http://candle.pha.pa.us<br /> >  pgman@candle.pha.pa.us              |  (610) 359-1001<br />
> +  If your life is a hard drive,    |  13 Roberts Road<br /> >  +  Christ can be your backup.        |  Newtown
Square,Pennsylvania 19073<br /> >Index: src/interfaces/libpq/bcc32.mak<br />
>===================================================================<br/> >RCS file:
/cvsroot/pgsql-server/src/interfaces/libpq/bcc32.mak,v<br/> >retrieving revision 1.4<br /> >diff -c -c -r1.4
bcc32.mak<br/> >*** src/interfaces/libpq/bcc32.mak     12 Jun 2003 08:15:29 -0000     1.4<br /> >---
src/interfaces/libpq/bcc32.mak    30 Nov 2003 05:53:31 -0000<br /> >***************<br /> >*** 67,72 ****<br />
>---67,73 ----<br /> >       "$(INTDIR)\inet_aton.obj" \<br /> >       "$(INTDIR)\crypt.obj" \<br /> >     
 "$(INTDIR)\path.obj"\<br /> >+      "$(INTDIR)\thread.obj" \<br /> >       "$(INTDIR)\dllist.obj" \<br /> > 
    "$(INTDIR)\md5.obj" \<br /> >       "$(INTDIR)\ip.obj" \<br /> ><br /> >---------------------------(end of
broadcast)---------------------------<br/> >TIP 4: Don't 'kill -9' the postmaster<br /><br /><br /><a
href="http://clients.rediff.com/signature/track_sig.asp"target="_blank"><img border="0" height="74" hspace="0"
src="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"vspace="0" width="496"
/></a>

Re: error while compiling libpq (borland 5.5)

From
Bruce Momjian
Date:
Vishal  Sudheer wrote:
> Hi,
> 
>    Thanks, I created the dlls and libs sucessfully with some
> warnings using Borland 5.5. Can I use it for production
> database ?

Yes.

--  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