Date: Sun, 22 Mar 1998 16:31:02 -0800 (PST) From: Mostyn Lewis <mrl@teleport.com> To: andreas@klemm.gtn.com (Andreas Klemm) Cc: scrappy@FreeBSD.ORG, ports@FreeBSD.ORG, mcglk@serv.net, ghormann@nix.kconline.com, tarkhil@asteroid.svib.ru Subject: Re: URGENT, postgresql 6.3 port, need help with make environment Message-ID: <199803230031.QAA08453@user2.teleport.com> In-Reply-To: <19980322113502.61329@klemm.gtn.com> from "Andreas Klemm" at Mar 22, 98 11:35:02 am
next in thread | previous in thread | raw e-mail | index | archive | help
All, I thought I'd try pgsql 6.3 - Well I got it all to work in a tyro way :-) 1. In patch-ae there's +TCL_LIB= -ltcl81 I only have version 8.0 so I used +TCL_LIB= -ltcl80 2. In patch-ac, I changed configure so it could find my tk.h cpp needs the header path to teh X headers because, tk.h references them and fails the config. Needs something like ac_try="$ac_cpp -I$ac_x_includes conftest.$ac_ext >/dev/null 2>conftest.out" 3. After building and installing, I tried pgaccess. The 2 lines to load libraries in pgaccess are:- load /usr/local/pgsql/lib/libpq.so load /usr/local/pgsql/lib/libpgtcl.so The first will fail as there's no "package"_Init file in it (in tcl terminology) and the second, while its a tcl package with an _Init entry point will fail due to missing externals it needs from the first. Solution? a. One make a combined library from both and load this - tried this and it worked. b. Comment out both and use pgaccess via pgtksh, e.g. pgtksh % source /usr/local/bin/pgaccess This works, too. Also when using pgaccess, I noticed that the pgsql socket is in the UNIX domain in tmp, so when opening a database don't specify a host name (e.g. localhost) as it will try a AF_INET access and will fail (see fe-connect.c in libpg). Just wipe out the host name (leave it blank) and then it will connect in the AF_UNIX domain and work. pgaccess was then functional. Regards, Mostyn Lewis Patches I used: patch-ac: --- configure.orig Mon Mar 2 06:55:42 1998 +++ configure Sun Mar 22 11:58:58 1998 @@ -1,4 +1,5 @@ #! /bin/sh +set -x # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.12 @@ -716,6 +717,8 @@ CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'` LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'` +# don't ask questions, should be a configure option +with_defaults=yes echo "**************************************************************" echo "We now need to know if your compiler needs to search any @@ -5545,7 +5548,7 @@ #include "confdefs.h" #include <tk.h> EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp -I$ac_x_includes conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then @@ -5580,7 +5583,7 @@ #include "confdefs.h" #include <$f/tk.h> EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp -I$ac_x_includes conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then patch-ae: --- Makefile.global.in.orig Sun Mar 22 10:42:00 1998 +++ Makefile.global.in Sun Mar 22 10:46:20 1998 @@ -160,12 +160,12 @@ USE_TCL= @USE_TCL@ # customize these to your site's needs # -TCL_INCDIR= @TCL_INCDIR@ -TCL_LIBDIR= /usr/local/lib -TCL_LIB= @TCL_LIB@ -TK_INCDIR= @TK_INCDIR@ -TK_LIBDIR= /usr/local/lib -TK_LIB= @TK_LIB@ +TCL_INCDIR= !!LOCALBASE!!/include/tcl8.0 +TCL_LIBDIR= !!LOCALBASE!!/lib +TCL_LIB= -ltcl80 +TK_INCDIR= !!LOCALBASE!!/include/tk8.0 +TK_LIBDIR= !!LOCALBASE!!/lib +TK_LIB= -ltk80 USE_PERL= @USE_PERL@ In pgaccess in proc {main} #load /usr/local/pgsql/lib/libpq.so #load /usr/local/pgsql/lib/libpgtcl.so and use pgtksh or load /usr/local/pgsql/lib/foo.so "pgtcl" where foo.so is a combined libpg and libpgtcl specially made. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803230031.QAA08453>