From owner-freebsd-ports-bugs Tue Mar 4 2:50:11 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AA3737B401 for ; Tue, 4 Mar 2003 02:50:09 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82F5443FBF for ; Tue, 4 Mar 2003 02:50:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h24Ao8NS032970 for ; Tue, 4 Mar 2003 02:50:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h24Ao8gj032969; Tue, 4 Mar 2003 02:50:08 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E998037B401 for ; Tue, 4 Mar 2003 02:49:53 -0800 (PST) Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE07E43FBF for ; Tue, 4 Mar 2003 02:49:52 -0800 (PST) (envelope-from cmt@rz.uni-karlsruhe.de) Received: from rz-ewok.rz.uni-karlsruhe.de (postfix@rz-ewok.rz.uni-karlsruhe.de [129.13.80.10]) by mailgate.rz.uni-karlsruhe.de with esmtp (Exim 3.36 #1) id 18q9zb-0003DG-00; Tue, 04 Mar 2003 11:49:51 +0100 Received: by rz-ewok.rz.uni-karlsruhe.de (Postfix, from userid 1005) id 23F072C17F; Tue, 4 Mar 2003 11:49:51 +0100 (CET) Message-Id: <20030304104946.GA1100@rz-ewok.rz.uni-karlsruhe.de> Date: Tue, 4 Mar 2003 11:49:51 +0100 From: Christoph Moench-Tegeder Reply-To: Christoph Moench-Tegeder To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48913: vtk build error with nvidia-driver installed Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48913 >Category: ports >Synopsis: vtk does not compile with nvidia-drivers installed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 04 02:50:07 PST 2003 >Closed-Date: >Last-Modified: >Originator: Christoph Moench-Tegeder >Release: FreeBSD 4.8-PRERELEASE i386 >Organization: >Environment: System: FreeBSD elch.hun23.local 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #2: Mon Feb 24 21:56:52 CET 2003 root@elch.hun23.local:/usr/obj/usr/src/sys/CMT i386 >Description: The Makefile for match/vtk ($FreeBSD: ports/math/vtk/Makefile,v 1.20 2003/02/20 18:42:24 knu Exp $) configures vtk with --with-mesa. If x11/nvidia-drivers is installed, vtk does not compile/link because of unresolved symbols in libOSMesa. >How-To-Repeat: "make install" in match/vtk when x11/nvidia-driver is installed. >Fix: Configuring vtk with --with-opengl instead of --with-mesa solved the problem for me. Patch for the Makefile is included below. --- Makefile.orig Tue Mar 4 11:13:10 2003 +++ Makefile Tue Mar 4 11:29:25 2003 @@ -18,12 +18,22 @@ LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83 USE_REINPLACE= yes -USE_MESA= yes WRKSRC= ${WRKDIR}/vtk${PORTVERSION} INSTALLS_SHLIB= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-mesa --with-shared --with-tcl --with-bsdmake +CONFIGURE_ARGS= --with-shared --with-tcl --with-bsdmake CONFIGURE_ARGS+= --with-contrib --with-tkwidget + +.if exists(/usr/X11R6/lib/libXvMCNVIDIA.a) +USE_OPENGL= yes +.endif + +.if defined(USE_OPENGL) +CONFIGURE_ARGS+= --with-opengl +.else +USE_MESA= yes +CONFIGURE_ARGS+= --with-mesa +.endif # Support for Python is compiled in by default. .if !defined(WITHOUT_PYTHON) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message