On Wed, Apr 23, 2008 at 11:26:52PM -0400, Jason Stover wrote:

     > Interesting.  What do you get if you type "ncurses5-config --cflags" ?
     
     -I/usr/pkg/include -I/usr/pkg/include/ncurses

This confirms my opinion that your ncurses implementation is
completely broken.
     
     ld: warning: libz.so.0, needed by /usr/pkg/lib/libxml2.so, may conflict 
with libz.so.1
     ld: warning: libssl.so.2, needed by /usr/pkg/lib/libpq.so, not found (try 
using -rpath or -rpath-link)
     /usr/pkg/lib/libcrypto.so.1: warning: warning: reference to compatibility 
times(); include <sys/times.h> for correct reference
     /usr/pkg/lib/libpq.so: undefined reference to `SSL_set_ex_data'
     /usr/pkg/lib/libpq.so: undefined reference to `SSL_set_fd'
     /usr/pkg/lib/libpq.so: undefined reference to `SSL_CTX_free'
     /usr/pkg/lib/libpq.so: undefined reference to `SSL_shutdown'
     /usr/pkg/lib/libpq.so: undefined reference to `SSL_get_error'
     
     What does libpq do?

It enables the GET DATA /TYPE=PSQL command.


Can you try the attached patch, and see what difference it makes.  It
includes a --without-libncurses option.  Hopefully it will fix your
libpq / libssl problem too.

J'


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


? diffs
? libtool
? pspp-0.4.3.tar.gz
? pspp.jnl
? pspp.list
? x.c
? x.patch
? po/pspp.pot
? src/language/stats/glm.c
? src/language/tests/check-model.c
? src/ui/gui/.libs
? src/ui/gui/libpsppire.la
? src/ui/gui/src_ui_gui_libpsppire_la-glade-register.lo
? tests/.libs
? tests/dissect-sysfile
? tests/libpspp/abt-test
? tests/libpspp/bt-test
? tests/libpspp/heap-test
? tests/libpspp/range-map-test
? tests/libpspp/range-set-test
? tests/libpspp/sparse-array-test
? tests/libpspp/str-test
? tests/libpspp/tower-test
Index: configure.ac
===================================================================
RCS file: /sources/pspp/pspp/configure.ac,v
retrieving revision 1.81
diff -b -w -U 3 -r1.81 configure.ac
--- configure.ac	21 Apr 2008 02:35:31 -0000	1.81
+++ configure.ac	24 Apr 2008 06:42:43 -0000
@@ -61,8 +61,7 @@
 dnl To overcome this, we first check for libpq in the standard places, and
 dnl only set PG_LDFLAGS if it's not found.
 
-
-AC_SEARCH_LIBS([PQexec], [pq], [libpq_in_std_lib_path=yes])
+AC_SEARCH_LIBS([PQexec], [pq], [libpq_in_std_lib_path=yes],,[-lssl])
 
 AC_ARG_VAR([PG_CONFIG], [Full pathname of the pg_config program shipped with Postgresql])
 if test x"$cross_compiling" != x"yes" ; then
@@ -84,7 +83,7 @@
    AC_SUBST(PG_LIBS)
    PKG_CHECK_EXISTS(libssl,
          AC_DEFINE([USE_SSL],1,
-	 	    [Define to 1 if the openssl library is present.])
+	 	    [Define to 1 if the ssl client library is present.])
 	    ,)
 fi
 AM_CONDITIONAL(PSQL_SUPPORT, test -n "$PG_CONFIG")
@@ -121,6 +120,10 @@
 dnl try to discover it ourselves.
 dnl To confound things further, Cygwin has decided to rename ncurses5-config
 dnl to ncurses8-config !!!
+AC_ARG_WITH(
+  libncurses, 
+  [AS_HELP_STRING([--without-libncurses], [don't compile in ncurses functions])])
+if test x"$with_libncurses" != x"no" ; then
 if test x"$cross_compiling" != x"yes" ; then
   AC_CHECK_PROGS([NCURSES_CONFIG], [ncurses5-config ncurses8-config])
 fi
@@ -139,6 +142,8 @@
      [Define to 1 if the libncurses is both present and usable.])
 fi
 AC_CHECK_HEADERS([termcap.h])
+fi
+
 
 PSPP_READLINE
 

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to