I have been playing with this for a while, but there seem to be a few
differences in the HLFS system I have and the one you used to build Xorg6.9.
The mesa patch, for instance, fails.
package xorg:/usr/src/xorg/xc/extras/Mesa> patch -Np1 -i
/sources/mesa-6.4-pic-notextrel.patch
patching file configs/linux-dri-x86
patching file src/mesa/x86/glapi_x86.S
Hunk #1 succeeded at 81 (offset -1 lines).
Hunk #2 FAILED at 92.
Hunk #3 succeeded at 92 (offset -12 lines).
Hunk #4 succeeded at 107 (offset -12 lines).
Hunk #5 succeeded at 131 (offset -12 lines).
1 out of 5 hunks FAILED -- saving rejects to file
src/mesa/x86/glapi_x86.S.rej
patching file src/mesa/x86/mmx_blend.S
patching file src/mesa/x86/mmx_blendtmp.h
patching file src/mesa/x86/read_rgba_span_x86.S
package xorg:/usr/src/xorg/xc/extras/Mesa>
Not sure whether that matters as I haven't encountered an error with any
opengl stuff (yet).
I also do not have the CONFIG_PAX_NOELFRELOCS kernel option. I checked the
required patches for HLFS, but I haven't seen it in there as well. I guess
you got it yourself somehow (or the name changed).
So I just went ahead with the normal 6.8.2 book page, except for the
patches.
I used the checktextrel script, but didn't find anything with textrel in it.
I guess that is a good thing then.
When running "make World" I'm getting this error:
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing
-march=i686 -ansi -Wall -Wpointer-arith -Wundef
-I../../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../../programs/Xserver/hw/xfree86/os-support -I.
-I../../../../../../programs/Xserver/include
-I../../../../../../exports/include/X11
-I../../../../../../include/extensions
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared
-I../../../../../../programs/Xserver/hw/xfree86/os-support/bus
-I../../../../../../extras/drm/shared-core -I../../../../../..
-I../../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP
-DXF86BIGFONT -DDPMSExtension -DXPRINT -DPIXPRIV -DPANORAMIX -DRENDER
-DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS
-DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
-DXFreeXDGA -DXvExtension -DXFree86LOADER -DDLOPEN_HACK
-DXFree86Server -DXF86VIDMODE
-DXvMCExtension -DSMART_SCHEDULE
-DBUILDDEBUG -DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0) * 1000) +
0)" -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DHAS_MTRR_SUPPORT -DUSESTDRES
-DDO_OS_FONTRESTORE -DCHECK_OS_VERSION=1 -DHAVE_SYSV_IPC lnx_agp.c
In file included from lnx_agp.c:24:
/usr/include/linux/agpgart.h:55: error: syntax error before "__u16"
/usr/include/linux/agpgart.h:60: error: veld `version' heeft een onvolledig
type/usr/include/linux/agpgart.h:61: error: syntax error before "__u32"
/usr/include/linux/agpgart.h:68: error: syntax error before '}' token
/usr/include/linux/agpgart.h:71: error: syntax error before "__u32"
/usr/include/linux/agpgart.h:92: error: syntax error before "__u32"
/usr/include/linux/agpgart.h:106: error: syntax error before "__u32"
lnx_agp.c: In function `GARTInit':
lnx_agp.c:65: error: storage size of 'agpinf' isn't known
lnx_agp.c:65: let op: unused variable `agpinf'
lnx_agp.c: In function `xf86GetAGPInfo':
lnx_agp.c:129: error: storage size of 'agpinf' isn't known
lnx_agp.c:129: let op: unused variable `agpinf'
lnx_agp.c: In function `xf86AllocateGARTMemory':
lnx_agp.c:221: error: storage size of 'alloc' isn't known
lnx_agp.c:221: let op: unused variable `alloc'
lnx_agp.c: In function `xf86UnbindGARTMemory':
lnx_agp.c:324: error: storage size of 'unbind' isn't known
lnx_agp.c:324: let op: unused variable `unbind'
lnx_agp.c: In function `xf86EnableAGP':
lnx_agp.c:356: error: syntax error before "setup"
lnx_agp.c:361: error: `setup' is hier niet gedeclareerd (eerste gebruik in
deze
functie)
lnx_agp.c:361: error: (Elke niet-gedeclareerde naam wordt slechts één
lnx_agp.c:361: error: keer vermeld voor elke functie waarin hij staat.)
make[7]: *** [lnx_agp.o] Fout 1
make[7]: Leaving directory
`/usr/src/xorg/xcbuild/programs/Xserver/hw/xfree86/os-support/linux'
make[6]: *** [linux] Fout 2
make[6]: Leaving directory
`/usr/src/xorg/xcbuild/programs/Xserver/hw/xfree86/os-support'
make[6]: *** [linux] Fout 2
make[6]: Leaving directory
`/usr/src/xorg/xcbuild/programs/Xserver/hw/xfree86/os-support'
make[5]: *** [all] Fout 2
make[5]: Leaving directory
`/usr/src/xorg/xcbuild/programs/Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Fout 2
make[4]: Leaving directory `/usr/src/xorg/xcbuild/programs/Xserver'
make[3]: *** [all] Fout 2
make[3]: Leaving directory `/usr/src/xorg/xcbuild/programs'
make[2]: *** [all] Fout 2
make[2]: Leaving directory `/usr/src/xorg/xcbuild'
make[1]: *** [World] Fout 2
make[1]: Leaving directory `/usr/src/xorg/xcbuild'
make: *** [World] Fout 2
Something tells me, making x work is going to take a while :-)
Warren
From: Declan Moriarty <[EMAIL PROTECTED]>
Reply-To: Hardened LFS Development List <[email protected]>
To: Hardened LFS Development List <[email protected]>
Subject: Re: Xorg -configure Duplicate symbol (6.8.2)
Date: Tue, 28 Feb 2006 14:19:39 +0000
Recently, Somebody Somewhere wrote these words
>
> Just for the fun of it, ...meh, I have recompiled 6.8.2 with a
> new buildscript. (the buildscript has been filled with the HLFS
> xorg-6.8.2 build commands, copied from the page, so no typos (of
> mine) ) Again, Xorg -configure failed, so I tried 6.9. I'm not
> sure if I understood your post correctly. I have tried with
> either of your gcc specs files in /usr/lib/gcc/2.6.14.6/ and
> have built 6.9 with the same 6.8.2 buildscript, except for the
> patches. The nonow patch could actually be applied, but I'm not
> sure whether I still need to with these spec files. So in total
> I have run four compilations of Xorg 6.9 now. With and without
> the -nonow patch and with either the specs file or the specs.old
> file.
>
> Unfortunately, the build fails with this error:
>
> gcc -m32 -o xdm -O2 -fno-strength-reduce
> -fno-strict-aliasing -march=i686 -ansi -Wall -Wpointer-arith
> -Wundef -L../../exports/lib auth.o daemon.o server.o
> dpylist.o dm.o error.o file.o netaddr.o reset.o
> resource.o protodpy.o policy.o session.o socket.o
> streams.o util.o xdmcp.o mitauth.o genauth.o
> access.o choose.o prngc.o xdmauth.o rpcauth.o
> greet.o verify.o Login.o -lXpm -lXmu -lXt -lSM -lICE -lXext
> -lX11 -lXt -lSM -lICE -lXext -lX11 -lXau -lXdmcp -lrpcsvc
> -lcrypt -lXinerama -Wl,-rpath-link,../../exports/lib
> /usr/bin/ld: cannot find -lrpcsvc collect2: ld gaf exit-status 1
> terug make[4]: *** [xdm] Fout 1 make[4]: Leaving directory
> `/usr/src/xorg/xcbuild/programs/xdm' make[3]: *** [all] Fout 2
> make[3]: Leaving directory `/usr/src/xorg/xcbuild/programs'
> make[2]: *** [all] Fout 2 make[2]: Leaving directory
> `/usr/src/xorg/xcbuild' make[1]: *** [World] Fout 2 make[1]:
> Leaving directory `/usr/src/xorg/xcbuild' make: *** [World] Fout
> 2
>
> (I do have /usr/include/rpcsvc/)
>
> What have I missed?
I think it's in ~/xcbuild/programs/xdm/Makefile
RPCLIB = -lrpcsvc
Just delete it. grepping for RPCLIB sorts you out.
The other gotchas:
http://www.linuxfromscratch.org/pipermail/hlfs-dev/2006-January/002705.html
Instead of Kevin Day's Mesa patch, I ended up with the one from here
http://bugs.freedesktop.org/show_bug.cgi?id=4197
And although I may not have made it clear, I followed the Xorg-6.8.2 page
from the book pretty completely. You don't actually need any of the 6.8.2
patches for 6.9.0, as the developers have largely adopted them. But the sed
commands before, & methodology are all similar.
There is a later set of instructions in January which include DRI
http://www.linuxfromscratch.org/pipermail/hlfs-dev/2006-January/002745.html
and you might even get lucky. I got DRI only to discover the video card
I have is useless.
--
With Best Regards,
Declan Moriarty.
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page