From owner-freebsd-emulation@FreeBSD.ORG Mon May 30 11:01:44 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76C4A16A41C for ; Mon, 30 May 2005 11:01:44 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35B1D43D5D for ; Mon, 30 May 2005 11:01:44 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4UB1iJp029866 for ; Mon, 30 May 2005 11:01:44 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4UB1hMH029860 for emulation@freebsd.org; Mon, 30 May 2005 11:01:43 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 30 May 2005 11:01:43 GMT Message-Id: <200505301101.j4UB1hMH029860@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 11:01:44 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/22] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i p [2002/04/16] kern/37161 emulation ext2 linux file system, error handling la o [2002/11/07] kern/45023 emulation flexlm does not run with linux-base-7, st o [2003/09/24] kern/57192 emulation linux-ibm-java1.4 freeze o [2004/06/20] kern/68131 emulation java/linux-ibm-jdk14: linux ibm jdk 1.4.1 o [2005/01/25] ports/76644 emulation FreeBSD 5.3 will freeze or crash when run o [2005/02/19] i386/77710 emulation Linux page fault sigcontext information i o [2005/05/05] ports/80679 emulation emulators/linux_base-8: Use ${MACHINE_ARC o [2005/05/09] ports/80837 emulation x11-toolkits/linux-gtk: cannot install by o [2005/05/12] ports/80926 emulation running $PREFIX/etc/rc.d/vmware.sh return 12 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1999/04/16] i386/11165 emulation IBCS2 don't work correctly with PID_MAX 9 o [2000/12/15] kern/23561 emulation Linux compatibility mode does not support o [2001/08/14] kern/29698 emulation linux ipcs doesn'work o [2002/06/12] kern/39201 emulation ptrace(2) and rfork(RFLINUXTHPN) confuse o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator s [2002/09/06] kern/42466 emulation linux: 'ipc' typ=258 not implemented p [2003/01/22] kern/47349 emulation Fake a sound ioctl (plus linux hook) o [2003/08/21] kern/55835 emulation Linux IPC emulation missing SETALL syscal o [2004/10/19] ports/72865 emulation emulators/vmware3 crashes on 5.3-STABLE o [2004/10/20] kern/72920 emulation linux emulation : path "prefixing" is not o [2004/10/26] kern/73165 emulation [patch] getting rid of COMPAT_43 dependan o [2004/11/10] kern/73777 emulation [patch] linux emulation: root dir special o [2005/03/19] ports/79009 emulation [patch] Some linux ports are incorrectly o [2005/04/07] ports/79655 emulation linux_base-8 fails to install as non-root 15 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon May 30 18:01:34 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16BB716A41F for ; Mon, 30 May 2005 18:01:34 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from smtp.cegetel.net (mf01.sitadelle.com [212.94.174.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D9E043D4C for ; Mon, 30 May 2005 18:01:33 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from Portable (80-125-70-27.dti.cegetel.net [80.125.70.27]) by smtp.cegetel.net (Postfix) with ESMTP id D1D9A318399; Mon, 30 May 2005 20:01:31 +0200 (CEST) From: "jean-marc DETREZ" To: , Date: Mon, 30 May 2005 20:01:18 +0200 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcVlQZQKVjoAexMkSoqDz0kYacI81A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Message-Id: <20050530180131.D1D9A318399@smtp.cegetel.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: patch for unbreaking wine on freebsd X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 18:01:34 -0000 Hi, I'm currently testing a patch I've made for unbreaking wine on FreeBSD.I'ts seems that like other OS a call to mmap() return not always the desired address range. For NetBSD it appears that a special function was compiled "try_mmap_fixed" who call mmap with MAP_FIXED after verifying that the memory address is free. I'm use this function to Create Heap System at base address 0x80000000 , I didn't always use that function for all calls to mmap because it seems that cause performance issues. I made a little correction of "try_mmap_fixed" because it's seems to me that the function didn't really test the result (vec). What do you think of that, if it work for all (emulation@freebsd.com: could you test) could you insert it in the future wine release? Don't miss to give me feedback, I've a few more patch to send. Jean-marc. From owner-freebsd-emulation@FreeBSD.ORG Mon May 30 18:04:46 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B692916A41C for ; Mon, 30 May 2005 18:04:46 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C8C743D1F for ; Mon, 30 May 2005 18:04:45 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from Portable (80-125-70-27.dti.cegetel.net [80.125.70.27]) by smtp.cegetel.net (Postfix) with ESMTP id A6C7B1A453F; Mon, 30 May 2005 20:03:42 +0200 (CEST) From: "jean-marc DETREZ" To: , Date: Mon, 30 May 2005 20:04:28 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0004_01C56552.CABBDC00" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcVlQgU+7Ru4QT1+RLOKDCVJCi/Ucg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Message-Id: <20050530180342.A6C7B1A453F@smtp.cegetel.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: patch for unbreaking wine on freebsd (with the patch!!!!) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 18:04:46 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C56552.CABBDC00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I'm currently testing a patch I've made for unbreaking wine on FreeBSD.I'ts seems that like other OS a call to mmap() return not always the desired address range. For NetBSD it appears that a special function was compiled "try_mmap_fixed" who call mmap with MAP_FIXED after verifying that the memory address is free. I'm use this function to Create Heap System at base address 0x80000000 , I didn't always use that function for all calls to mmap because it seems that cause performance issues. I made a little correction of "try_mmap_fixed" because it's seems to me that the function didn't really test the result (vec). What do you think of that, if it work for all (emulation@freebsd.com: could you test) could you insert it in the future wine release? Don't miss to give me feedback, I've a few more patch to send. Jean-marc. The patch is for libs/wine/mmap.c ------=_NextPart_000_0004_01C56552.CABBDC00 Content-Type: application/octet-stream; name="mmap.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mmap.patch" --- mmap.orig Wed Dec 15 11:51:51 2004=0A= +++ mmap.c Sat May 28 21:58:35 2005=0A= @@ -59,7 +59,7 @@ static inline int munmap( void *ptr, siz=0A= #endif=0A= =0A= =0A= -#if (defined(__svr4__) || defined(__NetBSD__)) && !defined(MAP_TRYFIXED)=0A= +#if (defined(__svr4__) || defined(__NetBSD__) || defined(__FreeBSD__)) = && !defined(MAP_TRYFIXED)=0A= /***********************************************************************=0A= * try_mmap_fixed=0A= *=0A= @@ -115,8 +115,9 @@ static int try_mmap_fixed (void *addr, s=0A= /* We call mincore() for every page in the desired range.=0A= If any of these calls succeeds, the page is already=0A= mapped and we must fail. */=0A= + /*patch for BSD testing the result of mincore not only if failed */=0A= for ( i =3D 0; i < len; i +=3D pagesize )=0A= - if ( mincore( (caddr_t)addr + i, pagesize, &vec ) !=3D -1 )=0A= + if ( mincore( (caddr_t)addr + i, pagesize, &vec ) !=3D -1 = && (vec&1))=0A= _exit(1);=0A= =0A= /* Perform the mapping with MAP_FIXED set. This is safe=0A= @@ -137,7 +138,7 @@ static int try_mmap_fixed (void *addr, s=0A= =0A= return result =3D=3D addr;=0A= }=0A= -#endif /* (__svr4__ || __NetBSD__) && !MAP_TRYFIXED */=0A= +#endif /* (__svr4__ || __NetBSD__ || __FreeBSD__) && !MAP_TRYFIXED */=0A= =0A= =0A= /***********************************************************************=0A= @@ -182,10 +183,21 @@ void *wine_anon_mmap( void *start, size_=0A= #ifdef MAP_TRYFIXED=0A= /* If available, this will attempt a fixed mapping in-kernel */=0A= flags |=3D MAP_TRYFIXED;=0A= -#elif defined(__svr4__) || defined(__NetBSD__)=0A= +=0A= +#elif defined(__svr4__) || defined(__NetBSD__) =0A= if ( try_mmap_fixed( start, size, prot, flags, fdzero, 0 ) )=0A= return start;=0A= +=0A= +#elif defined(__FreeBSD__) =0A= + /* for creating system heap use this to assure the adress of start is = good*/=0A= + if (start=3D=3D (void *)0x80000000)=0A= + {=0A= + if (try_mmap_fixed( start, size, prot, flags, fdzero, 0 ) )=0A= + return start;=0A= + TRACE("Creating System Heap in FreeBSD using try_mmap_fixed");=0A= + }=0A= #endif=0A= +=0A= }=0A= return mmap( start, size, prot, flags, fdzero, 0 );=0A= #else=0A= @@ -249,6 +261,7 @@ static void reserve_dos_area(void)=0A= wine_anon_mmap( NULL, page_size, PROT_NONE, MAP_NORESERVE|MAP_FIXED = );=0A= wine_mmap_add_reserved_area( NULL, dos_area_size );=0A= }=0A= +=0A= =0A= =0A= /***********************************************************************=0A= ------=_NextPart_000_0004_01C56552.CABBDC00-- From owner-freebsd-emulation@FreeBSD.ORG Mon May 30 18:11:19 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8891216A41C for ; Mon, 30 May 2005 18:11:19 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18A3243D1D for ; Mon, 30 May 2005 18:11:18 +0000 (GMT) (envelope-from jm.detrez@cegetel.net) Received: from Portable (80-125-70-27.dti.cegetel.net [80.125.70.27]) by smtp.cegetel.net (Postfix) with ESMTP id 98A2C1A4438 for ; Mon, 30 May 2005 20:10:15 +0200 (CEST) From: "jean-marc DETREZ" To: Date: Mon, 30 May 2005 20:11:02 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000C_01C56553.B506F470" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcVlQgU+7Ru4QT1+RLOKDCVJCi/UcgAAM0fg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Message-Id: <20050530181015.98A2C1A4438@smtp.cegetel.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: patch for unbreaking wine on freebsd X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 18:11:19 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C56553.B506F470 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 =20 _____ =20 De : jean-marc DETREZ [mailto:jm.detrez@cegetel.net]=20 Envoy=E9 : lundi 30 mai 2005 20:04 =C0 : 'wine-patches@winehq.com'; 'emulation@freebsd.org' Cc : 'Gerald Pfeifer' Objet : patch for unbreaking wine on freebsd (with the patch!!!!) =20 Hi,=20 I=92m currently testing a patch I=92ve made for unbreaking wine on = FreeBSD. =20 It=92s seems that like other OS a call to mmap() return not always the = desired address range. =20 For NetBSD it appears that a special function was compiled = =93try_mmap_fixed=94 who call mmap with MAP_FIXED after verifying that the memory address is free. =20 I=92m use this function to Create Heap System at base address 0x80000000 = , I didn=92t always use that function for all calls to mmap because it seems = that cause performance issues. =20 I made a little correction of =93try_mmap_fixed=94 because it=92s = seems to me that the function didn=92t really test the result (vec). =20 What do you think of that, if it work for all (emulation@freebsd.com: = could you test) could you insert it in the future wine release? =20 =20 Don=92t miss to give me feedback, I=92ve a few more patch to send. =20 Jean-marc. =20 =20 The patch is for libs/wine/mmap.c ------=_NextPart_000_000C_01C56553.B506F470 Content-Type: application/octet-stream; name="mmap.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mmap.patch" --- mmap.orig Wed Dec 15 11:51:51 2004=0A= +++ mmap.c Sat May 28 21:58:35 2005=0A= @@ -59,7 +59,7 @@ static inline int munmap( void *ptr, siz=0A= #endif=0A= =0A= =0A= -#if (defined(__svr4__) || defined(__NetBSD__)) && !defined(MAP_TRYFIXED)=0A= +#if (defined(__svr4__) || defined(__NetBSD__) || defined(__FreeBSD__)) = && !defined(MAP_TRYFIXED)=0A= /***********************************************************************=0A= * try_mmap_fixed=0A= *=0A= @@ -115,8 +115,9 @@ static int try_mmap_fixed (void *addr, s=0A= /* We call mincore() for every page in the desired range.=0A= If any of these calls succeeds, the page is already=0A= mapped and we must fail. */=0A= + /*patch for BSD testing the result of mincore not only if failed */=0A= for ( i =3D 0; i < len; i +=3D pagesize )=0A= - if ( mincore( (caddr_t)addr + i, pagesize, &vec ) !=3D -1 )=0A= + if ( mincore( (caddr_t)addr + i, pagesize, &vec ) !=3D -1 = && (vec&1))=0A= _exit(1);=0A= =0A= /* Perform the mapping with MAP_FIXED set. This is safe=0A= @@ -137,7 +138,7 @@ static int try_mmap_fixed (void *addr, s=0A= =0A= return result =3D=3D addr;=0A= }=0A= -#endif /* (__svr4__ || __NetBSD__) && !MAP_TRYFIXED */=0A= +#endif /* (__svr4__ || __NetBSD__ || __FreeBSD__) && !MAP_TRYFIXED */=0A= =0A= =0A= /***********************************************************************=0A= @@ -182,10 +183,21 @@ void *wine_anon_mmap( void *start, size_=0A= #ifdef MAP_TRYFIXED=0A= /* If available, this will attempt a fixed mapping in-kernel */=0A= flags |=3D MAP_TRYFIXED;=0A= -#elif defined(__svr4__) || defined(__NetBSD__)=0A= +=0A= +#elif defined(__svr4__) || defined(__NetBSD__) =0A= if ( try_mmap_fixed( start, size, prot, flags, fdzero, 0 ) )=0A= return start;=0A= +=0A= +#elif defined(__FreeBSD__) =0A= + /* for creating system heap use this to assure the adress of start is = good*/=0A= + if (start=3D=3D (void *)0x80000000)=0A= + {=0A= + if (try_mmap_fixed( start, size, prot, flags, fdzero, 0 ) )=0A= + return start;=0A= + TRACE("Creating System Heap in FreeBSD using try_mmap_fixed");=0A= + }=0A= #endif=0A= +=0A= }=0A= return mmap( start, size, prot, flags, fdzero, 0 );=0A= #else=0A= @@ -249,6 +261,7 @@ static void reserve_dos_area(void)=0A= wine_anon_mmap( NULL, page_size, PROT_NONE, MAP_NORESERVE|MAP_FIXED = );=0A= wine_mmap_add_reserved_area( NULL, dos_area_size );=0A= }=0A= +=0A= =0A= =0A= /***********************************************************************=0A= ------=_NextPart_000_000C_01C56553.B506F470-- From owner-freebsd-emulation@FreeBSD.ORG Tue May 31 01:32:22 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA2DD16A41C for ; Tue, 31 May 2005 01:32:22 +0000 (GMT) (envelope-from root@general.fxmedia.ro) Received: from general.fxmedia.ro (dyn-85.204.185.247.upcnet.ro [85.204.185.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E75343D1F for ; Tue, 31 May 2005 01:32:21 +0000 (GMT) (envelope-from root@general.fxmedia.ro) Received: from general.fxmedia.ro (localhost [127.0.0.1]) by general.fxmedia.ro (8.12.11/8.12.11) with ESMTP id j4V1VlhU011975 for ; Tue, 31 May 2005 04:31:47 +0300 Received: (from root@localhost) by general.fxmedia.ro (8.12.11/8.12.11/Submit) id j4V1Vlth011973; Tue, 31 May 2005 04:31:47 +0300 Date: Tue, 31 May 2005 04:31:47 +0300 From: root@general.fxmedia.ro Message-Id: <200505310131.j4V1Vlth011973@general.fxmedia.ro> To: emulation@freebsd.org Cc: Subject: Greetings... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FX MEDIA List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 01:32:22 -0000 Hi, we are sorry for sending this email, but a friend told us about you,and about the fact that you might be interested in having your own website, for your company!If you'd like to, we would be glad if you visit www.fxmediaweb.com - where quality makes the difference!Having the right choice is 100% important! It is time for you to make the right decision!Thank you for reading this, and wish you a very nice day! Sincerly, FX MEDIA Team! From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 1 18:05:13 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29C5116A41F for ; Wed, 1 Jun 2005 18:05:13 +0000 (GMT) (envelope-from dswartz@druber.com) Received: from mail.druber.com (dsl-216-129-135-2.lightband.com [216.129.135.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D174843D4C for ; Wed, 1 Jun 2005 18:05:12 +0000 (GMT) (envelope-from dswartz@druber.com) Received: from mail.druber.com (localhost.druber.com [127.0.0.1]) by sphinx.druber.com (Postfix) with ESMTP id 13E7020AD for ; Wed, 1 Jun 2005 14:05:12 -0400 (EDT) Received: from SWARTZEN-D3.druber.com (localhost.druber.com [127.0.0.1]) by sphinx.druber.com (Postfix) with ESMTP id C0D0620A5 for ; Wed, 1 Jun 2005 14:05:11 -0400 (EDT) Message-Id: <6.2.1.2.0.20050601140217.01c66690@127.0.0.1> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Wed, 01 Jun 2005 14:05:11 -0400 To: freebsd-emulation@freebsd.org From: Dan Swartzendruber Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP Subject: Question about RPM? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 18:05:13 -0000 I'm running a 5.3 headless server. I had been using amanda for tape backup, but decided to try out arkeia. Unfortunately, they don't seem to support FreeBSD, so I thought I'd try it under linux emulation. I installed the linux_based-rh-9 port, and that seemed to go fine. I confirmed that the requisite KLDs were loaded. Unfortunately, if I try to install the arkeia RPM (with the usual 'rpm -ivh arkeiaXXXX.rpm' incantation), it gives me a raft of warnings about various shared libraries being needed, as well as /bin/sh. I don't recall seeing any errors during either the build or the install of the base package, so I'm mystified as to why the installation of that rpm failed. Any thoughts? From owner-freebsd-emulation@FreeBSD.ORG Thu Jun 2 13:53:24 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8521416A41C for ; Thu, 2 Jun 2005 13:53:24 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B33143D48 for ; Thu, 2 Jun 2005 13:53:24 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd23.aul.t-online.de by mailout02.sul.t-online.com with smtp id 1Ddq8Q-0002b0-01; Thu, 02 Jun 2005 15:53:22 +0200 Received: from Andro-Beta.Leidinger.net (XGXTQ6ZLoecfwzqmw+M6orI7P7GEOwQ84-Cy7mkTpzZytyICwt3ewz@[84.165.198.7]) by fwd23.sul.t-online.de with esmtp id 1Ddq8C-0WNe4W0; Thu, 2 Jun 2005 15:53:08 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j52Dr7mO008083; Thu, 2 Jun 2005 15:53:07 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.32 ([141.113.101.32]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Thu, 02 Jun 2005 15:53:07 +0200 Message-ID: <20050602155307.is6bvd5t3qcksgws@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 02 Jun 2005 15:53:07 +0200 From: Alexander Leidinger To: Dan Swartzendruber References: <6.2.1.2.0.20050601140217.01c66690@127.0.0.1> In-Reply-To: <6.2.1.2.0.20050601140217.01c66690@127.0.0.1> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: XGXTQ6ZLoecfwzqmw+M6orI7P7GEOwQ84-Cy7mkTpzZytyICwt3ewz@t-dialin.net X-TOI-MSGID: fbe9aa88-09b4-44b7-bfc5-914fdc6cf0eb Cc: freebsd-emulation@freebsd.org Subject: Re: Question about RPM? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 13:53:24 -0000 Dan Swartzendruber wrote: > I'm running a 5.3 headless server. I had been using amanda for tape > backup, but decided to try out arkeia. Unfortunately, they don't > seem to support FreeBSD, so I thought I'd try it under linux > emulation. I installed the linux_based-rh-9 port, and that seemed to > go fine. I confirmed that the requisite KLDs were loaded. The current default linux_base is linux_base-8. So you're using a non-default configuration. > Unfortunately, if I try to install the arkeia RPM (with the usual > 'rpm -ivh arkeiaXXXX.rpm' incantation), it gives me a raft of > warnings about various shared libraries being needed, as well as > /bin/sh. I don't recall seeing any errors during either the build or > the install of the base package, so I'm mystified as to why the > installation of that rpm failed. Any thoughts? You forgot to tell us how you exactly tried to install it (cut&paste of the command line) and you forgot to cut&paste the error messages in your mail. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 '(...) And the Patrician has been ironical at me,' said Mr. Clete. 'I'm not having that again.' (Soul Music) From owner-freebsd-emulation@FreeBSD.ORG Fri Jun 3 10:37:22 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C39016A41C for ; Fri, 3 Jun 2005 10:37:22 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AF7643D53 for ; Fri, 3 Jun 2005 10:37:21 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd29.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1De9YE-00066y-00; Fri, 03 Jun 2005 12:37:18 +0200 Received: from Andro-Beta.Leidinger.net (XR8lbyZVYeEfQn1o25+zVcBK4sjjrEo32hghB3AaP2AE7F+X0qmvQ+@[84.165.203.19]) by fwd29.sul.t-online.de with esmtp id 1De9Y3-09rpom0; Fri, 3 Jun 2005 12:37:07 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j53Ab6aA037297; Fri, 3 Jun 2005 12:37:06 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.32 ([141.113.101.32]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Fri, 03 Jun 2005 12:37:06 +0200 Message-ID: <20050603123706.cxpqne9okgowk88s@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 03 Jun 2005 12:37:06 +0200 From: Alexander Leidinger To: Dan Swartzendruber References: <6.2.1.2.0.20050601140217.01c66690@127.0.0.1> <20050602155307.is6bvd5t3qcksgws@netchild.homeip.net> In-Reply-To: <20050602155307.is6bvd5t3qcksgws@netchild.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: XR8lbyZVYeEfQn1o25+zVcBK4sjjrEo32hghB3AaP2AE7F+X0qmvQ+@t-dialin.net X-TOI-MSGID: 8312aed6-aaa1-45d5-843e-3612b56ebbc3 Cc: freebsd-emulation@freebsd.org Subject: Re: Question about RPM? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 10:37:22 -0000 Alexander Leidinger wrote: >> Unfortunately, if I try to install the arkeia RPM (with the usual >> 'rpm -ivh arkeiaXXXX.rpm' incantation), it gives me a raft of >> warnings about various shared libraries being needed, as well as >> /bin/sh. I don't recall seeing any errors during either the build >> or the install of the base package, so I'm mystified as to why the >> installation of that rpm failed. Any thoughts? > > You forgot to tell us how you exactly tried to install it (cut&paste of the > command line) and you forgot to cut&paste the error messages in your mail. Ooops, actually you did tell us the command line... I suggest to have a look at /usr/ports/x11-toolkits/linux-gtk/Makfile how to use rpm on FreeBSD. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 If pregnancy were a book they would cut the last two chapters. -- Nora Ephron, "Heartburn" From owner-freebsd-emulation@FreeBSD.ORG Fri Jun 3 14:58:27 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C678916A41C for ; Fri, 3 Jun 2005 14:58:27 +0000 (GMT) (envelope-from dswartz@druber.com) Received: from mail.druber.com (dsl-216-129-135-2.lightband.com [216.129.135.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 691A243D48 for ; Fri, 3 Jun 2005 14:58:27 +0000 (GMT) (envelope-from dswartz@druber.com) Received: from mail.druber.com (localhost.druber.com [127.0.0.1]) by sphinx.druber.com (Postfix) with ESMTP id 06E6720AB; Fri, 3 Jun 2005 10:58:26 -0400 (EDT) Received: from SWARTZEN-D3.druber.com (localhost.druber.com [127.0.0.1]) by sphinx.druber.com (Postfix) with ESMTP id 73BAB2083; Fri, 3 Jun 2005 10:58:24 -0400 (EDT) Message-Id: <6.2.1.2.0.20050603105737.01c5a390@127.0.0.1> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Fri, 03 Jun 2005 10:58:23 -0400 To: Alexander Leidinger From: Dan Swartzendruber In-Reply-To: <20050603123706.cxpqne9okgowk88s@netchild.homeip.net> References: <6.2.1.2.0.20050601140217.01c66690@127.0.0.1> <20050602155307.is6bvd5t3qcksgws@netchild.homeip.net> <20050603123706.cxpqne9okgowk88s@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-emulation@freebsd.org Subject: Re: Question about RPM? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 14:58:27 -0000 At 06:37 AM 6/3/2005, Alexander Leidinger wrote: >Alexander Leidinger wrote: > >>>Unfortunately, if I try to install the arkeia RPM (with the usual 'rpm >>>-ivh arkeiaXXXX.rpm' incantation), it gives me a raft of warnings about >>>various shared libraries being needed, as well as /bin/sh. I don't >>>recall seeing any errors during either the build or the install of the >>>base package, so I'm mystified as to why the installation of that rpm >>>failed. Any thoughts? >> >>You forgot to tell us how you exactly tried to install it (cut&paste of the >>command line) and you forgot to cut&paste the error messages in your mail. > >Ooops, actually you did tell us the command line... I suggest to have a look >at /usr/ports/x11-toolkits/linux-gtk/Makfile how to use rpm on FreeBSD. >Thanks, I'll take a look. Out of curiosity, why is something pertaining >to linux emulation in x11-toolkits/linux-gtk? From owner-freebsd-emulation@FreeBSD.ORG Fri Jun 3 19:06:58 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2D2A16A41C for ; Fri, 3 Jun 2005 19:06:58 +0000 (GMT) (envelope-from sean@noc-phone.gigave.com) Received: from mailhost.gigave.com (mailhost.gigave.com [38.113.228.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8117143D49 for ; Fri, 3 Jun 2005 19:06:58 +0000 (GMT) (envelope-from sean@noc-phone.gigave.com) Date: Fri, 3 Jun 2005 12:06:58 -0700 From: Sean Chittenden To: freebsd-emulation@freebsd.org Message-ID: <20050603190658.GR8248@sean.gigave.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="HeFlAV5LIbMFYYuh" Content-Disposition: inline Subject: [patch] Coping with setfs[gu]id16() stupidness... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 19:06:58 -0000 --HeFlAV5LIbMFYYuh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Is there any necessary symbol table magic that I need to work in order to get the following patch to work? It compiles, but link_elf() returns an error with "symbol linux_syscall_warn_enable not found". At which point kldload(1) returns ENOENT (but that's another bug/story all together). The intent of the patch is to quiet warnings when programs make use of stupid linux syscalls (setfsuid16() and setfsgid16() come to mind). In the patch, warnings are enabled with the patch they can be disabled by setting compat.linux.syscall_warn_enable=0. Thanks in advance. -sc http://people.FreeBSD.org/~seanc/patches/#compat_linux_syscall_warning -- Sean Chittenden Charter member of the "FilePro sucks" fan club --HeFlAV5LIbMFYYuh Content-Type: text/plain; charset=us-ascii Content-Description: linux sysctl patch Content-Disposition: attachment; filename=patch Index: sys/compat/linux/linux_mib.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_mib.c,v retrieving revision 1.23 diff -u -r1.23 linux_mib.c --- sys/compat/linux/linux_mib.c 14 Jan 2005 04:44:56 -0000 1.23 +++ sys/compat/linux/linux_mib.c 3 Jun 2005 01:33:24 -0000 @@ -359,4 +359,9 @@ 0, 0, linux_sysctl_debug, "A", "Linux debugging control"); +int linux_syscall_warn_enable = 1; + +SYSCTL_INT(_compat_linux, OID_AUTO, syscall_warn_enable, CTLFLAG_RW, + &linux_syscall_warn_enable, 0, "warn when executing an unimplimented syscall"); + #endif /* DEBUG */ Index: sys/compat/linux/linux_mib.h =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_mib.h,v retrieving revision 1.8 diff -u -r1.8 linux_mib.h --- sys/compat/linux/linux_mib.h 26 Mar 2003 18:29:44 -0000 1.8 +++ sys/compat/linux/linux_mib.h 3 Jun 2005 01:58:28 -0000 @@ -31,6 +31,8 @@ #ifndef _LINUX_MIB_H_ #define _LINUX_MIB_H_ +extern int linux_syscall_warn_enable; + void linux_mib_destroy(void); void linux_get_osname(struct thread *td, char *dst); Index: sys/compat/linux/linux_util.h =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_util.h,v retrieving revision 1.25 diff -u -r1.25 linux_util.h --- sys/compat/linux/linux_util.h 1 Mar 2005 17:57:45 -0000 1.25 +++ sys/compat/linux/linux_util.h 3 Jun 2005 01:59:38 -0000 @@ -49,6 +49,8 @@ #include #include +#include + static __inline caddr_t stackgap_init(void); static __inline void *stackgap_alloc(caddr_t *, size_t); @@ -108,7 +110,8 @@ unimplemented_syscall(struct thread *td, const char *syscallname) { - linux_msg(td, "syscall %s not implemented", syscallname); + if (linux_syscall_warn_enable) + linux_msg(td, "syscall %s not implemented", syscallname); return (ENOSYS); } --HeFlAV5LIbMFYYuh-- From owner-freebsd-emulation@FreeBSD.ORG Fri Jun 3 19:52:30 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D6516A41C for ; Fri, 3 Jun 2005 19:52:30 +0000 (GMT) (envelope-from sean@noc-phone.gigave.com) Received: from mailhost.gigave.com (mailhost.gigave.com [38.113.228.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB2E343D1F for ; Fri, 3 Jun 2005 19:52:28 +0000 (GMT) (envelope-from sean@noc-phone.gigave.com) Date: Fri, 3 Jun 2005 12:52:39 -0700 From: Sean Chittenden To: freebsd-emulation@freebsd.org Message-ID: <20050603195239.GD974@sean.gigave.com> References: <20050603190658.GR8248@sean.gigave.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050603190658.GR8248@sean.gigave.com> Subject: Re: [patch] Coping with setfs[gu]id16() stupidness... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 19:52:30 -0000 > Is there any necessary symbol table magic that I need to work in order > to get the following patch to work? It compiles, but link_elf() > returns an error with "symbol linux_syscall_warn_enable not found". > At which point kldload(1) returns ENOENT (but that's another bug/story > all together). > > The intent of the patch is to quiet warnings when programs make use of > stupid linux syscalls (setfsuid16() and setfsgid16() come to mind). > In the patch, warnings are enabled with the patch they can be disabled > by setting compat.linux.syscall_warn_enable=0. > > Thanks in advance. -sc > > > http://people.FreeBSD.org/~seanc/patches/#compat_linux_syscall_warning > > -- > Sean Chittenden > Charter member of the "FilePro sucks" fan club I'm glad it's Friday. Andrew Gallatin aptly pointed out an #ifdef DEBUG that was wrapping missing symbol. Originally this was in linux_util.h, but I moved it to linux_mib.c for correctness when including in the actual tree. In the process, I mentally missed the transition from a .h to a .c where in a .c file you don't need/want an #endif. *sigh* The above URL has an updated patch for review that now works as expected. Any objections to me committing this and MFC'ing it after a week or two? -sc -- Sean Chittenden From owner-freebsd-emulation@FreeBSD.ORG Sat Jun 4 12:30:39 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 445CE16A41C for ; Sat, 4 Jun 2005 12:30:39 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D685843D1D for ; Sat, 4 Jun 2005 12:30:38 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd33.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1DeXnR-0006Z5-02; Sat, 04 Jun 2005 14:30:37 +0200 Received: from Andro-Beta.Leidinger.net (GM62+mZCQeoVns6Anef0K4CaJIrcxmpOengv0qLZ78ycw8bGK5R30M@[84.165.238.102]) by fwd33.sul.t-online.de with esmtp id 1DeXnP-0n3Ium0; Sat, 4 Jun 2005 14:30:35 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j54CUYPg022116; Sat, 4 Jun 2005 14:30:34 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sat, 4 Jun 2005 14:30:47 +0200 From: Alexander Leidinger To: Dan Swartzendruber , freebsd-emulation@freebsd.org Message-ID: <20050604143047.79bc503c@Magellan.Leidinger.net> In-Reply-To: <6.2.1.2.0.20050603105737.01c5a390@127.0.0.1> References: <6.2.1.2.0.20050601140217.01c66690@127.0.0.1> <20050602155307.is6bvd5t3qcksgws@netchild.homeip.net> <20050603123706.cxpqne9okgowk88s@netchild.homeip.net> <6.2.1.2.0.20050603105737.01c5a390@127.0.0.1> X-Mailer: Sylpheed-Claws 1.9.11 (GTK+ 2.6.7; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: GM62+mZCQeoVns6Anef0K4CaJIrcxmpOengv0qLZ78ycw8bGK5R30M@t-dialin.net X-TOI-MSGID: 0067ff62-0bc1-42dc-8881-9add3546b168 Cc: Subject: Re: Question about RPM? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 12:30:39 -0000 On Fri, 03 Jun 2005 10:58:23 -0400 Dan Swartzendruber wrote: > >Ooops, actually you did tell us the command line... I suggest to have a look > >at /usr/ports/x11-toolkits/linux-gtk/Makfile how to use rpm on FreeBSD. > >Thanks, I'll take a look. Out of curiosity, why is something pertaining >to linux emulation in x11-toolkits/linux-gtk? Because someone did it first there, expanded it to a slave port, used it in many ports and didn't refactored it into a bsd.rpm.mk. I have a large patch which cleans up some linux bits. It's under testing on the ports build cluster. It doesn't contain a change like mentioned above, but I want to tackle this issue (if nobody beats me to it). Bye, Alexander. -- Reboot America. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7