From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 12 16:00:14 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E533016A402 for ; Mon, 12 Feb 2007 16:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id AF6A013C491 for ; Mon, 12 Feb 2007 16:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1CG0Ev5023710 for ; Mon, 12 Feb 2007 16:00:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1CG0Ehb023709; Mon, 12 Feb 2007 16:00:14 GMT (envelope-from gnats) Resent-Date: Mon, 12 Feb 2007 16:00:14 GMT Resent-Message-Id: <200702121600.l1CG0Ehb023709@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eygene Ryabinkin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 494D016A400 for ; Mon, 12 Feb 2007 15:56:39 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 07AD013C46B for ; Mon, 12 Feb 2007 15:56:39 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from localdomain by pobox.codelabs.ru with local id 1HGdXf-0004Lg-Cz for FreeBSD-gnats-submit@freebsd.org; Mon, 12 Feb 2007 18:56:35 +0300 Message-Id: Date: Mon, 12 Feb 2007 18:56:35 +0300 From: Eygene Ryabinkin Sender: rea-fbsd@codelabs.ru To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/109091: make Xorg from x11-servers/xorg-server port to work on 7-CURRENT X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eygene Ryabinkin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2007 16:00:15 -0000 >Number: 109091 >Category: ports >Synopsis: make Xorg from x11-servers/xorg-server port to work on 7-CURRENT >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 12 16:00:11 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Eygene Ryabinkin >Release: FreeBSD 7.0-CURRENT i386 >Organization: Code Labs >Environment: >Description: Starting from the middle of January (not precisely) the Xorg binary, when built from ports, is unable to start on 7-CURRENT since it can not dlopen() some required modules (the bitmap module is the most frequent cause of the errors). Investigation showed that Xorg lacks the global symbols from the 'loader' subsystem to be exported for the glopen()/dlsym(). The addition of the --export-dynamic flag to the 'ld' linker solved that problem. Not sure that this is related to the recent removal of the objformat, but I've not investigated this. Here are two relevant mailing list topics: http://lists.freebsd.org/pipermail/freebsd-ports/2007-February/038495.html http://lists.freebsd.org/pipermail/freebsd-current/2007-February/069116.html The problem is not specific to sparc: it is spotted on sparc64, i386 and ia64. My fix was tested for i386 and ia64. No answer from sparc64 side yet. >How-To-Repeat: Install 7-CURRENT, build xorg-server on it and try to start Xorg binary. It will complain about the libbitmap.so and unresolved symbols. >Fix: You should add the following lines to the end of the files/FreeBSD.cf file: ----- /* * Add --export-dynamic flag for FreeBSD 7.x and later. */ #if OSMajorVersion >= 7 #define ExtraLoadOptions -Wl,--export-dynamic #endif ----- >Release-Note: >Audit-Trail: >Unformatted: