postgresql.patch.libpqxx 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Index: configure
  2. diff -Nau configure.orig configure
  3. --- configure.orig 2005-03-19 14:31:37.000000000 +0100
  4. +++ configure 2005-03-22 14:17:46.925800594 +0100
  5. @@ -21272,67 +21272,6 @@
  6. { (exit 1); exit 1; }; }
  7. fi
  8. -
  9. -
  10. -# TODO: Adapt automatically somehow...
  11. -echo "$as_me:$LINENO: checking that type of libpq's Oid is as expected" >&5
  12. -echo $ECHO_N "checking that type of libpq's Oid is as expected... $ECHO_C" >&6
  13. -cat >conftest.$ac_ext <<_ACEOF
  14. -/* confdefs.h. */
  15. -_ACEOF
  16. -cat confdefs.h >>conftest.$ac_ext
  17. -cat >>conftest.$ac_ext <<_ACEOF
  18. -/* end confdefs.h. */
  19. -#include<${with_postgres_include}/libpq-fe.h>
  20. - #include<pqxx/libpq-forward.hxx>
  21. -int
  22. -main ()
  23. -{
  24. -typedef pqxx::oid Oid
  25. - ;
  26. - return 0;
  27. -}
  28. -_ACEOF
  29. -rm -f conftest.$ac_objext
  30. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31. - (eval $ac_compile) 2>conftest.er1
  32. - ac_status=$?
  33. - grep -v '^ *+' conftest.er1 >conftest.err
  34. - rm -f conftest.er1
  35. - cat conftest.err >&5
  36. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37. - (exit $ac_status); } &&
  38. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  39. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40. - (eval $ac_try) 2>&5
  41. - ac_status=$?
  42. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43. - (exit $ac_status); }; } &&
  44. - { ac_try='test -s conftest.$ac_objext'
  45. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  46. - (eval $ac_try) 2>&5
  47. - ac_status=$?
  48. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49. - (exit $ac_status); }; }; then
  50. - { { echo "$as_me:$LINENO: error:
  51. -The Oid typedef in libpq has changed. Please notify the libpqxx authors of the
  52. -change!
  53. -" >&5
  54. -echo "$as_me: error:
  55. -The Oid typedef in libpq has changed. Please notify the libpqxx authors of the
  56. -change!
  57. -" >&2;}
  58. - { (exit 1); exit 1; }; }
  59. -else
  60. - echo "$as_me: failed program was:" >&5
  61. -sed 's/^/| /' conftest.$ac_ext >&5
  62. -
  63. -fi
  64. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  65. -echo "$as_me:$LINENO: result: yes" >&5
  66. -echo "${ECHO_T}yes" >&6
  67. -
  68. -
  69. # Check presence and version of strerror_r()
  70. ac_ext=c
  71. ac_cpp='$CPP $CPPFLAGS'
  72. @@ -21337,6 +21337,7 @@
  73. ac_ext=c
  74. ac_cpp='$CPP $CPPFLAGS'
  75. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  76. +ac_compile_hardcore='$CXX -pedantic-errors -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  77. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  78. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  79. @@ -21415,18 +21416,16 @@
  80. cat >>conftest.$ac_ext <<_ACEOF
  81. /* end confdefs.h. */
  82. #include <string.h>
  83. - extern int strerror_r(int errnum, char *buf, size_t n);
  84. int
  85. main ()
  86. {
  87. -
  88. - ;
  89. + int dico = strerror_r((int)0, (char *)0, (size_t)0);
  90. return 0;
  91. }
  92. _ACEOF
  93. rm -f conftest.$ac_objext
  94. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  95. - (eval $ac_compile) 2>conftest.er1
  96. +if { (eval echo "$as_me:$LINENO: \"$ac_compile_hardcore\"") >&5
  97. + (eval $ac_compile_hardcore) 2>conftest.er1
  98. ac_status=$?
  99. grep -v '^ *+' conftest.er1 >conftest.err
  100. rm -f conftest.er1
  101. @@ -21465,18 +21464,16 @@
  102. cat >>conftest.$ac_ext <<_ACEOF
  103. /* end confdefs.h. */
  104. #include <string.h>
  105. - extern char *strerror_r(int errnum, char *buf, size_t n);
  106. int
  107. main ()
  108. {
  109. -
  110. - ;
  111. + char *dico = strerror_r((int)0, (char *)0, (size_t)0);
  112. return 0;
  113. }
  114. _ACEOF
  115. rm -f conftest.$ac_objext
  116. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  117. - (eval $ac_compile) 2>conftest.er1
  118. +if { (eval echo "$as_me:$LINENO: \"$ac_compile_hardcore\"") >&5
  119. + (eval $ac_compile_hardcore) 2>conftest.er1
  120. ac_status=$?
  121. grep -v '^ *+' conftest.er1 >conftest.err
  122. rm -f conftest.er1
  123. @@ -21516,18 +21513,16 @@
  124. cat >>conftest.$ac_ext <<_ACEOF
  125. /* end confdefs.h. */
  126. #include <string.h>
  127. - extern int strerror_r(int errnum, char *buf, int n);
  128. int
  129. main ()
  130. {
  131. -
  132. - ;
  133. + int strerror_r((int)0, (char *)0, (int)0);
  134. return 0;
  135. }
  136. _ACEOF
  137. rm -f conftest.$ac_objext
  138. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  139. - (eval $ac_compile) 2>conftest.er1
  140. +if { (eval echo "$as_me:$LINENO: \"$ac_compile_hardcore\"") >&5
  141. + (eval $ac_compile_hardcore) 2>conftest.er1
  142. ac_status=$?
  143. grep -v '^ *+' conftest.er1 >conftest.err
  144. rm -f conftest.er1