From owner-freebsd-ports@FreeBSD.ORG Tue Jan 19 23:43:31 2010 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4ADFD1065676; Tue, 19 Jan 2010 23:43:31 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id 179998FC1E; Tue, 19 Jan 2010 23:43:31 +0000 (UTC) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.4/8.14.4) with ESMTP id o0JNhUG7046052; Tue, 19 Jan 2010 17:43:30 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Tue, 19 Jan 2010 17:43:30 -0600 (CST) From: "Sean C. Farley" To: freebsd-ports@FreeBSD.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: hselasky@FreeBSD.org Subject: libSDL versus XDM authentication X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 23:43:31 -0000 I recall running into this in the past with some application I cannot recall at the moment, yet I just bumped into it again recently when trying to run multimedia/pwcview. # pwcview Webcam set to: 320x240 (sif) at 5 fps XDM authorization key matches an existing client!Failed to init sdl: Couldn't open X11 display The issue is that xdm uses XDM-AUTHORIZATION-1 authentication, so I have these as well as MIT-MAGIC-COOKIE-1 listed within ~/.Xauthority. libSDL by default does not like this. Three possible solutions and one guess are available: 1. Link pwcview with libX11. 2. Add 'DisplayManager*authName: MIT-MAGIC-COOKIE-1' to xdm-config. 3. (untested) Configure libSDL to be built with SDL_VIDEO_DRIVER_X11_DYNAMIC defined and src/video/x11/SDL_x11video.c changed to include FreeBSD with __osf__ in the check. This causes it try again after one second. The comment claims that this works for this issue. 4. Linking libX11 to libSDL? It is just a thought. Sean P.S. libSDL 1.2.14 is available. -- scf@FreeBSD.org