Current bcc32.mak produces :

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_pqGethostbyname' referenced from
D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo
Error: Unresolved external '_pqStrerror' referenced from
D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj

I see pqGethostbyname defined in thread.c, but when I add thread.c to
sources I have :

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_getpwuid' referenced from
D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|thread

Anyone seeing that ?

Regards !


Wed, 3 Sep 2003 00:28:45 +0200
"Darko Prenosil" <Darko.Prenosil@finteh.hr>
libpq makefile for bcc
Darko Prenosil wrote:

>Current bcc32.mak produces :
>
>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
>Error: Unresolved external '_pqGethostbyname' referenced from
>D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo
>Error: Unresolved external '_pqStrerror' referenced from
>D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj
>
>I see pqGethostbyname defined in thread.c, but when I add thread.c to
>sources I have :
>
>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
>Error: Unresolved external '_getpwuid' referenced from
>D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|thread
>
>Anyone seeing that ?
>

Hi Darko,

wait until Bruce got his mail queue worked up, or have a look at 
pgsql-patches. I had the problems with VC6, but this fixes probably bcc 
also.

Regards,
Andreas



Wed, 03 Sep 2003 00:55:25 +0200
Andreas Pflug <pgadmin@pse-consulting.de>
Re: libpq makefile for bcc
On Wednesday 03 September 2003 00:55, Andreas Pflug wrote:
> Darko Prenosil wrote:
> >Current bcc32.mak produces :
> >
> >Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
> >Error: Unresolved external '_pqGethostbyname' referenced from
> >D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo
> >Error: Unresolved external '_pqStrerror' referenced from
> >D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj
> >
> >I see pqGethostbyname defined in thread.c, but when I add thread.c to
> >sources I have :
> >
> >Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
> >Error: Unresolved external '_getpwuid' referenced from
> >D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|thread
> >
> >Anyone seeing that ?
>
> Hi Darko,
>
> wait until Bruce got his mail queue worked up, or have a look at
> pgsql-patches. I had the problems with VC6, but this fixes probably bcc
> also.
>
Yes, I see that patch now, and it seems that this:

+#ifndef WIN32
        if (pqGetpwuid(getuid(), &pwdstr, pwdbuf, sizeof(pwdbuf), &pwd) == 0)
        {
                snprintf(fnbuf, sizeof fnbuf, "%s/.postgresql/root.crt",
@@ -849,6 +861,7 @@
 
        /* set up mechanism to provide client certificate, if available */
        SSL_CTX_set_client_cert_cb(SSL_context, client_cert_cb);
+#endif
 
        return 0;
 }

can solve my problem. I'll try to aply. Thanks Andreas !

Regards !

Wed, 3 Sep 2003 16:43:31 +0200
Darko Prenosil <darko.prenosil@finteh.hr>
Re: libpq makefile for bcc
Darko Prenosil wrote:

>On Wednesday 03 September 2003 00:55, Andreas Pflug wrote:
>  
>
>>Darko Prenosil wrote:
>>    
>>
>>>Current bcc32.mak produces :
>>>
>>>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
>>>Error: Unresolved external '_pqGethostbyname' referenced from
>>>D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|getaddrinfo
>>>Error: Unresolved external '_pqStrerror' referenced from
>>>D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-lobj
>>>
>>>I see pqGethostbyname defined in thread.c, but when I add thread.c to
>>>sources I have :
>>>
>>>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
>>>Error: Unresolved external '_getpwuid' referenced from
>>>D:\POSTGRESQL-7.4BETA2\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|thread
>>>
>>>Anyone seeing that ?
>>>      
>>>
>>Hi Darko,
>>
>>wait until Bruce got his mail queue worked up, or have a look at
>>pgsql-patches. I had the problems with VC6, but this fixes probably bcc
>>also.
>>
>>    
>>
>Yes, I see that patch now, and it seems that this:
>
>+#ifndef WIN32
>        if (pqGetpwuid(getuid(), &pwdstr, pwdbuf, sizeof(pwdbuf), &pwd) == 0)
>        {
>                snprintf(fnbuf, sizeof fnbuf, "%s/.postgresql/root.crt",
>@@ -849,6 +861,7 @@
> 
>        /* set up mechanism to provide client certificate, if available */
>        SSL_CTX_set_client_cert_cb(SSL_context, client_cert_cb);
>+#endif
> 
>        return 0;
> }
>
>can solve my problem. I'll try to aply. Thanks Andreas !
>  
>
BTW,

for pgadmin3 use we have 
http://snake.pgadmin.org/snapshots/postgresql/libs-win32-20030829.zip 
which includes a static libpq and the openssl libs.

Dave, maybe we should mirror this also to postgresql.org?

Regards,
Andreas





Wed, 03 Sep 2003 19:03:29 +0200
Andreas Pflug <pgadmin@pse-consulting.de>
Re: libpq makefile for bcc
It's rumoured that Andreas Pflug once said:
> for pgadmin3 use we have
> http://snake.pgadmin.org/snapshots/postgresql/libs-win32-20030829.zip
> which includes a static libpq and the openssl libs.
>
> Dave, maybe we should mirror this also to postgresql.org?

Yes, I'm not happy with the way things are split between the snapshot area
and ftp at the moment. I'll take a look at it and see about moving those
libs as well - though they will stay under the pgadmin directory.
Regards, Dave.



Wed, 3 Sep 2003 19:26:30 +0100 (BST)
"Dave Page" <dpage@vale-housing.co.uk>
Re: libpq makefile for bcc