(Newbies Problem)Installing Slony-I on SUSE enterprise

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ray ho
    New Member
    • Sep 2010
    • 1

    #1

    (Newbies Problem)Installing Slony-I on SUSE enterprise

    I am a newbie to linux, postgresql and slony-i.
    Please forgive me.

    I encounter some problems while installing slony-i in SUSE.

    Code:
    Background:
    SuSE Enterprise 10  Installed
    postgresql-8.1.4-1.3  Installed
    postgresql-devel 8.1.4   Installed
    postgresql-libs  8.1.4  Installed
    postgresql-server   8.1.4   Installed
    ./configure
    Code:
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking which template to use... linux
    configure: using CFLAGS=
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
    checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
    checking for perl... /usr/bin/perl
    checking for tar... /bin/tar
    checking for flex... flex
    checking for bison... bison -y
    checking for sed... sed
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for cc_r... gcc
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for inttypes.h... (cached) yes
    checking for gettimeofday... yes
    checking for dup2... yes
    checking for alarm... yes
    checking for memset... yes
    checking for select... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for strtol... yes
    checking for strtoul... yes
    checking for int32_t... yes
    checking for uint32_t... yes
    checking for u_int32_t... yes
    checking for int64_t... yes
    checking for uint64_t... yes
    checking for u_int64_t... yes
    checking for ssize_t... yes
    checking for POSIX signal interface... yes
    checking if you have requested slony1-engine building... yes
    checking for pg_config... /usr/bin/pg_config
    pg_config says pg_bindir is /usr/bin/
    pg_config says pg_libdir is /usr/lib/
    pg_config says pg_includedir is /usr/include/pgsql/
    pg_config says pg_pkglibdir is /usr/lib/postgresql/
    pg_config says pg_includeserverdir is /usr/include/pgsql/server/
    checking for correct version of PostgreSQL... 8.1
    pg_config says pg_sharedir is /usr/share/postgresql/
    checking for PQunescapeBytea in -lpq... yes
    checking libpq-fe.h usability... yes
    checking libpq-fe.h presence... yes
    checking for libpq-fe.h... yes
    checking postgres.h usability... yes
    checking postgres.h presence... yes
    checking for postgres.h... yes
    checking for utils/typcache.h... yes
    checking for plpgsql.so... yes
    checking for postgresql.conf.sample... skipped due to override
    checking for PQputCopyData in -lpq... yes
    checking for PQsetNoticeReceiver in -lpq... yes
    checking for PQfreemem in -lpq... yes
    checking for ScanKeywordLookup... yes, and it takes  arguments
    checking for typenameTypeId... checking for typenameTypeId... yes, and it takes 1 arguments
    checking for GetActiveSnapshot... no
    checking for ScanKeywordLookup... no
    checking for standard_conforming_strings... no
    checking whether GetTopTransactionId is declared... yes
    checking if you have requested documentation building... no
    configure: creating ./config.status
    config.status: creating Makefile.global
    config.status: creating GNUmakefile
    config.status: creating postgresql-slony1.spec
    config.status: creating Makefile.port
    config.status: creating config.h
    gmake all
    Code:
    gmake[1]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src'
    gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/xxid'
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I../.. -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o xxid.o xxid.c
    gcc -shared -o xxid.so xxid.o
    cp xxid.v74.sql xxid.v80.sql
    cp xxid.v80.sql xxid.v81.sql
    gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/xxid'
    gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/parsestatements'
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o test-scanner.o test-scanner.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o scanner.o scanner.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -o test-scanner test-scanner.c scanner.o
    ./test-scanner < /dev/null > emptytestresult.log
    cmp ./emptytestresult.log emptytestresult.expected
    ./test-scanner < ./test_sql.sql > test_sql.log
    cmp ./test_sql.log ./test_sql.expected
    ./test-scanner < ./cstylecomments.sql > cstylecomments.log
    cmp ./cstylecomments.log ./cstylecomments.expected
    gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/parsestatements'
    gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/slon'
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o slon.o slon.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o runtime_config.o runtime_config.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o local_listen.o local_listen.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o remote_listen.o remote_listen.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o remote_worker.o remote_worker.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o sync_thread.o sync_thread.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o cleanup_thread.o cleanup_thread.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o scheduler.o scheduler.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o dbutils.o dbutils.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o conf-file.o conf-file.c
    src/slon/conf-file.l:116: warning: no previous prototype for ‘ProcessConfigFile’
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o confoptions.o confoptions.c
    confoptions.c:31: warning: no previous prototype for ‘build_conf_variables’
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o misc.o misc.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -pthread -I../.. -I../../src/slon -o slon slon.o runtime_config.o local_listen.o remote_listen.o remote_worker.o sync_thread.o cleanup_thread.o scheduler.o dbutils.o conf-file.o confoptions.o misc.o ../parsestatements/scanner.o -pthread -L/usr/lib/ -L/usr/lib/postgresql/ -lpq  -Wl,-rpath,/usr/lib/
    gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/slon'
    gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/slonik'
    gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -DPGSHARE="\"/usr/share/postgresql/\"" -DPG_VERSION_MAJOR=8 -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o slonik.o slonik.c
    In file included from slonik.c:31:
    /usr/include/pgsql/libpq-fe.h:33:25: error: openssl/ssl.h: No such file or directory
    In file included from slonik.c:31:
    /usr/include/pgsql/libpq-fe.h:276: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    gmake[2]: *** [slonik.o] Error 1
    gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/slonik'
    gmake[1]: *** [all] Error 2
    gmake[1]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src'
    gmake: *** [all] Error 2
    it is fail to do a gmake all
Working...