From owner-freebsd-database Tue Mar 24 17:57:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA10087 for freebsd-database-outgoing; Tue, 24 Mar 1998 17:57:07 -0800 (PST) (envelope-from owner-freebsd-database@FreeBSD.ORG) Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA10069; Tue, 24 Mar 1998 17:56:57 -0800 (PST) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.8.5/8.8.5) id UAA23188; Tue, 24 Mar 1998 20:36:07 -0500 (EST) From: Bruce Momjian Message-Id: <199803250136.UAA23188@candle.pha.pa.us> Subject: Re: [PORTS] Pgaccess doesn't run on -current anymore, Update To: shimon@simon-shapiro.org Date: Tue, 24 Mar 1998 20:36:07 -0500 (EST) Cc: hasty@rah.star-gate.com, freebsd-database@FreeBSD.ORG, andreas@klemm.gtn.com, pgsql-ports@postgreSQL.org, current@FreeBSD.ORG, scrappy@hub.org In-Reply-To: from "Simon Shapiro" at Mar 23, 98 05:11:55 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-database@FreeBSD.ORG Precedence: bulk > > With lots of help from many good people, here is how far I got: > > a. The port still talks about 6.2.1, so forget that. > > b. When configuring, make sure you specify ``/usr/locl/include/tcl{whatever > _version} /usr/local/include/tk{whatever_version}'' > > c. In configure (you can/should do it to configure.in and regenerate it > via autoconf - I'll let YOU figh this one :-) you should specify the > explicit libraries, as in TCL_LIB = tcl8.1 and TK_LIB = tk8.1, instead > of the generic TCL_LIB = tcl One other solution is to make a symbolic link from libtcl8.1.so to libtcl.so, and when you upgrade tcl, you update the symbolic link so libtcl.so always points to the most recent version. Do the same with libtk, tcl.h and tk.h. That is what BSDI does. > > These above steps are curtesy of the changes to the .mk files that deprive > FreeBSD from a normal, default tcl/tk installation in an attempt to > acomodate all the versions necessary in many different places. > > More steps: > > d. Edit src/bin/pgaccess/pgaccess.tcl to remove the line ``load libpgtcl'' > > e. Install the above directory someplace sensible (other then the source > tree. I put it in ~pgsql/bin/pgaccess.dir > > f. Write yourself a bit script that does ``pgtksh -f > /usr/local/pgsql/bin/pgaccess.ir/pgaccess.tcl'' > > The script will promptly start very nicely. > > More Fun: > > g. Pull down the Database menu, select Open > > h. Enter your favorite database name and connection data > > i. Since tcl is interpreted/embedded it is immune to C programming errors. > Thus it will promptly generate a segmentation fault and die. Just to let you know, pgaccess works fine under BSDI. I use versions tcl7.5 and tk4.1. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-database" in the body of the message