Bug 86833 - repost. X11R7.6 from tarballs fails, BIG MAKE BUG FOUND, and X wiki not helpful, jh-build no? (patches and sol'n in article)
Summary: repost. X11R7.6 from tarballs fails, BIG MAKE BUG FOUND, and X wiki not helpf...
Status: RESOLVED DUPLICATE of bug 86810
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.6 (2010.12)
Hardware: All All
: high critical
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-28 19:47 UTC by slackguy
Modified: 2014-11-30 18:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
building X11R7.6 from tarballs, w/o middleware, w/o middleware, w/patches (34.68 KB, text/plain)
2014-11-28 19:57 UTC, slackguy
no flags Details
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch (850 bytes, patch)
2014-11-28 19:58 UTC, slackguy
no flags Details | Splinter Review
xorg/Mesa-7.8.2/src/mesa/drivers/dri/i915/intel_buffer_objects.c-X11R7.6.patch (461 bytes, patch)
2014-11-28 19:59 UTC, slackguy
no flags Details | Splinter Review
xorg/xorg-server-1.9.3/configure.ac-X11R7.6.patch (5.06 KB, patch)
2014-11-28 19:59 UTC, slackguy
no flags Details | Splinter Review
xorg/xorg-server-1.9.3/hw/xfree86/loader/sdksyms.sh-X11R7.6.patch (9.74 KB, patch)
2014-11-28 20:00 UTC, slackguy
no flags Details | Splinter Review
xorg/xdm-1.1.10/configure.ac-X11R7.6.patch (3.66 KB, patch)
2014-11-28 20:00 UTC, slackguy
no flags Details | Splinter Review
xorg/xterm-312/aclocal.m4-X11R7.6.patch (6.40 KB, patch)
2014-11-28 20:01 UTC, slackguy
no flags Details | Splinter Review
xorg/xterm-312/configure.in-X11R7.6.patch (2.11 KB, patch)
2014-11-28 20:01 UTC, slackguy
no flags Details | Splinter Review
xorg/xlsclients-1.1.1/xlsclients.c-X11R7.6.patch (682 bytes, patch)
2014-11-28 20:01 UTC, slackguy
no flags Details | Splinter Review
xorg/x11perf-1.5.2/configure.ac-X11R7.6.patch (2.70 KB, patch)
2014-11-28 20:02 UTC, slackguy
no flags Details | Splinter Review
xorg/xclock-1.0.5/configure.ac-X11R7.6.patch (2.74 KB, patch)
2014-11-28 20:02 UTC, slackguy
no flags Details | Splinter Review
xorg/xlogo-1.0.3/configure.ac-X11R7.6.patch (2.70 KB, patch)
2014-11-28 20:06 UTC, slackguy
no flags Details | Splinter Review
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch (954 bytes, patch)
2014-11-30 00:23 UTC, slackguy
no flags Details | Splinter Review
xorg/xorg-server-1.9.3/hw/xfree86/loader/sdksyms.sh-X11R7.6.patch (9.61 KB, text/plain)
2014-11-30 00:24 UTC, slackguy
no flags Details
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch (942 bytes, patch)
2014-11-30 00:46 UTC, slackguy
no flags Details | Splinter Review
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch (939 bytes, patch)
2014-11-30 01:47 UTC, slackguy
no flags Details | Splinter Review
get-mk-install-X11R7.6-from-tarballs.sh (34.68 KB, text/plain)
2014-11-30 16:37 UTC, slackguy
no flags Details
get-mk-install-X11R7.6-from-tarballs.sh (34.68 KB, text/plain)
2014-11-30 18:12 UTC, slackguy
no flags Details
get-mk-install-X11R7.6-from-tarballs.sh (33.49 KB, text/plain)
2014-11-30 18:14 UTC, slackguy
no flags Details

Description slackguy 2014-11-28 19:47:09 UTC
i made X11R7.6 from tarballs on x.org and had many problems and make stops, unfamiliar thinking it'd be like xfree86 tarball dl+make.

jh-build posted "example module list" i saw is incompelete and partly in wrong order - already knowing some of it. (anyway, git site won't let me download git source code so i can use jh-build: it hangs up saying i'm not ipv6! when i ran git sarge: says can't cd).  so XFree86 X.4.8.0 is a breeze <1 hr download and running.  was very difficult w/o initiation and no help.  x.org's wiki only shows "exmample of" and it's depends list is worse.  understand this build has no build environment: it works because each pkg is made and installed in order.

INTENDED TO BE COMPLETE. NOT AN EXAMPLE.  FULLY FUNCTIONAL.  FROM TARBALLS which it gets a one install shy of seeing x-logins (as curteousy it doesnt' do that)

just read script it's simple if you have the right list

wget "right list", apply patches, make+install list, finish with tips

http://sourceforge.net/projects/debguyscripts/files/get-mk-install-X11R7.6-from-tarballs.sh

http://sourceforge.net/projects/debguyscripts/files/patches-X11R7.6.tar.gz
Comment 1 slackguy 2014-11-28 19:51:16 UTC
# doesnt' include all headers (only works if in tree using middleware until patched)
patches-X11R7.6/xorg/Mesa-7.8.2/src/mesa/drivers/dri/i915/intel_buffer_objects.c-X11R7.6.patch

MAJOR BUG

# Xorg configure.ac broken: XV is default but won't build it, cannot turn off XV either. changelog shows many hackign XV out.  i then find (much later) compiled w/o XV my video server has been hacked to quit without XV (in XFree86 the same driver can do both XV and FB, but i think XV support looks better?)

patches-X11R7.6/xorg/xorg-server-1.9.3/configure.ac-X11R7.6.patch

MAJOR BUG.  xfree86 comes with hand preened sdksyms.c, Xorg comes with empty one and tries to build it with this.  but it's HIGHLY BROKEN (in X11R7.6 at least)

patches-X11R7.6/xorg/xorg-server-1.9.3/hw/xfree86/loader/sdksyms.sh-X11R7.6.patch

in X11R7.6 sources, libfreetype and libXft are separate libs and pkg-configs.  (i hear on ?Oracle the two are combined so no problem).  these all add check for libfreetype, thus include dir and lib flat with pkg-config is seen and added by make  they all FAIL TO BUILD without patch.

patches-X11R7.6/xorg/xdm-1.1.10/configure.ac-X11R7.6.patch
patches-X11R7.6/xorg/x11perf-1.5.2/configure.ac-X11R7.6.patch
patches-X11R7.6/xorg/xlsclients-1.1.1/xlsclients.c-X11R7.6.patch
patches-X11R7.6/xorg/xclock-1.0.5/configure.ac-X11R7.6.patch
patches-X11R7.6/xorg/xlogo-1.0.3/configure.ac-X11R7.6.patch
# same for xterm but xterm build fine, just w/o Xft
patches-X11R7.6/xorg/xterm-312/aclocal.m4-X11R7.6.patch
patches-X11R7.6/xorg/xterm-312/configure.in-X11R7.6.patch

# uses ONE __builtin tiny bit hack only new gcc has (i replaced with code, infact just re-uploaded missed a ~.  if you have new gcc build won't stop here but patch is ok or use orig l8tr when done)
patches-X11R7.6/xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch
Comment 2 slackguy 2014-11-28 19:52:42 UTC
sdksyms.sh was a total rework, allot of work

the original:

1) old had added XV syms when option XV was false

# include "xv.h" (to mess with XV)
#include "xv.h"   
 
2) i then had to go fix configure.ac so ./configure --with-XV (or disable) actually did something (ie, so #if XV works)

3) whoever wrote sdksyms.sh was smart but HARDLY KNOWS THE AWK LANGUAGE

4) getting:  
    (void *) &CheckExtension,
    (void *) &GetExtensionEntry,
    (void *) &void,
    (void *) &void,
    (void *) &void,


