From nobody@FreeBSD.org  Sat Nov 24 02:54:59 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EB14116A417
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Nov 2007 02:54:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 051A413C45D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Nov 2007 02:55:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lAO2srg4023884
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Nov 2007 02:54:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id lAO2srNJ023883;
	Sat, 24 Nov 2007 02:54:53 GMT
	(envelope-from nobody)
Message-Id: <200711240254.lAO2srNJ023883@www.freebsd.org>
Date: Sat, 24 Nov 2007 02:54:53 GMT
From: Barbara <barbara.xxx1975@libero.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: games/linux-quake4 fails to start
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118230
>Category:       kern
>Synopsis:       [linux] games/linux-quake4 fails to start
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    acm
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 24 03:00:01 UTC 2007
>Closed-Date:    
>Last-Modified:  Mon Aug 23 22:40:52 UTC 2010
>Originator:     Barbara
>Release:        6.3-PRERELEASE
>Organization:
>Environment:
FreeBSD satanasso.local.domain 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Sat Nov 17 23:38:03 CET 2007    root@satanasso.local.domain:/usr/obj/usr/src/sys/SATANASSO i386

>Description:
I've installed games/linux-quake4 (for my nephews :P).
If I try to start it I get:

$ linux-quake4
/usr/local/lib/quake4/quake4.x86: error while loading shared libraries: /usr/local/lib/libX11.so.6: ELF file OS ABI invalid

and

$ linux-quake4smp
/usr/local/lib/quake4/quake4smp.x86: error while loading shared libraries: libSDL-1.2.id.so.0: cannot open shared object file: No such file or directory


I have

$ pkg_info -r linux-quake4\*
Information for linux-quake4-1.4.2,1:

Depends on:
Dependency: linux_base-fc-4_10
Dependency: linux-expat-1.95.8
Dependency: linux-fontconfig-2.2.3_7
Dependency: linux-xorg-libs-6.8.2_5
Dependency: linux-sdl-1.2.10,1

If it does matter I have xorg-7.3_1 with nvidia-driver-100.14.19 installed from ports.

>How-To-Repeat:
Install games/linux-quake4 from ports
Run linux-quake4 or linux-quake4smp
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->acm 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Nov 24 03:00:15 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118230 

From: "barbara" <barbara.xxx1975@libero.it>
To: "bug-followup" <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/118230: games/linux-quake4 fails to start
Date: Fri,  4 Jan 2008 07:53:26 +0100

 I have it working doing this steps:
 
     # cd /usr/compat/linux/usr/local/lib
     # ln -s ../../lib/libGL.so.1
     # ln -s ../../lib/libGLcore.so.1
     # ln -s ../../lib/libSDL-1.2.so.0
     # ln -s ../../X11R6/lib/libX11.so.6
     # ln -s ../../X11R6/lib/libXext.so.6
     # ln -s ../../lib/libnvidia-tls.so.1
 
 Is it a problem with the sw or my configuration or with the port/linuxlat=
 or/nvidia-driver & linux-sdl?
 
 
 
 The smp version is still broken as libSDL-1.2.id.so.0 has been blown away=
 .
 http://cvsweb.freebsd.org/ports/games/linux-quake4/pkg-plist.diff?r1=3D1.=
 6;r2=3D1.7;f=3Dh
 
 So I did:
 
     # cd /usr/ports/games/linux-quake4
     # make patch
     # cp ./work/bin/Linux/x86/libSDL-1.2.id.so.0 /usr/local/lib/quake4/
     # cd /usr/local/lib/quake4
     # chmod 555 libSDL-1.2.id.so.0
     # cd /usr/compat/linux/usr/lib
     # ln -s /usr/local/lib/quake4/libSDL-1.2.id.so.0
 
 Doing this it starts, but it exits as soon as I set multiple cpu/core sup=
 port from the game menu with this message:
     
     Enabling SMP
     signal caught: Segmentation fault
     si_code 12
 
 
 
State-Changed-From-To: open->suspended 
State-Changed-By: acm 
State-Changed-When: Tue Nov 10 21:02:31 UTC 2009 
State-Changed-Why:  
- It needs some tests with new linux-compat version. I'll test it ASAP 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118230 

