bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Tue Nov 2 12:22:10 PDT 2010
http://www.slony.info/bugzilla/show_bug.cgi?id=159

salman <salmanb at quietcaresystems.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |
             Status|RESOLVED                    |REOPENED

--- Comment #6 from salman <salmanb at quietcaresystems.com> 2010-11-02 12:22:10 PDT ---
Sorry for re-opening this. I applied the patch attached to this bug, verified
bison was installed, but make still seems to be breaking.

--------------------

[root at dbdev src]# rm -rf slony1-2.0.5
[root at dbdev src]# tar xjf slony1-2.0.5.tar.bz2 
[root at dbdev src]# mv 0001-Fix-for-bug-159.patch slony1-2.0.5
[root at dbdev src]# patch -p1 < 0001-Fix-for-bug-159.patch 
bash: 0001-Fix-for-bug-159.patch: No such file or directory
[root at dbdev src]# cd slony1-2.0.5
[root at dbdev slony1-2.0.5]# patch -p1 < 0001-Fix-for-bug-159.patch 
patching file GNUmakefile.in
patching file src/parsestatements/Makefile
patching file src/slony_logshipper/Makefile
--------------------

Run configure: ./configure --prefix=/usr --sysconfdir=/etc/slony
--with-perltools --with-pgconfigdir=/usr/local/postgresql/9.0.1/bin/

--snip--
[root at dbdev slony1-2.0.5]# echo $?
0
--snip--

bison, flex installed and in path. Respective versions:
--------------------
[root at dbdev slony1-2.0.5]# bison --version && flex --version && lex --version
bison (GNU Bison) 2.3
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
flex version 2.5.4
lex version 2.5.4
--------------------

Run make:

--snip--

gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -fpic
-I/usr/local/postgresql/9.0.1/include/
-I/usr/local/postgresql/9.0.1/include/server/  -c -o slony1_funcs.o
slony1_funcs.c
slony1_funcs.c: In function âslon_quote_literalâ:
slony1_funcs.c:1030: warning: pointer targets in passing argument 1 of
âpg_mblenâ differ in signedness
gcc -shared -o slony1_funcs.so slony1_funcs.o
make[2]: Leaving directory `/usr/src/slony1-2.0.5/src/backend'
make[2]: Entering directory `/usr/src/slony1-2.0.5/src/ducttape'
make[2]: Leaving directory `/usr/src/slony1-2.0.5/src/ducttape'
make[2]: Entering directory `/usr/src/slony1-2.0.5/src/slony_logshipper'
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 slony_logshipper.o
slony_logshipper.c
slony_logshipper.c: In function âmainâ:
slony_logshipper.c:477: warning: âdestfname.dataâ may be used uninitialized in
this function
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 dbutil.o dbutil.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 ipcutil.o ipcutil.c
bison -y -d  parser.y
mv -f y.tab.c parser.c
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 at dbdev slony1-2.0.5]# find . |grep -i scan
./src/slony_logshipper/scan.l
./src/slony_logshipper/scan.h
./src/slonik/scan.o
./src/slonik/scan.l
./src/slonik/scan.h
./src/slonik/scan.c
./src/parsestatements/scanner.o
./src/parsestatements/scanner.c
./src/parsestatements/test-scanner
./src/parsestatements/test-scanner.c
./src/parsestatements/test-scanner.o
./src/parsestatements/scanner.h
--snip--

Make is not looking in/descending into the correct dir?

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list