of course stops build.  void return (not K&R C doesn't have void) means that C should magic take care of the stack.  while K&R allowed it, and let you access the stack without using asm too (new C gives you bogus error telling you you cant return without popping stack.  you can. that's a bogus message you can and possibly wanted to.).  void is stack return.  as "a width and location of memory, a cpu instruction" it's a real error.

-------detour------------
i've written a C parser (a dependancy sorter, and tot. dep. ord. dpkg installer/remover)

   bnf2xml.  C code -> BNF(parser rules) -> XML tagged C
   which unlike gcc bison is never ambiguous
   (dont' clap yet due to recursive design it's slower on many things
    but for complicated tasks worse than C++, it's all u got that
    goes right from BNF rules to XML markup)

4) sdksyms.sh I GUARANTEE was trying to parse C with just awk - believe me you can't

   luckily you found me in a good mood :)

   i wanted to use bnf2xml but to keep others happy not trying to push
   a binary into X, i made it work

   it was a "B" but i think works very well now

   (IT FINDS 129 symbols that progs may well need the other didn't
    AND SHOULD KEEP OUT ones that stop build that shouldn't be there)

   and it's preety fast.  no notice on build speed.
Comment 3 slackguy 2014-11-28 19:53:01 UTC
i applied the above.

i didnt' test the script well.  but i did the whole process 3x from fresh.

i have a server that works, has all goodies on x.org + xterm + cairo, no video glitches.

running X login using xdm

as if it were pre-packages (or better, for one thing fonts are not buggy and showing nicely!  thank you Keith !)
Comment 4 slackguy 2014-11-28 19:53:19 UTC
omission.  i said "debian sarge" - that old sarge compiled it all in order (with patches applied) with no stop, backports nices.

however the kernel was updated a couple years back 2.6.4+ and has (newish) drm/X support which work on a different host running nearly the same X11R7.6 on a newer debian, the build tools (gcc) though appear from sarge.
Comment 5 slackguy 2014-11-28 19:57:21 UTC
Created attachment 110191 [details]
building X11R7.6 from tarballs, w/o middleware, w/o middleware, w/patches

i'm unsure if middleware is expected.  if so i didnt' see any lead i could use on x.org though would like to.  on the other hand i see so many w/server problems i don't have: maybe this way is wise.
Comment 6 slackguy 2014-11-28 19:58:37 UTC
Created attachment 110192 [details] [review]
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch
Comment 7 slackguy 2014-11-28 19:59:16 UTC
Created attachment 110193 [details] [review]
xorg/Mesa-7.8.2/src/mesa/drivers/dri/i915/intel_buffer_objects.c-X11R7.6.patch
Comment 8 slackguy 2014-11-28 19:59:40 UTC
Created attachment 110194 [details] [review]
xorg/xorg-server-1.9.3/configure.ac-X11R7.6.patch
Comment 9 slackguy 2014-11-28 20:00:01 UTC
Created attachment 110195 [details] [review]
xorg/xorg-server-1.9.3/hw/xfree86/loader/sdksyms.sh-X11R7.6.patch
Comment 10 slackguy 2014-11-28 20:00:32 UTC
Created attachment 110196 [details] [review]
xorg/xdm-1.1.10/configure.ac-X11R7.6.patch
Comment 11 slackguy 2014-11-28 20:01:06 UTC
Created attachment 110197 [details] [review]
xorg/xterm-312/aclocal.m4-X11R7.6.patch
Comment 12 slackguy 2014-11-28 20:01:20 UTC
Created attachment 110198 [details] [review]
xorg/xterm-312/configure.in-X11R7.6.patch
Comment 13 slackguy 2014-11-28 20:01:44 UTC
Created attachment 110199 [details] [review]
xorg/xlsclients-1.1.1/xlsclients.c-X11R7.6.patch
Comment 14 slackguy 2014-11-28 20:02:02 UTC
Created attachment 110200 [details] [review]
xorg/x11perf-1.5.2/configure.ac-X11R7.6.patch
Comment 15 slackguy 2014-11-28 20:02:18 UTC
Created attachment 110201 [details] [review]
xorg/xclock-1.0.5/configure.ac-X11R7.6.patch
Comment 16 slackguy 2014-11-28 20:06:59 UTC
Created attachment 110202 [details] [review]
xorg/xlogo-1.0.3/configure.ac-X11R7.6.patch
Comment 17 slackguy 2014-11-28 20:15:27 UTC
after wget, patches applied, mk+install (in depends order which is done), and (see ending tips in .sh) ...

i had a nice running accelerated deskop logged in from xdm X Login query X host, no artifacts, and thanks to (Keith) very nice fonts !  and firefox doesn't have any glitches (and i didn't even reinstall my /home/usr/firefox)