From: Barbara <barbara.xxx1975@libero.it>
To: bug-followup@FreeBSD.org
Cc: acm@FreeBSD.org
Subject: Re: ports/118230: games/linux-quake4 fails to start
Date: Wed, 6 Jan 2010 19:38:23 +0100 (CET)

 >Synopsis: games/linux-quake4 fails to start
 >
 >State-Changed-From-To: open-
 >suspended
 >State-Changed-By: acm
 >State-Changed-When: Tue Nov 10 21:02:31 UTC 
 2009
 >State-Changed-Why: 
 >- It needs some tests with new linux-compat version. 
 I'll test it ASAP
 >
 >http://www.freebsd.org/cgi/query-pr.cgi?pr=118230
 
 I did 
 some tests and it's working on RELENG_8(*).
 But now I had to make the following 
 symlinks:
 mkdir -p /usr/compat/linux/usr/local/lib
 cd 
 /usr/compat/linux/usr/local/lib
 # ln -s ../../lib/libX11.so.6
 # ln -s ../..
 /lib/libXext.so.6
 # ln -s ../../lib/libXau.so.6
 # ln -s ../../lib/libXdmcp.so.6
 
 # ln -s ../../lib/libGL.so.1
 # ln -s ../../lib/libGLcore.so.1
 # ln -s ../..
 /lib/libnvidia-tls.so.1
 
 The same fix I described about the smp version is 
 working now!!
 
 
 On RELENG_7 it's failing; but I want do further tests.
 
 
 Thanks
 
 Barbara
 
 
 (*) configuration:
 # uname -a
 FreeBSD satanasso.local.net 8.0-STABLE 
 FreeBSD 8.0-STABLE #0: Fri Jan  1 18:47:59 CET 2010     root@satanasso.local.
 net:/usr/obj/usr/src/sys/SATANASSO  i386
 
 # sysctl -a compat.linux.osrelease
 
 compat.linux.osrelease: 2.6.16
 
 # pkg_info -Ex nvidia linux
 linux-doom3-
 1.3.1.1304,1
 linux-dri-7.4_1
 linux-enemyterritory-2.60b
 linux-f10-atk-1.24.0
 
 linux-f10-cairo-1.8.0
 linux-f10-curl-7.19.6
 linux-f10-cyrus-sasl2-2.1.22
 linux-
 f10-expat-2.0.1
 linux-f10-flashplugin-10.0r42
 linux-f10-fontconfig-2.6.0
 linux-
 f10-gtk2-2.14.7
 linux-f10-jpeg-6b
 linux-f10-libssh2-0.18
 linux-f10-nspr-4.7.6
 
 linux-f10-nss-3.12.2.0
 linux-f10-openldap-2.4.12_1
 linux-f10-openssl-0.9.8g
 
 linux-f10-pango-1.22.3
 linux-f10-png-1.2.37
 linux-f10-sdl-1.2.13
 linux-f10-
 sqlite3-3.5.9_1
 linux-f10-tiff-3.8.2
 linux-f10-xorg-libs-7.4_1
 linux-quake4-
 1.4.2,1
 linux_base-f10-10_2
 linux_kdump-1.5_2
 nvidia-driver-195.22
 nvidia-
 settings-195.30
 

From: "barbara" <barbara.xxx1975@libero.it>
To: "bug-followup" <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/118230: games/linux-quake4 fails to start
Date: Sat, 30 Jan 2010 16:15:37 +0100

 I'm able to start linux-quake4 on RELENG_7(*) as well.
 
 For who is interested, create the needed links:
 # mkdir -p /usr/compat/linux/usr/local/lib
 # cd /usr/compat/linux/usr/local/lib
 # ln -s ../../lib/libGLcore.so.1
 # ln -s ../../lib/libX11.so.6
 # ln -s ../../lib/libXext.so.6
 # ln -s ../../lib/libnvidia-tls.so.1
 
 then start quake4 with:
 $ LD_PRELOAD=3D\
 /compat/linux/usr/lib/libGL.so.1 \
 /usr/local/lib/quake4/quake4.x86
 
 The same workaround works for linux-doom3, which in the meanwhile was bro=
 ken too. Just replace the last line with:
 /usr/local/lib/linux-doom3/doom.x86
 
 
 Other tests needed?
 
 Best Regards
 Barbara
 
 
 (*) configuration:
 $ uname -rsm 
 FreeBSD 7.3-PRERELEASE i386
 
 $ sysctl -a compat.linux.osrelease
 compat.linux.osrelease: 2.4.2
 
 $ pkg_info -Ex nvidia linux
 linux-atk-1.9.1_3
 linux-cairo-1.0.2_2
 linux-doom3-1.3.1.1304,1
 linux-enemyterritory-2.60b
 linux-enemyterritory-jaymod-2.1.7_2
 linux-enemyterritory-omni-bot-0.660
 linux-expat-1.95.8_2
 linux-flashplugin-9.0r260
 linux-fontconfig-2.2.3_9
 linux-gtk2-2.6.10_3
 linux-jpeg-6b.34_2
 linux-openssl-0.9.7f_2
 linux-pango-1.10.2_3
 linux-png-1.2.8_4
 linux-quake4-1.4.2,1
 linux-sdl-1.2.10_2,1
 linux-tiff-3.7.1_2
 linux-xorg-libs-6.8.2_7
 linux_base-fc-4_15
 linux_dri-7.0_2
 linux_kdump-1.5_2
 nvidia-driver-195.22
 nvidia-settings-195.30
 
 
>Unformatted:
