Bug 164 - Unable to build slony1-2.0.5 on RHEL machine
Summary: Unable to build slony1-2.0.5 on RHEL machine
Status: RESOLVED DUPLICATE of bug 159
Alias: None
Product: Slony-I
Classification: Unclassified
Component: core scripts (show other bugs)
Version: 2.0
Hardware: PC Linux
: high blocker
Assignee: Slony Bugs List
URL:
Depends on:
Blocks:
 
Reported: 2010-11-02 08:36 UTC by salman
Modified: 2010-11-18 06:01 UTC (History)
1 user (show)

See Also:


Attachments
files missing from 2.0.5 tar (85.47 KB, application/x-gzip)
2010-11-18 06:01 UTC, Steve Singer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description salman 2010-11-02 08:36:15 UTC
I'm unable to build slony on an RHEL 5.3 machine. 

Running configure complains that my version of flex/lex is 'too old'. Checking the configure script, I see that it's trying match my flex version string (2.5.4) against this: 

if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | awk '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'

Configuration runs to completion despite the warning message. 

Then, during make/make all, I get the following errors: 

--------------------------------
Missing flex scan.l scan.c
gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -DPGSHARE="\"/usr/local/postgresql/9.0.1/share/\""  -I/usr/local/postgresql/9.0.1/include/ -I/usr/local/postgresql/9.0.1/include/server/  -c -o parser.o parser.c
gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -DPGSHARE="\"/usr/local/postgresql/9.0.1/share/\""  -I/usr/local/postgresql/9.0.1/include/ -I/usr/local/postgresql/9.0.1/include/server/  -c -o scan.o scan.c
gcc: scan.c: No such file or directory
gcc: no input files
make[2]: *** [scan.o] Error 1
make[2]: Leaving directory `/usr/src/slony1-2.0.5/src/slony_logshipper'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/slony1-2.0.5/src'
make: *** [all] Error 2
--------------------------------

[root@dbdev slony1-2.0.5]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

Please let me know if you need any other info from me.
Comment 1 salman 2010-11-02 08:37:28 UTC
Forgot to include flex version:

[root@dbdev slony1-2.0.5]# flex --version
flex version 2.5.4
[root@dbdev slony1-2.0.5]# lex --version
lex version 2.5.4
Comment 2 Steve Singer 2010-11-02 10:37:31 UTC
This is a duplicate of bug159.

For the 2.0.5 tar files you should install flex+bison to get slony to build.

*** This bug has been marked as a duplicate of bug 159 ***
Comment 3 Steve Singer 2010-11-18 06:01:17 UTC
Created attachment 75 [details]
files missing from 2.0.5 tar

These are the files that I think are missing from the 2.0.5 tar