all that was necessary after (what .sh does) was to install a diplay manager properly and a few tips (i use xdm-options, kdm, gdm are others) (tip, ie, mouseopenfail may give you black screen even if mouse is working).  (the script puts that in /tmp/dm.tar.gz and says it's there for you)

i did it a total of 3x, once to insure steps i'd taken didn't effect the list i'm showing

-----------------------
so that's as far as i know the only posting on web of X11R7.6 on sarge (w/new kernel) from tarballs WHICH IS COMPLETE (and yet small, not requiring a GNU distro as provided by admins).

also it's the only straight down list of depends / version one needs

----------------------
thank you.  please post comments if you feel git(1) is better than i think, or someone alread posted the full monte with patches i have, or whatever.  i personally don't mind at all whatever is commented.

thank you
Comment 18 slackguy 2014-11-28 20:17:38 UTC
(OOPS: tip, ie, mouseopenfail SOLVE your black screen even if mouse is working)

-------------------------
please be patient with this post I AM STILL READING bugzilla user guide i will try and catch up with board rules, thank you
Comment 19 Alan Coopersmith 2014-11-29 01:21:14 UTC

*** This bug has been marked as a duplicate of bug 86810 ***
Comment 20 slackguy 2014-11-29 18:05:53 UTC
thank you, however

this repost has xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch (850 bytes, patch)  updated, for some reason i cannot update the orig post.  sorry about that.

(as i said the patch is only useful to those who are still using gcc versions < 3.4 (approx))
Comment 21 slackguy 2014-11-30 00:23:15 UTC
Created attachment 110249 [details] [review]
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch

redid patch so __builtin_ctz is used if present in gcc, else code is provided
Comment 22 slackguy 2014-11-30 00:24:49 UTC
Created attachment 110250 [details]
xorg/xorg-server-1.9.3/hw/xfree86/loader/sdksyms.sh-X11R7.6.patch

re-upload, removes debug print line previous patch to X11R7.6 left in
Comment 23 slackguy 2014-11-30 00:46:45 UTC
Created attachment 110252 [details] [review]
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch

remove comment upon shl from last patch
Comment 24 slackguy 2014-11-30 01:47:10 UTC
Created attachment 110254 [details] [review]
xorg/libdrm-2.4.22/radeon/radeon_cs_gem.c-X11R7.6.patch

minor, as to last patch, patchlevel is >= 6 not 60
Comment 25 slackguy 2014-11-30 01:48:34 UTC
excuse me, i didn't realize patch comments went on main page
Comment 26 slackguy 2014-11-30 16:37:56 UTC
Created attachment 110268 [details]
get-mk-install-X11R7.6-from-tarballs.sh

prev upload did not run autoreconf for xterm aclocal.m4, fixed
Comment 27 slackguy 2014-11-30 18:12:21 UTC
Created attachment 110269 [details]
get-mk-install-X11R7.6-from-tarballs.sh

as to last upload, tested, found a few minor fixes and removal of old hack thing (script even simpler)
Comment 28 slackguy 2014-11-30 18:14:43 UTC
Created attachment 110271 [details]
get-mk-install-X11R7.6-from-tarballs.sh

as to last upload, tested, found a few minor fixes and removal of old hack thing (script even simpler)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.