compile error in cvs tip
I'm getting a compile error on cvs tip.
gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -DPKGLIBDIR=\"/usr/local/pgsql/lib\"
-DDLSUFFIX=\".so\" -c -o dfmgr.o dfmgr.c -MMD
dfmgr.c:330:1: directives may not be used inside a macro argument
dfmgr.c:330:1: unterminated argument list invoking macro "strcspn"
make[4]: *** [dfmgr.o] Error 1
Looks like it was caused here:
Joe
OK, patch applied. I am a little surprised your compiler complained.
Seems your strcspn() is actually a macro, not a function call. What
OS/compiler are you using?
---------------------------------------------------------------------------
Joe Conway wrote:
I'm getting a compile error on cvs tip.
gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -DPKGLIBDIR=\"/usr/local/pgsql/lib\"
-DDLSUFFIX=\".so\" -c -o dfmgr.o dfmgr.c -MMD
dfmgr.c:330:1: directives may not be used inside a macro argument
dfmgr.c:330:1: unterminated argument list invoking macro "strcspn"
make[4]: *** [dfmgr.o] Error 1Looks like it was caused here:
Joe
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
--
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
Attachments:
/bjm/difftext/plainDownload+4-6
Bruce Momjian wrote:
OK, patch applied. I am a little surprised your compiler complained.
Seems your strcspn() is actually a macro, not a function call. What
OS/compiler are you using?
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
Joe