LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-15-2022, 03:32 PM   #1
linus.hsao
LQ Newbie
 
Registered: Dec 2022
Location: TAIWAN
Posts: 1

Rep: Reputation: 0
complie error in libx11-1.8.1


host: debian 11(testing/bulleyes)
lfs version : 11.2
in section bfs, compile the libx11-1.8.1 failed.
-----
i had finished LFS, added wireless support and working fine, so continue to working on BFS about X-WINDOW(Xorg Libraries)

everything is fine at ./configure as follow:

Code:
./configure $XORG_CONFIG --disable-thread-safety-constructor
result is:

Code:
X11 will be built with the following settings:
 Loadable i18n module support:            no
 Loadable xcursor library support:        yes
 Threading support:                       yes
 Use Threads safe API:                    yes
 Threads stubs in libX11:                 no
 XCMS:                                    yes
 Internationalization support:            yes
 XF86BigFont support:                     yes
 XKB support:                             yes
 XLOCALEDIR environment variable support: yes
 Compose table cache enabled:             yes
 Functional specs building enabled:       yes
but got errors when execute make, error msg just like this:

Code:
/usr/X11/include/X11/extensions/XKBproto.h:702:41: error: expected ':', ',', ';', '}' or '__attribute__' before '_X_NONSTRING'
  702 |    CARD8        over[XkbKeyNameLength]  _X_NONSTRING;
      |                                         ^~~~~~~~~~~~
In file included from ../../include/X11/XKBlib.h:31,
                 from XKBlibint.h:31,
                 from XKB.c:33:
/usr/X11/include/X11/extensions/XKBstr.h:405:41: error: expected ':', ',', ';', '}' or '__attribute_ ' before '_X_NONSTRING'
  405 |         char    name[XkbKeyNameLength]  _X_NONSTRING;
      |                                         ^~~~~~~~~~~~
/usr/X11/include/X11/extensions/XKBstr.h:409:41: error: expected ':', ',', ';', '}' or '__attribute_ ' before '_X_NONSTRING'
  409 |         char    real[XkbKeyNameLength]  _X_NONSTRING;
      |                                         ^~~~~~~~~~~~
make[3]: *** [Makefile:519: XKB.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:519: XKBBind.lo] Error 1
make[3]: Leaving directory '/opt/repository/X/sources/lib/libX11-1.8.1/src/xkb'
make[2]: *** [Makefile:1266: all-recursive] Error 1
make[2]: Leaving directory '/opt/repository/X/sources/lib/libX11-1.8.1/src'
make[1]: *** [Makefile:824: all] Error 2
make[1]: Leaving directory '/opt/repository/X/sources/lib/libX11-1.8.1/src'
make: *** [Makefile:526: all-recursive] Error 1
tks for your reply.

Last edited by linus.hsao; 12-15-2022 at 03:38 PM.
 
Old 12-16-2022, 08:12 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,305

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
What you posted (3rd box) was a compile tail-spinning into the ground. We need to see what shot it down.
cd back into the directory, type
Code:
make >somefilename.txt 2>&1
and then and then post or pastebin that file if it's big. It's usually manageable.
 
Old 12-26-2022, 12:45 AM   #3
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 207

Rep: Reputation: 44
I see two possible failures.

no) your CFLAGS doesn't have all the -I to find all the .h so it found some not all leaving some things undefined. probably not that.

2) XkbKeyNameLength is ill defined because it isn't define because you have the wrong versions of (xcb-util, xproto) installed, and and creates non-recognition occurs since it actually aint there yet.

3) you somehow have (you didn't show much of the Make log) CFLAGS="std=gnu++11" where CLFAGS="std=gnu89" is useful, which then flubs on new syntax and creates non-recognition.

4) trash in your ENV or CFLAGS which prevents the build from finding things normally.

-------------------

make[3]: Entering directory `/usr/local/src8/libX11-1.8.1/src/xkb'
CC XKB.lo
* CC XKBBind.lo
CC XKBCompat.lo

!!!!!!!
configure ...

Loadable i18n module support: no
Loadable xcursor library support: yes
XKB support: yes
XF86BigFont support: yes

$ ./configure --prefix=/usr/local/app64 --exec-prefix=/usr/local/app64 --datarootdir=/usr/local/app64/share --datadir=/usr/loca /app64/share --sysconfdir=/usr/local/app64/etc --libdir=/usr/loca /app64/lib64 --with-gnu-ld --without-xmlto

CFLAGS=' -O1 -march=x86-64 -mtune=core2 -I/usr/local/comp64/include -I /usr/local/comp64/usr/include -I/usr/local/comp64/include -I/usr/local/comp64/usr/include -I/usr/local/app64/include -I/usr/local/app64/usr/include -I/usr/include -std=gnu89 '

ENV='omitted, too long for post'

that should do it. libX11 is usually an easy compile, assuming pre-requirements are already compiled and installed. i have 0 fixes for building libX11 since it *should* work if anything (in the area) is working.

Last edited by xlfs-0.2; 12-26-2022 at 12:50 AM.
 
Old 12-26-2022, 12:51 AM   #4
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 207

Rep: Reputation: 44
maybe: you might be doing something wrong like ...

* you know you can't compile a new version while an old version is installed - the headers will get mixed together while compiling
 
Old 11-01-2023, 11:28 PM   #5
predators46
LQ Newbie
 
Registered: Nov 2023
Posts: 1

Rep: Reputation: 0
i found the same problem while building in openwrt. This problem is caused by xorgproto version 2023, you can use another version. I hope someone reports this issue in developer. Thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
complie GLIBC_2.9 with the error: cannot compute sizeof (long double) CCHBB Linux - Software 2 05-03-2017 04:50 AM
intel video card 945GM driver complie error! help me! phydora Linux - Hardware 7 06-05-2008 01:07 PM
make modules complie error..... hkl8324 Debian 1 06-14-2005 05:13 PM
I had a error during kernel complie.. what should I do..?? HeyJude Linux - General 2 09-09-2003 05:21 AM
kernel complie error DMRansom Linux - Newbie 3 06-09-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration