Re: [BUGS] BUG #4549: ecpg produces code that don't compile

2008-11-26 Thread Michael Meskes
On Wed, Nov 26, 2008 at 06:44:11AM -0800, John R Pierce wrote: > Tom Lane wrote: >> Whatever strchrnul is, it isn't very portable --- the buildfarm is >> breaking out in red too. Please change that. > > sigh, more gnuish code Fixed. Sorry, didn't notice that it still is a GNU extension as GNU

Re: [BUGS] BUG #4549: ecpg produces code that don't compile

2008-11-26 Thread John R Pierce
Tom Lane wrote: Whatever strchrnul is, it isn't very portable --- the buildfarm is breaking out in red too. Please change that. sigh, more gnuish code — Function: char * *strchrnul* (const char *string, int c) |strchrnul| is the same as |strchr| except that if it does not find

Re: [BUGS] BUG #4549: ecpg produces code that don't compile

2008-11-26 Thread Tom Lane
"Clemens A. Fischer" <[EMAIL PROTECTED]> writes: > Hallo Michael, > thanks for the patch, but ... > compiling ecpg fails: > type.c: In function `ECPGdump_a_simple': > type.c:356: warning: implicit declaration of function `strchrnul' > type.c:356: invalid type argument of `unary *' Whatever strchrn

Re: [BUGS] BUG #4549: ecpg produces code that don't compile

2008-11-26 Thread Clemens A. Fischer
Hallo Michael, thanks for the patch, but ... compiling ecpg fails: gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -fno-strict-aliasing -Wno-error -I../include -I../../../../src/interfaces/ecpg/include -I. -DMAJOR_VERSION=4 -DMINOR_VERSION=4 -DPATCHLEVEL=1 -I../../../../src/include -D

Re: [BUGS] BUG #4549: ecpg produces code that don't compile

2008-11-26 Thread Michael Meskes
On Tue, Nov 25, 2008 at 10:44:32AM +, Clemens Fischer wrote: > Using ecpg and gcc generates the following output: > ecpg -t -o ecpgtest-multidim.c ecpgtest-multidim.pgc > cc -c -I/usr/local/pgsql/include ecpgtest-multidim.c > ecpgtest-multidim.pgc: In function `main': > ecpgtest-multidim.pgc:30

[BUGS] BUG #4549: ecpg produces code that don't compile

2008-11-25 Thread Clemens Fischer
The following bug has been logged online: Bug reference: 4549 Logged by: Clemens Fischer Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3.5 Operating system: QNX 6.3 Description:ecpg produces code that don't compile Details: Hello List, Don't know whether a