From owner-freebsd-current Mon Dec 23 09:18:18 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA10511 for current-outgoing; Mon, 23 Dec 1996 09:18:18 -0800 (PST) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id JAA10505 for ; Mon, 23 Dec 1996 09:18:11 -0800 (PST) Received: from x14.mi.uni-koeln.de (annexr3-9.slip.Uni-Koeln.DE) by Octopussy.MI.Uni-Koeln.DE with SMTP id AA00465 (5.67b/IDA-1.5 for ); Mon, 23 Dec 1996 18:17:47 +0100 Received: (from se@localhost) by x14.mi.uni-koeln.de (8.8.4/8.6.9) id OAA01479; Mon, 23 Dec 1996 14:56:27 +0100 (CET) Message-Id: Date: Mon, 23 Dec 1996 14:55:07 +0100 From: se@freebsd.org (Stefan Esser) To: dev@fgate.flevel.co.uk (Developer) Cc: freebsd-current@freebsd.org Subject: Re: Wine on Freebsd Current References: X-Mailer: Mutt 0.54-PL15 Mime-Version: 1.0 In-Reply-To: ; from Developer on Dec 23, 1996 13:06:16 +0000 Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Dec 23, dev@fgate.flevel.co.uk (Developer) wrote: > > Has anyone got any ideas why the new version of Wine does not work with > the freebsd-current kernel? > > I get an error saying: > > i386_set_ldt: Invalid argument > Did you reconfigure the kernel with "options USER_LDT"? > > But USER_LDT is enabled in the kernel, along with linux emulation?? You need to put back the following file contents into /usr/ports/emulators/wine/patches/patch-an: ---- 8< cut here ---- 8< cut here ---- 8< cut here ---- 8< cut here ---- *** memory/selector.c~ Fri Sep 13 18:47:32 1996 --- memory/selector.c Tue Oct 1 19:51:10 1996 *************** *** 14,18 **** --- 14,22 ---- + #ifdef __FreeBSD__ + #define FIRST_LDT_ENTRY_TO_ALLOC 17 + #else #define FIRST_LDT_ENTRY_TO_ALLOC 6 + #endif ---- 8< cut here ---- 8< cut here ---- 8< cut here ---- 8< cut here ---- Since this was no longer necessary under -current, but reduces the number of usable LDT entries, I had removed it, but had not considered that it is still required for older FreeBSD kernes. Sorry for the inconvenience caused by this! I will add this patch back when I commit the upgrade to Wine-96.12.22 to the ports tree, later this week ... Regards, STefan