[HACKERS] building postgres test examples in win32

2008-07-11 Thread claudio lezcano
Hi everybody,

I've been followed the postgres main page intruccion to build the examples
of libpq library.Unfortunatelly the examples was just for linux enviroment.
Nevertheless, i finally built the example program in my winxp, but i got
this message when i ran it: the aplication could not inicialize
successfully (0xc0150002).

Can somebody give me a hand please?


[HACKERS] compilig libpq with borland 5.5

2008-07-31 Thread claudio lezcano
Hi everybody

Iam traying to build libpq.lib and libpq.dll library using Borland c++ 5.5
and i got these error:

Error libpq.rc 1 11: Cannot open file: winver.h

I opened the libpq.rc file and i saw the reference to that file #include
winver.h

I cheched out the path and the existence of the file and everything is all
right.

I actually find the file in the desired location.

I don't know what to do to carry on my work.

Can somebody help me out please?.

Thanks in advance.

Claudio Lezcano


Re: [HACKERS] compilig libpq with borland 5.5

2008-08-14 Thread claudio lezcano
Thank you so much for the comments, he managed to advance the process of
reconfiguring the directory compilation include Borland, however, has
emerged another drawback, the problem has drawn up the following message:

Error: Unresolved external '_pgwin32_safestat' referenced from C:\SOURCE
POSTGRES 8.3\SRC\INTERFACES\LIBPQ\RELEASE\BLIBPQ.LIB|fe-connect

Obs.: Static or dynamic libraries generated by the mvs can not be used to
compile sources with bcc32, but works for MinGW and others, while trying to
compile the following problem arises with bcc32:

Error: 'C: \ examples \ LIBPQ.LIB' contains invalid FMO record, type 0x21
(possibly COFF)
** error 2 ** deleting .\Release\blibpq.dll

Thanks in advance
Claudio Lezcano


Re: [HACKERS] compilig libpq with borland 5.5

2008-08-19 Thread claudio lezcano
I made tests compiling both sources (from CVS repository and from HTTP), and
i got the next results:

1-) MSVS 2005
*Source from CVS repository: *fatal error U1073: Don't know how to make
'libpq-dist.rc'
*Source from http (ver. 8.3.3): **Successfully generated*

2.) Borland 5.5.1
   * Source from CVS repository:*
Error E2451 ..\..\port\dirent.c 35: Undefined symbol
'INVALID_FILE_ATTRIBUTES' in function opendir
Error E2451 ..\..\port\dirent.c 52: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 53: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 59: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 60: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 60: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 61: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 61: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 62: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 64: Undefined symbol 'dirname' in function
opendir
Error E2451 ..\..\port\dirent.c 65: Undefined symbol 'handle' in function
opendir
Error E2451 ..\..\port\dirent.c 66: Undefined symbol 'ret' in function
opendir
Error E2451 ..\..\port\dirent.c 67: Undefined symbol 'ret' in function
opendir
Error E2451 ..\..\port\dirent.c 77: Undefined symbol 'handle' in function
readdir
Error E2451 ..\..\port\dirent.c 79: Undefined symbol 'handle' in function
readdir
Error E2451 ..\..\port\dirent.c 79: Undefined symbol 'dirname' in function
readdir
Error E2451 ..\..\port\dirent.c 80: Undefined symbol 'handle' in function
readdir
Error E2451 ..\..\port\dirent.c 88: Undefined symbol 'handle' in function
readdir
Error E2451 ..\..\port\dirent.c 100: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 102: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 102: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 103: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 109: Undefined symbol 'handle' in function
closedir
Error E2451 ..\..\port\dirent.c 110: Undefined symbol 'handle' in function
closedir
Error E2451 ..\..\port\dirent.c 111: Undefined symbol 'dirname' in function
closedir
Error E2228 ..\..\port\dirent.c 111: Too many error or warning messages in
function closedir
*** 26 errors in Compile ***
** error 1 ** deleting .\Release\dirent.obj

*Source from http (ver. 8.3.3):*
Warning: 'win32' not found in library
Warning: 'getaddrinfo' not found in library
Warning: 'pgstrcasecmp' not found in library
Warning: 'thread' not found in library
Warning: 'inet_aton' not found in library
Warning: 'crypt' not found in library
Warning: 'noblock' 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: 'pqsignal' not found in library
Warning: 'wchar' not found in library
Warning: 'encnames' not found in library
Warning: 'snprintf' not found in library
Warning: 'strlcpy' not found in library
Warning: 'pthread-win32' not found in library
Warning: '' not found in library
Warning: '.OBJ' file not found
brcc32.exe -l 0x409 -iC:\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 @MAKE.@@@
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_pgwin32_safestat' referenced from C:\SOURCE
POSTGRES 8.3\SRC\INTERFACES\LIBPQ\REL
EASE\BLIBPQ.LIB|fe-connect

** error 2 ** deleting .\Release\blibpq.dll

He would welcome any suggestions or help

Claudio Lezcano