From owner-freebsd-current Sun Jun 7 13:19:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA00227 for freebsd-current-outgoing; Sun, 7 Jun 1998 13:19:34 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from isf.kiev.ua (sunone.isf.kiev.ua [194.44.162.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA00219 for ; Sun, 7 Jun 1998 13:19:27 -0700 (PDT) (envelope-from kushn@mail.kar.net) Received: from olinet.isf.kiev.ua by isf.kiev.ua with ESMTP id XAA22771; (8.8.7/2.b2) Sun, 7 Jun 1998 23:06:09 +0300 (EET DST) Received: from kushnir.kiev.ua by olinet.isf.kiev.ua with SMTP id XAA17934; (8.8.last/vAk3/1.9) Sun, 7 Jun 1998 23:01:12 +0300 (EET DST) Date: Sun, 7 Jun 1998 23:09:16 +0300 (EEST) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua To: Ollivier Robert cc: freebsd-current@FreeBSD.ORG Subject: Re: XFree86 & elf In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 7 Jun 1998, Vladimir Kushnir wrote: > > > On Sun, 7 Jun 1998, Ollivier Robert wrote: > > > According to Vladimir Kushnir: > > > Awhile ago somebody (sorry, I haven't saved that message) wrote about > > > patches for XFree to build it using elf. Would you please point to those > > > patches (or mail them to me if they're not available from 'Net)? > > > > It was me. I've made these patches (to 3.3.1 but that should not be a > > problem) and sent 'em to people who requested them but haven't got any > > feedback yet. > > > > See my next message. > > -- > > Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr > > FreeBSD keltia.freenix.fr 3.0-CURRENT #60: Fri May 15 21:04:22 CEST 1998 > > Thanks, I'll try 'em and write back as soon as finish. > > Regards, > Vladimir > Well, I did rebuild XFree port (3.3.2, with 3.3.2-patch1 & 3.3.3-patch2) with your patches. Thanks a lot, they've made it: ~> file /usr/X11R6/bin/XF86_SVGA /usr/X11R6/bin/XF86_SVGA: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped There were some differences, though: i) For native gcc, there was no need in "-fno-inline" and I'm a bit conservative WRT optimization (-O2 looks fine) ii) One more tiny patch was needed: *** xc/programs/Xserver/hw/xfree86/vga256/drivers/s3_svga/s3accel.c.orig Sun Jun 7 22:45:11 1998 --- xc/programs/Xserver/hw/xfree86/vga256/drivers/s3_svga/s3accel.c Sun Jun 7 21:46:31 1998 *************** *** 798,804 **** #if defined(__GNUC__) && defined(__i386__) static __inline__ CARD32 reverse_bitorder(CARD32 data) { ! #if defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || (defined(linux) || defined (__OS2ELF__)) && defined(__ELF__) __asm__( "movl $0,%%ecx\n" "movb %%al,%%cl\n" --- 798,804 ---- #if defined(__GNUC__) && defined(__i386__) static __inline__ CARD32 reverse_bitorder(CARD32 data) { ! #if defined(__FreeBSD__) || defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || (defined(linux) || defined (__OS2ELF__)) && defined(__ELF__) __asm__( "movl $0,%%ecx\n" "movb %%al,%%cl\n" Sorry, I've compiled only SVGA server, but the other ones look like they should link just as well. Now there's some more problem: modules don't want to load: pex5.so: Undefined symbol "EventSwapVector" xie.so: Undefined symbol "isItTimeToYield" Both defined as extern, and for the life of mine I can't see what's wrong with them (isItTimeToYield seems to be merely char, and so on). Anyway, thanks again, Vladimir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message