Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
Fabio Guidi wrote: The change to include pthread.h i done by myself when i try to build again, no problem for ecpg i change my source to run only with libpq, thanks a lot for help ... Great. I figured you had made that change on your end. -- 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 ---(end of broadcast)--- TIP 8: explain analyze is your friend
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
The change to include pthread.h i done by myself when i try to build again, no problem for ecpg i change my source to run only with libpq, thanks a lot for help ... bye Fabio Bruce Momjian ha scritto: [EMAIL PROTECTED] wrote: All OK with libpq, what can i do to work under windows with ecpg ? Uh, we don't have any ecpg makefiles for MSC or BCC. I am afraid you will have to take the psql or libpq bcc32.mak and try to hack it around to work, but it isn't going to be simple.
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
thanks a lot ... now i go to try ... fabio Fabio Guidi wrote: the compiler build correctly the package without error message ? Bruce Momjian ha scritto: I downloaded the Borland compiler and am running build tests now. I finally got it working. I had to make major changes to the build file. The new attached bcc32.mak should build on your 8.0.X system, and this file will be in 8.0.3. -- 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 Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
I try to use your make file, but i obtain an error at the end of build ... this time the directory has created and several objs are present in it... i attach the screenshot that appear... thanks a lot again fabio Fabio Guidi wrote: the compiler build correctly the package without error message ? Bruce Momjian ha scritto: I downloaded the Borland compiler and am running build tests now. I finally got it working. I had to make major changes to the build file. The new attached bcc32.mak should build on your 8.0.X system, and this file will be in 8.0.3. -- 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 Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it C:\postgresql_src\postgresql-8.0.2\src\interfaces\libpqmake -N -DCFG=Release /f bcc32.mak MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Building the Win32 DLL and Static Library... Configuration Release copy pthread.h.win32 pthread.h 1 file(s) copied. echo #define SYSCONFDIR pg_config_paths.h bcc32.exe -Ic:\Borland\Bcc55\include;..\..\include -n.\Release -WD -c -DFRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP; -tWM -a8 -X -w-us e -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 @MAKE0002.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\port\getaddrinfo.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe @MAKE0003.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\port\pgstrcasecmp.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe @MAKE0004.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\port\thread.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe @MAKE0005.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\port\inet_aton.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe @MAKE0006.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\port\crypt.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe @MAKE0007.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\port\noblock.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical Warning W8075 ..\..\port\noblock.c 30: Suspicious pointer conversion in function pg_set_noblock Warning W8075 ..\..\port\noblock.c 53: Suspicious pointer conversion in function pg_set_block bcc32.exe @MAKE0008.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\backend\libpq\md5.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe @MAKE0009.@@@ Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland ..\..\backend\libpq\ip.c: Warning W8017 ..\..\include\port/win32.h 41: Redefinition of 'DLLIMPORT' is not identical Warning W8017 ..\..\include\port/win32.h 144: Redefinition of 'SIGUSR1' is not i dentical Warning W8017 ..\..\include\port/win32.h 145: Redefinition of 'SIGUSR2' is not i dentical bcc32.exe -Ic:\Borland\Bcc55\include;..\..\include
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
There where an extra character in the .mak file, and then i try to rebuild and now i obtain these errors ... at the and a file called blibpq.lib was built but it don't seem valid. Fabio Guidi wrote: the compiler build correctly the package without error message ? Bruce Momjian ha scritto: I downloaded the Borland compiler and am running build tests now. I finally got it working. I had to make major changes to the build file. The new attached bcc32.mak should build on your 8.0.X system, and this file will be in 8.0.3. -- 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 Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it bcc32.exe -Ic:\Borland\Bcc55\include;..\..\include -n.\Release -WD -c -DFRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP; -tWM -a8 -X -w-us e -w-par -w-pia -w-csu -w-aus -w-ccc -O -Oi -OS -DNDEBUG pthread-win32.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland pthread-win32.c: tlib.exe .\Release\blibpq.lib @MAKE0001.@@@ TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation +-.\Release\win32.obj +-.\Release\getaddrinfo.obj +-.\Release\pgstrcasecmp.obj +-.\Release\thread.obj +-.\Release\inet_aton.obj +-.\Release\crypt.obj +-.\Release\noblock.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\pqsignal.obj +-.\Release\wchar.obj +-.\Release\encnames.obj +-.\Release\pthread-win32.obj +- 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: 'pthread-win32' not found in library Warning: '' not found in library Warning: '.OBJ' file not found bcc32.exe -Ic:\Borland\Bcc55\include;..\..\include -n.\Release -WD -c -DFRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP; -tWM -a8 -X -w-us e -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 -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 implib -w .\Release\blibpqdll.lib blibpqdll.def .\Release\blibpq.dll Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Name: 'blibpqdll' Ext: '.dll' Base: 0x Name: 'BLIBPQ' Ext: '.dll' Base: 0x ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
All OK with libpq, what can i do to work under windows with ecpg ? Thanks a lot Fabio Fabio Guidi wrote: the compiler build correctly the package without error message ? Bruce Momjian ha scritto: I downloaded the Borland compiler and am running build tests now. I finally got it working. I had to make major changes to the build file. The new attached bcc32.mak should build on your 8.0.X system, and this file will be in 8.0.3. -- 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 Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
[EMAIL PROTECTED] wrote: There where an extra character in the .mak file, and then i try to rebuild and now i obtain these errors ... at the and a file called blibpq.lib was built but it don't seem valid. Here is a fix I forgot to send you that will allow libpq to compile. This patch will be in 8.0.X too. -- 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/pthread-win32.c === RCS file: /cvsroot/pgsql/src/interfaces/libpq/pthread-win32.c,v retrieving revision 1.4 diff -c -c -r1.4 pthread-win32.c *** src/interfaces/libpq/pthread-win32.c1 Jan 2005 20:44:31 - 1.4 --- src/interfaces/libpq/pthread-win32.c29 Apr 2005 13:40:34 - *** *** 12,18 #include windows.h ! #include pthread.h HANDLE pthread_self() --- 12,18 #include windows.h ! #include pthread.h HANDLE pthread_self() ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
[EMAIL PROTECTED] wrote: All OK with libpq, what can i do to work under windows with ecpg ? Uh, we don't have any ecpg makefiles for MSC or BCC. I am afraid you will have to take the psql or libpq bcc32.mak and try to hack it around to work, but it isn't going to be simple. -- 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 ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org
Re: [PATCHES] [INTERFACES] bcc32 libpq compile problem
Fabio Guidi wrote: the compiler build correctly the package without error message ? Bruce Momjian ha scritto: I downloaded the Borland compiler and am running build tests now. I finally got it working. I had to make major changes to the build file. The new attached bcc32.mak should build on your 8.0.X system, and this file will be in 8.0.3. -- 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 # Makefile for Borland C++ 5.5 # Will build a Win32 static library libpq.lib #and a Win32 dynamic library libpq.dll with import library libpqdll.lib # Borland C++ base install directory goes here # BCB=c:\Borland\Bcc55 !IF $(BCB) == !MESSAGE You must edit bcc32.mak and define BCB at the top !ERROR misssing BCB !ENDIF !IF $(__NMAKE__) == !MESSAGE You must use the -N compatibility flag, e.g. make -N -f bcc32.make !ERROR missing -N !ENDIF !MESSAGE Building the Win32 DLL and Static Library... !MESSAGE !IF $(CFG) == CFG=Release !MESSAGE No configuration specified. Defaulting to Release. !MESSAGE !ELSE !MESSAGE Configuration $(CFG) !MESSAGE !ENDIF !IF $(CFG) != Release $(CFG) != Debug !MESSAGE Invalid configuration $(CFG) specified. !MESSAGE You can specify a configuration when running MAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE make -N -DCFG=[Release | Debug] -f bcc32.mak !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE Release (Win32 Release DLL and Static Library) !MESSAGE Debug (Win32 Debug DLL and Static Library) !MESSAGE !ERROR An invalid configuration was specified. !ENDIF !IF $(OS) == Windows_NT NULL= !ELSE NULL=nul !ENDIF !IF $(CFG) == Debug DEBUG=1 OUTDIR=.\Debug INTDIR=.\Debug !ELSE OUTDIR=.\Release INTDIR=.\Release !ENDIF OUTFILENAME=blibpq USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP; CPP=bcc32.exe CPP_PROJ = -I$(BCB)\include;..\..\include -n$(INTDIR) -WD -c -D$(USERDEFINES) -tWM \ -a8 -X -w-use -w-par -w-pia -w-csu -w-aus -w-ccc !IFDEF DEBUG CPP_PROJ= $(CPP_PROJ) -Od -r- -k -v -y -vi- -D_DEBUG !else CPP_PROJ= $(CPP_PROJ) -O -Oi -OS -DNDEBUG !endif ALL : config $(OUTDIR) $(OUTDIR)\blibpq.dll $(OUTDIR)\blibpq.lib CLEAN : [EMAIL PROTECTED] $(INTDIR)\getaddrinfo.obj [EMAIL PROTECTED] $(INTDIR)\pgstrcasecmp.obj [EMAIL PROTECTED] $(INTDIR)\thread.obj [EMAIL PROTECTED] $(INTDIR)\inet_aton.obj [EMAIL PROTECTED] $(INTDIR)\crypt.obj [EMAIL PROTECTED] $(INTDIR)\noblock.obj [EMAIL PROTECTED] $(INTDIR)\md5.obj [EMAIL PROTECTED] $(INTDIR)\ip.obj [EMAIL PROTECTED] $(INTDIR)\fe-auth.obj [EMAIL PROTECTED] $(INTDIR)\fe-protocol2.obj [EMAIL PROTECTED] $(INTDIR)\fe-protocol3.obj [EMAIL PROTECTED] $(INTDIR)\fe-connect.obj [EMAIL PROTECTED] $(INTDIR)\fe-exec.obj [EMAIL PROTECTED] $(INTDIR)\fe-lobj.obj [EMAIL PROTECTED] $(INTDIR)\fe-misc.obj [EMAIL PROTECTED] $(INTDIR)\fe-print.obj [EMAIL PROTECTED] $(INTDIR)\fe-secure.obj [EMAIL PROTECTED] $(INTDIR)\pqexpbuffer.obj [EMAIL PROTECTED] $(INTDIR)\pqsignal.obj [EMAIL PROTECTED] $(OUTDIR)\libpqdll.obj [EMAIL PROTECTED] $(OUTDIR)\win32.obj [EMAIL PROTECTED] $(INTDIR)\wchar.obj [EMAIL PROTECTED] $(INTDIR)\encnames.obj [EMAIL PROTECTED] $(INTDIR)\pthread-win32.obj [EMAIL PROTECTED] $(OUTDIR)\$(OUTFILENAME).lib [EMAIL PROTECTED] $(OUTDIR)\$(OUTFILENAME)dll.lib [EMAIL PROTECTED] $(OUTDIR)\libpq.res [EMAIL PROTECTED] $(OUTDIR)\$(OUTFILENAME).dll [EMAIL PROTECTED] $(OUTDIR)\$(OUTFILENAME).tds [EMAIL PROTECTED] $(INTDIR)\pg_config_paths.h LIB32=tlib.exe LIB32_FLAGS= LIB32_OBJS= \ $(INTDIR)\win32.obj \ $(INTDIR)\getaddrinfo.obj \ $(INTDIR)\pgstrcasecmp.obj \ $(INTDIR)\thread.obj \ $(INTDIR)\inet_aton.obj \ $(INTDIR)\crypt.obj \ $(INTDIR)\noblock.obj \ $(INTDIR)\md5.obj \ $(INTDIR)\ip.obj \ $(INTDIR)\fe-auth.obj \ $(INTDIR)\fe-protocol2.obj \ $(INTDIR)\fe-protocol3.obj \ $(INTDIR)\fe-connect.obj \ $(INTDIR)\fe-exec.obj \ $(INTDIR)\fe-lobj.obj \ $(INTDIR)\fe-misc.obj \ $(INTDIR)\fe-print.obj \ $(INTDIR)\fe-secure.obj \ $(INTDIR)\pqexpbuffer.obj \ $(INTDIR)\pqsignal.obj \ $(INTDIR)\wchar.obj \ $(INTDIR)\encnames.obj \ $(INTDIR)\pthread-win32.obj config: ..\..\include\pg_config.h pthread.h pg_config_paths.h ..\..\include\pg_config.h: ..\..\include\pg_config.h.win32 copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h pthread.h: pthread.h.win32 copy pthread.h.win32 pthread.h