From owner-freebsd-ports Wed Aug 22 13: 0:38 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2D45137B43E for ; Wed, 22 Aug 2001 13:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7MK01a37243; Wed, 22 Aug 2001 13:00:01 -0700 (PDT) (envelope-from gnats) Received: from pr0n.kutulu.org (pr0n.kutulu.org [151.196.107.157]) by hub.freebsd.org (Postfix) with ESMTP id DB41337B43F for ; Wed, 22 Aug 2001 12:55:53 -0700 (PDT) (envelope-from kutulu@pr0n.kutulu.org) Received: (from root@localhost) by pr0n.kutulu.org (8.11.5/8.11.5) id f7MExFV02458; Wed, 22 Aug 2001 14:59:15 GMT (envelope-from kutulu) Message-Id: <200108221459.f7MExFV02458@pr0n.kutulu.org> Date: Wed, 22 Aug 2001 14:59:15 GMT From: kutulu Reply-To: kutulu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/29963: Configure fails for most kde-2 ports. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29963 >Category: ports >Synopsis: Configure fails for most kde-2 ports. >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 22 13:00:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: kutulu >Release: FreeBSD 4.4-20010815-RC1 i386 >Organization: >Environment: System: FreeBSD pr0n.kutulu.org 4.4-20010815-RC1 FreeBSD 4.4-20010815-RC1 #0: Thu Aug 16 06:35:35 GMT 2001 murray@scrub.lab.nuxi.com:/usr/src/sys/compile/GENERIC i386 >Description: When building any of the kde2 ports (ie, kde2 or it's dependancies like kdelibs2 or kdebase2, the configure process to locate libXext fails. The problem results from the fact that the make process is setting the LIBS variable to include /usr/X11R6/lib (for example) before calling configure. The configure step to locate X's libraries includes $LIBS in the link command, which leads configure to beleive that the X libraries are in a standard location (it claims /usr/lib). However, when the configure step to locate libXext is run, LIBS is temporarily cleared out, removing the -L flag pointing to the X libraries, and the attempt to locate libXext fails. >How-To-Repeat: Attempt to make in kdelibs2. (kdebase2 also failes, I assume any kde2 package that requires libXext will fail similarly). >Fix: Immediate workaround was to make patch, then edit the configure script for any affected packages to force the X libraries to be found in the correct place. Example, from kdelibs2: *** configure.old Wed Aug 22 14:49:53 2001 --- configure Wed Aug 22 14:50:05 2001 *************** *** 5,7 **** # We can link X programs with no special library path. ! ac_x_libraries= else --- 5,7 ---- # We can link X programs with no special library path. ! ac_x_libraries=/usr/X11R6/lib else An actual fix will probably involve either modifying LIBS as set before running ./configure to not include the X libraries, or change the autoconf macro to locate libXext so that it saves the -L flag. Changing the make process for the ports system is a bit beyond my current skill level. :) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message