From nobody@FreeBSD.org Thu Mar 23 22:53:51 2006 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BDEF16A426 for ; Thu, 23 Mar 2006 22:53:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CB4B43D46 for ; Thu, 23 Mar 2006 22:53:51 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2NMrogC068372 for ; Thu, 23 Mar 2006 22:53:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k2NMroIj068371; Thu, 23 Mar 2006 22:53:50 GMT (envelope-from nobody) Message-Id: <200603232253.k2NMroIj068371@www.freebsd.org> Date: Thu, 23 Mar 2006 22:53:50 GMT From: Andrew Grillet To: freebsd-gnats-submit@FreeBSD.org Subject: Cant install xorg/sparc64/Creator3D X-Send-Pr-Version: www-2.3 >Number: 94886 >Category: sparc64 >Synopsis: Cant install xorg/sparc64/Creator3D >Confidential: no >Severity: serious >Priority: high >Responsible: lesi >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 23 23:00:29 GMT 2006 >Closed-Date: Thu Apr 20 10:50:30 GMT 2006 >Last-Modified: Thu Apr 20 10:50:30 GMT 2006 >Originator: Andrew Grillet >Release: 5.5-PRERELEASE >Organization: Grillet family >Environment: FreeBSD u60.grillet.home 5.5-PRERELEASE #1 Mon Mar 20 22:18:31 GMT 2006 andrew@u60.grillet.home:/usr/obj/usr/src/sys/U60 sparc64 >Description: Cannot do startx -configure (or use my own config file) log shows dlopen: /usr/X11R6/lib/modules/drivers/sunffb_drv.so Undefined symbol "cfbPutImage" Failed to load, etc. I have tried cvsup, and rebuilding, and using an xorg.conf copied from the internet. The result is the same. I had alook at the source, and was not able to understand the structure enough to fix it. >How-To-Repeat: On a u60 with a Creator3d, try to install and configure xorg >Fix: none known. >Release-Note: >Audit-Trail: From: Marius Strobl To: Andrew Grillet , Dejan Lesjak Cc: freebsd-gnats-submit@freebsd.org Subject: Re: sparc64/94886: Cant install xorg/sparc64/Creator3D Date: Wed, 29 Mar 2006 13:01:39 +0200 On Thu, Mar 23, 2006 at 10:53:50PM +0000, Andrew Grillet wrote: > >Environment: > FreeBSD u60.grillet.home 5.5-PRERELEASE #1 Mon Mar 20 22:18:31 GMT 2006 andrew@u60.grillet.home:/usr/obj/usr/src/sys/U60 sparc64 > >Description: > Cannot do > startx -configure > (or use my own config file) > log shows > dlopen: /usr/X11R6/lib/modules/drivers/sunffb_drv.so Undefined symbol "cfbPutImage" > Failed to load, etc. > It should work if you put 'Load "cfb"' and 'Load "cfb32"' into the 'Module' section of your xorg.conf. Note that if you plan to use creator(4) you really should use FreeBSD 6.0 or later as there a couple of bugs like the screen corruption when switching to a VTY from X or when shutting down the X server are fixed. Dejan, can you tell whether sunffb_drv.so is missing dependencies on libcfb.so and libcfb32.so or these are meant to be explicitly loaded with Xorg server versions that use shared objects for drivers? Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details. From: Dejan Lesjak To: Marius Strobl Cc: Andrew Grillet , freebsd-gnats-submit@freebsd.org Subject: Re: sparc64/94886: Cant install xorg/sparc64/Creator3D Date: Thu, 30 Mar 2006 23:15:41 +0200 On Wednesday 29 March 2006 13:01, Marius Strobl wrote: > On Thu, Mar 23, 2006 at 10:53:50PM +0000, Andrew Grillet wrote: > > >Environment: > > > > FreeBSD u60.grillet.home 5.5-PRERELEASE #1 Mon Mar 20 22:18:31 GMT 2006 > > andrew@u60.grillet.home:/usr/obj/usr/src/sys/U60 sparc64 > > > > >Description: > > > > Cannot do > > startx -configure > > (or use my own config file) > > log shows > > dlopen: /usr/X11R6/lib/modules/drivers/sunffb_drv.so Undefined symbol > > "cfbPutImage" Failed to load, etc. > > It should work if you put 'Load "cfb"' and 'Load "cfb32"' into the > 'Module' section of your xorg.conf. Note that if you plan to use > creator(4) you really should use FreeBSD 6.0 or later as there a > couple of bugs like the screen corruption when switching to a > VTY from X or when shutting down the X server are fixed. > Dejan, can you tell whether sunffb_drv.so is missing dependencies > on libcfb.so and libcfb32.so or these are meant to be explicitly > loaded with Xorg server versions that use shared objects for > drivers? As far as I can tell cfb was rather completely removed from X.org. I'll see if it is feasible to make a patch to remove the references instead. State-Changed-From-To: open->analyzed State-Changed-By: lesi State-Changed-When: Thu Mar 30 21:56:08 UTC 2006 State-Changed-Why: Incorporating post-7.0 changes from X.org CVS should fix this. Responsible-Changed-From-To: freebsd-sparc64->lesi Responsible-Changed-By: lesi Responsible-Changed-When: Thu Mar 30 21:56:08 UTC 2006 Responsible-Changed-Why: Grab. http://www.freebsd.org/cgi/query-pr.cgi?pr=94886 From: Dejan Lesjak To: bug-followup@freebsd.org, andrew@grillet.co.uk Cc: Subject: Re: sparc64/94886: Cant install xorg/sparc64/Creator3D Date: Fri, 31 Mar 2006 19:31:18 +0200 --Boundary-00=_odWLEPG8o1f+M+R Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Please try if this patch works. --Boundary-00=_odWLEPG8o1f+M+R Content-Type: text/x-diff; charset="us-ascii"; name="xo-server-sunffb.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xo-server-sunffb.patch" Index: Makefile =================================================================== RCS file: /usr/local/repos/freebsd/ports/x11-servers/xorg-server/Makefile,v retrieving revision 1.34 diff -u -r1.34 Makefile --- Makefile 21 Mar 2006 17:06:39 -0000 1.34 +++ Makefile 31 Mar 2006 17:28:25 -0000 @@ -7,7 +7,7 @@ PORTNAME= xorg-server PORTVERSION= 6.9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-servers MASTER_SITES= ${MASTER_SITE_XORG} MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src Index: files/patch-sunffb-nocfb =================================================================== RCS file: files/patch-sunffb-nocfb diff -N files/patch-sunffb-nocfb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-sunffb-nocfb 30 Mar 2006 22:38:27 -0000 @@ -0,0 +1,87 @@ +--- programs/Xserver/hw/xfree86/drivers/sunffb/ffb_accel.c.orig Fri Mar 31 00:22:07 2006 ++++ programs/Xserver/hw/xfree86/drivers/sunffb/ffb_accel.c Fri Mar 31 00:35:35 2006 +@@ -43,8 +43,6 @@ + #include "ffb_rcache.h" + #include "ffb_loops.h" + #include "ffb_regs.h" +-#include "ffb_stip.h" +-#include "ffb_gc.h" + + int CreatorScreenPrivateIndex; + int CreatorGCPrivateIndex; +--- programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dga.c.orig Fri Mar 31 00:22:07 2006 ++++ programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dga.c Fri Mar 31 00:36:08 2006 +@@ -36,7 +36,6 @@ + #include "ffb_regs.h" + #include "ffb_rcache.h" + #include "ffb_fifo.h" +-#include "ffb_stip.h" + #include "ffb_loops.h" + + static Bool FFB_OpenFramebuffer(ScrnInfoPtr, char **, unsigned char **, +--- programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c.orig Fri Mar 31 00:22:07 2006 ++++ programs/Xserver/hw/xfree86/drivers/sunffb/ffb_dri.c Fri Mar 31 00:37:04 2006 +@@ -33,11 +33,6 @@ + + #include "xf86PciInfo.h" + #include "xf86Pci.h" +-#define PSZ 8 +-#include "cfb.h" +-#undef PSZ +-#include "cfb16.h" +-#include "cfb32.h" + + #include "miline.h" + +--- programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile.orig Fri Mar 31 00:22:07 2006 ++++ programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile Fri Mar 31 00:34:27 2006 +@@ -60,16 +60,10 @@ + #define FFBsObjectRule(name) + #endif + +-SRCS = ffb_driver.c ffb_accel.c ffb_attr.c ffb_stip.c ffb_bcopy.c \ +- ffb_cplane.c ffb_fspans.c ffb_point.c ffb_seg.c ffb_plygon.c \ +- ffb_line.c ffb_glyph.c ffb_frect.c ffb_circle.c ffb_checks.c \ +- ffb_stubs.c ffb_gc.c ffb_gspans.c ffb_sspans.c ffb_zeroarc.c \ +- ffb_cursor.c ffb_dga.c ffb_dac.c ffb_wid.c ffb_dbe.c $(DRISRCS) +-OBJS = ffb_driver.o ffb_accel.o ffb_attr.o ffb_stip.o ffb_bcopy.o \ +- ffb_cplane.o ffb_fspans.o ffb_point.o ffb_seg.o ffb_plygon.o \ +- ffb_line.o ffb_glyph.o ffb_frect.o ffb_circle.o ffb_checks.o \ +- ffb_stubs.o ffb_gc.o ffb_gspans.o ffb_sspans.o ffb_zeroarc.o \ +- ffb_cursor.o ffb_dga.o ffb_dac.o ffb_wid.o ffb_dbe.o $(VISOBJS) \ ++SRCS = ffb_driver.c ffb_accel.c ffb_attr.c \ ++ ffb_cursor.c ffb_dga.c ffb_dac.c ffb_wid.c $(DRISRCS) ++OBJS = ffb_driver.o ffb_accel.o ffb_attr.o \ ++ ffb_cursor.o ffb_dga.o ffb_dac.o ffb_wid.o $(VISOBJS) \ + $(DRIOBJS) + + #if defined(XF86DriverSDK) +@@ -107,28 +101,10 @@ + FFBCObjectRule(ffb_accel) + FFBCObjectRule(ffb_driver) + FFBCObjectRule(ffb_attr) +-FFBCObjectRule(ffb_stip) +-FFBCObjectRule(ffb_bcopy) +-FFBCObjectRule(ffb_cplane) +-FFBCObjectRule(ffb_fspans) +-FFBCObjectRule(ffb_point) +-FFBCObjectRule(ffb_seg) +-FFBCObjectRule(ffb_plygon) +-FFBCObjectRule(ffb_line) +-FFBCObjectRule(ffb_glyph) +-FFBCObjectRule(ffb_frect) +-FFBCObjectRule(ffb_circle) +-FFBCObjectRule(ffb_checks) +-FFBCObjectRule(ffb_stubs) +-FFBCObjectRule(ffb_gc) +-FFBCObjectRule(ffb_gspans) +-FFBCObjectRule(ffb_sspans) +-FFBCObjectRule(ffb_zeroarc) + FFBCObjectRule(ffb_cursor) + FFBCObjectRule(ffb_dga) + FFBCObjectRule(ffb_dac) + FFBCObjectRule(ffb_wid) +-FFBCObjectRule(ffb_dbe) + FFBsObjectRule(VISmoveImage) + FFBsObjectRule(ffb_asm) + #if BuildXF86DRI --Boundary-00=_odWLEPG8o1f+M+R-- From: Matthias Muthmann To: bug-followup@FreeBSD.org, andrew@grillet.co.uk Cc: Subject: Re: sparc64/94886: Cant install xorg/sparc64/Creator3D Date: Wed, 19 Apr 2006 17:32:38 +0200 The patch works with a slight modification: You have to delete the following lines from ffb_driver.c (after applying the patch, of course). > if (xf86LoadSubModule(pScrn, "xf8_32wid") == NULL) { > FFBFreeRec(pScrn); > return FALSE; > } > -- Matthias Muthmann State-Changed-From-To: analyzed->closed State-Changed-By: lesi State-Changed-When: Thu Apr 20 10:49:47 UTC 2006 State-Changed-Why: Commited with ffb_driver.c part of patch. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=94886 >Unformatted: