From owner-freebsd-questions Thu Dec 14 13:38: 6 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 14 13:38:03 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 30DBC37B400; Thu, 14 Dec 2000 13:38:01 -0800 (PST) Received: (from jonc@localhost) by itouch.co.nz (8.11.1/8.11.1) id eBELban64329; Fri, 15 Dec 2000 10:37:36 +1300 (NZDT) (envelope-from jonc) Date: Fri, 15 Dec 2000 10:37:36 +1300 From: Jonathan Chen To: xuyifeng Cc: freebsd-questions@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: sybase db-library name conflict with Berkeley DB Message-ID: <20001215103736.A64193@itouchnz.itouch> Reply-To: freebsd-questions@FreeBSD.ORG References: <002c01c064b7$0787b1a0$5ac809c0@xyf> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <002c01c064b7$0787b1a0$5ac809c0@xyf>; from bsddiy@163.net on Wed, Dec 13, 2000 at 11:43:53AM +0800 Sender: jonc@itouch.co.nz Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Dec 13, 2000 at 11:43:53AM +0800, xuyifeng wrote: > > I have found that Sybase db-library function "dbopen" conflicts with Berkeley DB "dbopen", and > I can not build php with sybase db-library under FreeBSD, php fails to connect Sybase server > because it uses Berkeley DB dbopen, this is wrong, any way to resolve to problem? You should try building php with the ports system. There is one big problem with this though. The default build for FreeTDS (which the FreeBSD-PHP ports system uses to communicate with Sybase) only talks M$-SQL server. You have to tweak the Makefile in /usr/ports/database/freetds so that the CONFIGURE_ARGS has --with-tdsver=5.0 instead of --with-tdsver=7.0. At that point, you can build PHP using the ports system, and you should be able talk to Sybase databases quite happily. Cheers. -- Jonathan Chen ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message