I am having trouble building XDirectFB. I am using cvs for everything (DirectFB, XDirectFB, and XFree) all retrieved not more than a few days ago. I think it might be the patch that is causing the trouble, since it didn't seem to apply so smoothly. I was hoping someone might be able to shed some light on what I must do here to get it to build. DirectFB works fine (well except for some mouse troubles when using FBdev, but that is not an issue at the moment since it works fine on SDL). I've got this weird feeling I'm gonna have to go through and apply the patch manually, though I know little of diff files and how they work so I was hoping to avoid this if possible. I did change directfb.cf to use -march=pentium2 in the CFLAGS, though I see how that would be causing the error I get, which is about a missing target in the Makefile.
Here is the results of the patch:
[EMAIL PROTECTED]:~/directfb/XDirectFB/xc$ patch -p0 -i ../xc-directfb.diff
patching file config/cf/linux.cf
Hunk #1 succeeded at 1017 (offset 12 lines).
patching file programs/Xserver/Imakefile
Hunk #1 succeeded at 274 with fuzz 2 (offset -268 lines).
Hunk #2 FAILED at 1213.
1 out of 2 hunks FAILED -- saving rejects to file programs/Xserver/Imakefile.rej
patching file programs/Xserver/Xserver.man
Hunk #1 succeeded at 782 (offset 4 lines).
patching file programs/Xserver/fb/fbcmap.c
patching file programs/Xserver/Xext/Imakefile
Hunk #1 FAILED at 106.
1 out of 1 hunk FAILED -- saving rejects to file programs/Xserver/Xext/Imakefile.rej
And here is the make error:
gcc -m32 -c -O2 -fno-strength-reduce -march=pentium2 -Wall -Wpointer-arith -Wundef -I. -I../../../programs/Xserver/fb -I../../../programs/Xserver/mi -I../../../programs/Xserver/include -I../../../programs/Xserver/hw/xfree86/common -I../../../programs/Xserver/render -I../../../programs/Xserver/Xext -I../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DXSYNC -DDPMSExtension -DBIGREQS -DPANORAMIX -DRENDER -DRANDR -DNDEBUG -DNEED_STRLCAT -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DDIRECTFBSERVER -DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -D_REENTRANT -DFUNCPROTO=15 -DNARROWPROTO fbpict.c
rm -f libfb.a
ar clq libfb.a fbarc.o fballpriv.o fbbits.o fbblt.o fbbltone.o fbbstore.o fbcmap.o fbcompose.o fbcopy.o fbfill.o fbfillrect.o fbfillsp.o fbgc.o fbgetsp.o fbglyph.o fbimage.o fbline.o fboverlay.o fbpixmap.o fbpoint.o fbpush.o fbscreen.o fbseg.o fbsetsp.o fbsolid.o fbstipple.o fbtile.o fbtrap.o fbutil.o fbwindow.o fb24_32.o fbpict.o
ranlib libfb.a
make[5]: Leaving directory `/media/store/git/directfb/XDirectFB/xc/programs/Xserver/fb'
make[4]: *** No rule to make target `PreFbLibs', needed by `XDirectFB'. Stop.
make[4]: Leaving directory `/media/store/git/directfb/XDirectFB/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/media/store/git/directfb/XDirectFB/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/media/store/git/directfb/XDirectFB/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/media/store/git/directfb/XDirectFB/xc'
make: *** [World] Error 2
Grepping for PreFbLibs in the diff gives me this:
+DIRECTFBLIBS = PreFbLibs $(DIRECTFBDDXDIR)/LibraryTargetName(directfb) FbPostFbLibs
Grepping for PreFbLibs in xc/programs/Xserver/Makefile gives me this:
DIRECTFBLIBS = PreFbLibs $(DIRECTFBDDXDIR)/libdirectfb.a FbPostFbLibs
But I see nothing about a target for PreFbLibs, perhaps I am missing something here.
Any more information which is needed I will be happy to provide.
Thanks
Ray
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
