From owner-freebsd-ports@FreeBSD.ORG Fri Oct 27 06:48:42 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82FDF16A417 for ; Fri, 27 Oct 2006 06:48:42 +0000 (UTC) (envelope-from starikov@caotus.ru) Received: from gw-2.caotus.ru (gw-2.caotus.ru [194.186.213.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E282443D46 for ; Fri, 27 Oct 2006 06:48:40 +0000 (GMT) (envelope-from starikov@caotus.ru) Received: from gw-1.caotus.ru (gw-1.caotus.ru [194.186.213.1]) by gw-2.caotus.ru (8.13.6/8.12.3) with ESMTP id k9R6mb6M043077 for ; Fri, 27 Oct 2006 10:48:37 +0400 (MSD) (envelope-from starikov@caotus.ru) Received: from gw-1.caotus.ru (root@localhost) by gw-1.caotus.ru (8.13.6/8.12.3) with SMTP id k9R6mbQn092626 for ; Fri, 27 Oct 2006 10:48:37 +0400 (MSD) (envelope-from starikov@caotus.ru) Received: from [194.186.213.105] (ftn.caotus.ru [194.186.213.105]) by gw-1.caotus.ru (8.13.6/8.12.3) with ESMTP id k9R6mYLd092582; Fri, 27 Oct 2006 10:48:35 +0400 (MSD) (envelope-from starikov@caotus.ru) Message-ID: <4541AD13.20704@caotus.ru> Date: Fri, 27 Oct 2006 10:54:11 +0400 From: Starikov Sergey Organization: CAOTUS User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ale@freebsd.org Content-Type: multipart/mixed; boundary="------------000701000207060207000109" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org Subject: FreeBSD Port: php5-bz2-5.1.6_2, 6.1 RELEASE compile bug-report X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Starikov@caotus.ru List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2006 06:48:42 -0000 This is a multi-part message in MIME format. --------------000701000207060207000109 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Hello, I had some troubles with compiling php5 port on FreeBSD 6.1 RELEASE. Though I've compiled not typical configuration (without MySQL but with Oracle client support). The first problem was in linking with posix phreads. This problem was sold by setting environment variable LDFLAGS value "-lpthread" The second problem was also with linking a function cuserid from oracle library. According to manual the compatibility with this function is provided by libcompat library. The flag "-lcompat" in linking string was present. But it don't work. Followed analysing of the configure script showed, that the support of cuserid function in the systen wasn't found. There also was found the source code of test program, which compiling and showed the role of sequence of arguments/options. The problem was finally sold by setting environment variable LDFLAGS value "-lpthread -L/usr/local/oracle8-client/lib -lclntst8 -lcompat -lm" The php5 port in required configuration compiles successfully. I'm not shure, that it's right way, but it works! I think, the root of both problems is in that GCC-3.4.4 is too critical to the sequence of options and arguments. P.S. Excuse me my English. --------------000701000207060207000109--