O.S. Fedora 15 X64 downloaded latest Beta version pgxc_v0.9.7.tar.gz
Unzipping No ?? INSTALL file in directory pgxc ???
In pgxc
./config configured with exit 0 All good.
make fails with gcc -DPGXC -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fpic -I../../../src/include -D_GNU_SOURCE -DSO_MAJOR_VERSION=1 -c -o gtm_opt_scanner.o gtm_opt_scanner.c
gcc: error: gtm_opt_scanner.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[3]: *** [gtm_opt_scanner.o] Error 4
make[3]: Leaving directory `/home/fil/Downloads/pgxc/src/gtm/common'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/fil/Downloads/pgxc/src/gtm'
make[1]: *** [all-gtm-recurse] Error 2
make[1]: Leaving directory `/home/fil/Downloads/pgxc/src'
make: *** [all-src-recurse] Error 2
?? Your help would be greastly appreciated.
Tracked the problems down to configure. Gentlemen if make will fail because FLEX is not installed or Bison is not installed then wouldn't it be nice that configure failed reporting this. Currently the system will configure but fails through compulsory make extensions (flex,bison) not being installed. Not quite my idea of a correct configure ?
As written in the commit, this was caused by wrong version or missing flex. I believe configure should have printed an error on this. This is one of the difference of XC from PG tarball so far.
Would be nice if `./configure` died if flex and bison were required but missing.
We may want to follow PostgreSQL release. Should contact PostgreSQL release people how to include gram.c and scan.c etc., automatically to the release tarball. We should include this as a part of V1.0.
make dist takes care of release tarball. XC needs some tweaks to this to take care of doc-xc, instead of doc. Koichi can take care of this too.
There are also problems with the flex version used. configure returns a warning message but does not stop in this case. By installing a newer version of flex on your system, you will be able to compile.
But we still need to fix the root cause of the problem.
This bug is related to generate gtm_opt_scaner.c from gtm_opt_scanner.l. This process needs specific version of flex and some platform does not meet this criteria.
This portion was originally written by Koichi and it is certain that this failure will not happen with appropriate version of flex.
This is caused by older version of flex, which can be checked by configure. All the other issues are fixed. Asked for further input in the mailing list and I didn't have any objection to close this.
-- Koichi