By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

(Newbies Problem)Installing Slony-I on SUSE enterprise

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

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

Expand|Select|Wrap|Line Numbers
  1. Background:
  2. SuSE Enterprise 10  Installed
  3. postgresql-8.1.4-1.3  Installed
  4. postgresql-devel 8.1.4   Installed
  5. postgresql-libs  8.1.4  Installed
  6. postgresql-server   8.1.4   Installed
  7.  
./configure
Expand|Select|Wrap|Line Numbers
  1. checking build system type... i686-pc-linux-gnu
  2. checking host system type... i686-pc-linux-gnu
  3. checking which template to use... linux
  4. configure: using CFLAGS=
  5. checking for gcc... gcc
  6. checking for C compiler default output file name... a.out
  7. checking whether the C compiler works... yes
  8. checking whether we are cross compiling... no
  9. checking for suffix of executables...
  10. checking for suffix of object files... o
  11. checking whether we are using the GNU C compiler... yes
  12. checking whether gcc accepts -g... yes
  13. checking for gcc option to accept ANSI C... none needed
  14. checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
  15. checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
  16. checking for perl... /usr/bin/perl
  17. checking for tar... /bin/tar
  18. checking for flex... flex
  19. checking for bison... bison -y
  20. checking for sed... sed
  21. checking for the pthreads library -lpthreads... no
  22. checking whether pthreads work without any flags... no
  23. checking whether pthreads work with -Kthread... no
  24. checking whether pthreads work with -kthread... no
  25. checking for the pthreads library -llthread... no
  26. checking whether pthreads work with -pthread... yes
  27. checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
  28. checking if more special flags are required for pthreads... no
  29. checking for cc_r... gcc
  30. checking how to run the C preprocessor... gcc -E
  31. checking for egrep... grep -E
  32. checking for ANSI C header files... yes
  33. checking for sys/types.h... yes
  34. checking for sys/stat.h... yes
  35. checking for stdlib.h... yes
  36. checking for string.h... yes
  37. checking for memory.h... yes
  38. checking for strings.h... yes
  39. checking for inttypes.h... yes
  40. checking for stdint.h... yes
  41. checking for unistd.h... yes
  42. checking fcntl.h usability... yes
  43. checking fcntl.h presence... yes
  44. checking for fcntl.h... yes
  45. checking limits.h usability... yes
  46. checking limits.h presence... yes
  47. checking for limits.h... yes
  48. checking stddef.h usability... yes
  49. checking stddef.h presence... yes
  50. checking for stddef.h... yes
  51. checking sys/socket.h usability... yes
  52. checking sys/socket.h presence... yes
  53. checking for sys/socket.h... yes
  54. checking sys/time.h usability... yes
  55. checking sys/time.h presence... yes
  56. checking for sys/time.h... yes
  57. checking for inttypes.h... (cached) yes
  58. checking for gettimeofday... yes
  59. checking for dup2... yes
  60. checking for alarm... yes
  61. checking for memset... yes
  62. checking for select... yes
  63. checking for strdup... yes
  64. checking for strerror... yes
  65. checking for strtol... yes
  66. checking for strtoul... yes
  67. checking for int32_t... yes
  68. checking for uint32_t... yes
  69. checking for u_int32_t... yes
  70. checking for int64_t... yes
  71. checking for uint64_t... yes
  72. checking for u_int64_t... yes
  73. checking for ssize_t... yes
  74. checking for POSIX signal interface... yes
  75. checking if you have requested slony1-engine building... yes
  76. checking for pg_config... /usr/bin/pg_config
  77. pg_config says pg_bindir is /usr/bin/
  78. pg_config says pg_libdir is /usr/lib/
  79. pg_config says pg_includedir is /usr/include/pgsql/
  80. pg_config says pg_pkglibdir is /usr/lib/postgresql/
  81. pg_config says pg_includeserverdir is /usr/include/pgsql/server/
  82. checking for correct version of PostgreSQL... 8.1
  83. pg_config says pg_sharedir is /usr/share/postgresql/
  84. checking for PQunescapeBytea in -lpq... yes
  85. checking libpq-fe.h usability... yes
  86. checking libpq-fe.h presence... yes
  87. checking for libpq-fe.h... yes
  88. checking postgres.h usability... yes
  89. checking postgres.h presence... yes
  90. checking for postgres.h... yes
  91. checking for utils/typcache.h... yes
  92. checking for plpgsql.so... yes
  93. checking for postgresql.conf.sample... skipped due to override
  94. checking for PQputCopyData in -lpq... yes
  95. checking for PQsetNoticeReceiver in -lpq... yes
  96. checking for PQfreemem in -lpq... yes
  97. checking for ScanKeywordLookup... yes, and it takes  arguments
  98. checking for typenameTypeId... checking for typenameTypeId... yes, and it takes 1 arguments
  99. checking for GetActiveSnapshot... no
  100. checking for ScanKeywordLookup... no
  101. checking for standard_conforming_strings... no
  102. checking whether GetTopTransactionId is declared... yes
  103. checking if you have requested documentation building... no
  104. configure: creating ./config.status
  105. config.status: creating Makefile.global
  106. config.status: creating GNUmakefile
  107. config.status: creating postgresql-slony1.spec
  108. config.status: creating Makefile.port
  109. config.status: creating config.h
  110.  
gmake all
Expand|Select|Wrap|Line Numbers
  1. gmake[1]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src'
  2. gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/xxid'
  3. 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
  4. gcc -shared -o xxid.so xxid.o
  5. cp xxid.v74.sql xxid.v80.sql
  6. cp xxid.v80.sql xxid.v81.sql
  7. gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/xxid'
  8. gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/parsestatements'
  9. 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
  10. gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I/usr/include/pgsql/ -I/usr/include/pgsql/server/  -c -o scanner.o scanner.c
  11. gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -o test-scanner test-scanner.c scanner.o
  12. ./test-scanner < /dev/null > emptytestresult.log
  13. cmp ./emptytestresult.log emptytestresult.expected
  14. ./test-scanner < ./test_sql.sql > test_sql.log
  15. cmp ./test_sql.log ./test_sql.expected
  16. ./test-scanner < ./cstylecomments.sql > cstylecomments.log
  17. cmp ./cstylecomments.log ./cstylecomments.expected
  18. gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/parsestatements'
  19. gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/slon'
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. src/slon/conf-file.l:116: warning: no previous prototype for ‚€˜ProcessConfigFile‚€™
  31. 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
  32. confoptions.c:31: warning: no previous prototype for ‚€˜build_conf_variables‚€™
  33. 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
  34. 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/
  35. gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/slon'
  36. gmake[2]: Entering directory `/var/lib/pgsql/slony1-1.2.20/src/slonik'
  37. 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
  38. In file included from slonik.c:31:
  39. /usr/include/pgsql/libpq-fe.h:33:25: error: openssl/ssl.h: No such file or directory
  40. In file included from slonik.c:31:
  41. /usr/include/pgsql/libpq-fe.h:276: error: expected ‚€˜=‚€™, ‚€˜,‚€™, ‚€˜;‚€™, ‚€˜asm‚€™ or ‚€˜__attribute__‚€™ before ‚€˜*‚€™ token
  42. gmake[2]: *** [slonik.o] Error 1
  43. gmake[2]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src/slonik'
  44. gmake[1]: *** [all] Error 2
  45. gmake[1]: Leaving directory `/var/lib/pgsql/slony1-1.2.20/src'
  46. gmake: *** [all] Error 2
  47.  
  48.  
it is fail to do a gmake all
Sep 15 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.