Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138719 - setxkbmap fails: X11/Xlib.h: No such file or directory
Summary: setxkbmap fails: X11/Xlib.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-01 08:05 UTC by far jump
Modified: 2006-07-26 07:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
error when emerging xorg-x11 7.0.r1 (error.msg,14.99 KB, text/plain)
2006-07-01 08:06 UTC, far jump
Details
emerge -p xorg-x11 (error1.msg,12.68 KB, text/plain)
2006-07-01 14:05 UTC, far jump
Details
Emerging (1 of 1) x11-proto/kbproto-1.0.2 (error2.msg,3.82 KB, text/plain)
2006-07-01 19:33 UTC, far jump
Details
config.log (config.log,12.95 KB, text/plain)
2006-07-02 23:06 UTC, far jump
Details
emerge -ep xorg-x11 (error3.msg,11.88 KB, text/plain)
2006-07-05 19:22 UTC, far jump
Details
emerge -etpv xorg-x11 (error4.txt,16.82 KB, text/plain)
2006-07-06 20:43 UTC, far jump
Details

Note You need to log in before you can comment on or make changes to this bug.
Description far jump 2006-07-01 08:05:12 UTC
emerge -u world
cannot emerge xorg-x11
setxkbmap.c:34:22: X11/Xlib.h: No such file or directory
see attached file for complete error report

>emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdrw cli crypt cups dri dts dvd dvdrw eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk2 hpijs imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode usb vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 far jump 2006-07-01 08:06:12 UTC
Created attachment 90617 [details]
error when emerging xorg-x11 7.0.r1
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2006-07-01 09:02:58 UTC
Alright, is x11-libs/libX11 installed?  If not, what is the output of 'emerge -p xorg-x11 | grep libX11'?

Also, are you following the migration guide?
Comment 3 far jump 2006-07-01 14:04:37 UTC
Here is what I did:
On Friday:
> emerge --sync
> emerge -u system
emerge -u world

on last emerge It said that xorg-x11 7.0 was blocked by xorg-x11 6.8.2-r8
I did:
> emerge -aC xorg-x11 [6.8.2-r8]
> emerge xorg-x11
and got a error which i reported (bug id: 138584) which Jakub Moc replied: 
*** This bug has been marked as a duplicate of 138569 ***
bug 138569 was resloved by Jakub Moc and we were told to emerge --sync and try again, I did as I was told and recieved this error!

the output of 'emerge -p xorg-x11 | grep libX11'? is null
attached is the output of emerge -p xorg-x11





Comment 4 far jump 2006-07-01 14:05:31 UTC
Created attachment 90643 [details]
emerge -p xorg-x11
Comment 5 far jump 2006-07-01 14:07:08 UTC
>emerge -s libX11
Searching...
[ Results for search key : libX11 ]
[ Applications found : 1 ]

*  x11-libs/libX11
      Latest version available: 1.0.1-r1
      Latest version installed: 1.0.1-r1
      Size of files: 1,386 kB
      Homepage:      http://xorg.freedesktop.org/
      Description:   X.Org X11 library
      License:       libX11

Comment 6 far jump 2006-07-01 14:13:10 UTC
Also, are you following the migration guide? No

I was just doing our weekly sync & update to keep our Gentoo systems up to date.  I always to this machine first, and if no problems I do the rest.  I am not trying to force the new X11 7.0.  I go with what Gentoo portage gives me :-)
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 14:20:32 UTC
Please remerge libX11.
Comment 8 far jump 2006-07-01 14:30:53 UTC
checking keysymdef.h... configure: error: Cannot find keysymdef.h

!!! Please attach the following file when filing a report to bugs.gentoo.org:

!!! /var/tmp/portage/libX11-1.0.1-r1/work/libX11-1.0.1/config.log

!!! ERROR: x11-libs/libX11-1.0.1-r1 failed.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 14:34:29 UTC
In that case, remerge xproto, then libX11.

Did you unmerge xorg-x11 6.8 before emerging the new one, or did you pass -O or --nodeps?
Comment 10 far jump 2006-07-01 14:43:55 UTC
As I indicated in comment #3, I unmerged xorg-x11 6.8 before emerging the new one

emerge xproto -- success
emerge libX11 -- fails
../../include/X11/XKBlib.h:33:35: X11/extensions/XKBstr.h: No such file or directory
In file included from XKBBind.c:37:
../../include/X11/XKBlib.h:218: error: `XkbActionMessageLength' undeclared here (not in a function)
../../include/X11/XKBlib.h:393: error: syntax error before "KeyCode"
../../include/X11/XKBlib.h:397: warning: function declaration isn't a prototype
../../include/X11/XKBlib.h:493: error: syntax error before "XkbMapNotifyEvent"
../../include/X11/XKBlib.h:495: warning: function declaration isn't a prototype
.
.
[ba-zillion more errors]
.
!!! ERROR: x11-libs/libX11-1.0.1-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called x-modular_src_compile
  x-modular.eclass, line 332:   Called x-modular_src_make
  x-modular.eclass, line 327:   Called die
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 14:48:27 UTC
OK, that means you need to remerge kbproto. What filesystem, kernel and portage version are you using?
Comment 12 far jump 2006-07-01 14:58:56 UTC
for system info see: emerge --info at top of this bug report

emerge kbproto - success
emerge libX11  - failed

XKBExtDev.c:39:31: X11/extensions/XI.h: No such file or directory
XKBExtDev.c: In function `_InitLedStuff':
XKBExtDev.c:445: error: `KbdFeedbackClass' undeclared (first use in this function)
.
.
.
XKBExtDev.c:555: error: `LedFeedbackClass' undeclared (first use in this function)
make[3]: *** [XKBExtDev.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/libX11-1.0.1-r1/work/libX11-1.0.1/src/xkb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libX11-1.0.1-r1/work/libX11-1.0.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/libX11-1.0.1-r1/work/libX11-1.0.1/src'
make: *** [all-recursive] Error 1

!!! ERROR: x11-libs/libX11-1.0.1-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called x-modular_src_compile
  x-modular.eclass, line 332:   Called x-modular_src_make
  x-modular.eclass, line 327:   Called die

Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 15:02:51 UTC
OK, that's inputproto.

emerge --info doesn't provide your filesystem ...
Comment 14 far jump 2006-07-01 15:14:54 UTC
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           5       40131   fd  Linux raid autodetect
/dev/sda2               6         255     2008125   fd  Linux raid autodetect
/dev/sda3             256       14593   115169985   fd  Linux raid autodetect

boot partion is ext2
data partion is reiserfs

Personalities : [raid1] 
md1 : active raid1 sdb2[1] sda2[0]
      2008000 blocks [2/2] [UU]
      
md2 : active raid1 sdb3[1] sda3[0]
      115169920 blocks [2/2] [UU]
      
md0 : active raid1 sdb1[1] sda1[0]
      40064 blocks [2/2] [UU]
      
unused devices: <none>


emerge inputproto - success
emerge libX11     - failed

ConnDis.c:41:23: X11/Xauth.h: No such file or directory
ConnDis.c:42:23: X11/Xdmcp.h: No such file or directory
if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I../include/X11    -I../include -I../include/X11 -I../include -I../include/X11 -I../src/xcms -I../src/xkb -I../src/xlibi18n -Wall -Wpointer-arith -Wstrict-prototypes      -Wmissing-prototypes -Wmissing-declarations   -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT         -DHASXDMAUTH -D_BSD_SOURCE -DX11_t -DTRANS_CLIENT -DMALLOC_0_RETURNS_NULL -O3 -march=pentium4 -fomit-frame-pointer -pipe -MT Context.lo -MD -MP -MF ".deps/Context.Tpo" -c -o Context.lo Context.c; \
then mv -f ".deps/Context.Tpo" ".deps/Context.Plo"; else rm -f ".deps/Context.Tpo"; exit 1; fi
ConnDis.c:716: warning: function declaration isn't a prototype
ConnDis.c: In function `GetAuthorization':
ConnDis.c:1023: error: `Xauth' undeclared (first use in this function)
ConnDis.c:1023: error: (Each undeclared identifier is reported only once
ConnDis.c:1023: error: for each function it appears in.)
ConnDis.c:1023: error: `authptr' undeclared (first use in this function)
Comment 15 Joshua Baergen (RETIRED) gentoo-dev 2006-07-01 15:18:39 UTC
(In reply to comment #14)
> ConnDis.c:41:23: X11/Xauth.h: No such file or directory
> ConnDis.c:42:23: X11/Xdmcp.h: No such file or directory

That's libXau and libXdmcp.  Emerge/Re-emerge these, but are they installed yet or not?
Comment 16 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 15:21:04 UTC
That's libXau and libXdmcp.
Comment 17 far jump 2006-07-01 15:24:31 UTC
Are you finding this as tedious as me?, can we not just re-emerge all relevant files?
Comment 18 far jump 2006-07-01 15:29:51 UTC
emerge libXau and libXdmcp - success
emerge libX11 - failed

Font.c:50:40: X11/extensions/xf86bigfstr.h: No such file or directory
Font.c: In function `_XF86BigfontCodes':
Comment 19 far jump 2006-07-01 15:42:48 UTC
That's libXau and libXdmcp.  Emerge/Re-emerge these, but are they installed yet
or not?

Sorry, I did not check to see if they were installed before I emerged them
Comment 20 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 16:22:25 UTC
(In reply to comment #18)
> emerge libXau and libXdmcp - success
> emerge libX11 - failed
> 
> Font.c:50:40: X11/extensions/xf86bigfstr.h: No such file or directory
> Font.c: In function `_XF86BigfontCodes':

Yes, it is tedious. You could do something like `emerge -ep libX11` but you'd get everything including your toolchain.

That one looks like x11-proto/xf86bigfontproto
Comment 21 far jump 2006-07-01 16:35:31 UTC
I think this is a good suggestion I am in the process of emerge -e libX11 ... give me about 20 mins
Comment 22 far jump 2006-07-01 18:04:45 UTC
ok x11-libs/libX11-1.0.1-r1 emerged successfully ... now what?
Comment 23 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 18:08:23 UTC
emerge xorg-x11 again.
Comment 24 far jump 2006-07-01 18:23:55 UTC
setxkbmap.c:37:36: X11/extensions/XKBfile.h: No such file or directory
setxkbmap.c:38:38: X11/extensions/XKBconfig.h: No such file or directory
setxkbmap.c:39:37: X11/extensions/XKBrules.h: No such file or directory

!!! ERROR: x11-apps/setxkbmap-1.0.2 failed.
Comment 25 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 19:10:31 UTC
That'll be kbproto.
Comment 26 far jump 2006-07-01 19:19:07 UTC
(In reply to comment #25)
> That'll be kbproto.
> are you kidding?  see comment #11 ... are just going to go around in a circle?
do you know what the problem is here? 

Comment 27 far jump 2006-07-01 19:21:18 UTC
emerge kbproto - successfully
emerge xorg-x11 - failed

same error!

setxkbmap.c:37:36: X11/extensions/XKBfile.h: No such file or directory
setxkbmap.c:38:38: X11/extensions/XKBconfig.h: No such file or directory
setxkbmap.c:39:37: X11/extensions/XKBrules.h: No such file or directory
Comment 28 far jump 2006-07-01 19:33:34 UTC
Created attachment 90659 [details]
Emerging (1 of 1) x11-proto/kbproto-1.0.2
Comment 29 Joshua Baergen (RETIRED) gentoo-dev 2006-07-02 21:00:31 UTC
Those are actually libxkbfile.

'emerge -e xorg-x11' would probably make this all go away.  I'm not sure what you did to your computer to put it in this state, but I think it's very angry ;D 
Comment 30 far jump 2006-07-02 23:05:51 UTC
> I'm not sure what you did to your computer to put it in this state, 
> but I think it's very angry ;D 
I have only done what I was advised to do by you'all

checking for library containing glXGetProcAddressARB... no
configure: error: cannot find GL library - make sure Mesa or other OpenGL package is installed
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/xdriinfo-1.0.1/work/xdriinfo-1.0.1/config.log

!!! ERROR: x11-apps/xdriinfo-1.0.1 failed.


Comment 31 far jump 2006-07-02 23:06:30 UTC
Created attachment 90742 [details]
config.log
Comment 32 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-03 00:10:52 UTC
It's possible for an upgrade-downgrade-upgrade from monolith to modular cycle to cause this problem. Monolith would overwrite modular files on downgrade, then delete them upon uninstallation.
Comment 33 far jump 2006-07-03 05:13:03 UTC
(In reply to comment #32)
> It's possible for an upgrade-downgrade-upgrade from monolith to modular cycle ..

Isn't that exactly what Gentoo portage was designed to prevent?
Comment 34 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-03 12:05:44 UTC
Actually it's a bug that couldn't possibly happen if portage didn't exist, since it removes the files that got overwritten. =)
Comment 35 far jump 2006-07-05 06:26:52 UTC
(In reply to comment #34)
> Actually it's a bug that couldn't possibly happen if portage didn't exist,
> since it removes the files that got overwritten. =)
So what's the solution to this problem?  The GUI is broken and the system system is unusable except from the command line.
Comment 36 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-05 09:01:56 UTC
(In reply to comment #35)
> (In reply to comment #34)
> > Actually it's a bug that couldn't possibly happen if portage didn't exist,
> > since it removes the files that got overwritten. =)
> So what's the solution to this problem?  The GUI is broken and the system
> system is unusable except from the command line.

Actually the problem I mentioned doesn't appear to be the one you're having, since you've never been on modular until it hit stable. You're having the mysterious problem of files not getting installed that I'm guessing is either a bad portage or filesystem bug.

Josh mentioned a solution in comment #29.
Comment 37 far jump 2006-07-05 11:58:33 UTC
(In reply to comment #36)
> Josh mentioned a solution in comment #29.
and if you will look at comment #30 you will see that, that did NOT work! 

Comment 38 Joshua Baergen (RETIRED) gentoo-dev 2006-07-05 18:28:59 UTC
This was following an 'emerge -e xorg-x11', correct?  I'm confused as to what is dragging xdriinfo in.  'emerge -ep xorg-x11 | grep xdriinfo' gives no output on my system.
Comment 39 far jump 2006-07-05 19:18:08 UTC
(In reply to comment #38)
> This was following an 'emerge -e xorg-x11', correct?
Yes, here is what happens on my system:

[ebuild  N    ] x11-apps/xdriinfo-1.0.1  USE="-debug"

>I'm confused as to what is dragging xdriinfo in.
You're confused ... I'm so lost, being confused would be a step up.
Comment 40 far jump 2006-07-05 19:22:57 UTC
Created attachment 91018 [details]
emerge -ep xorg-x11
Comment 41 Joshua Baergen (RETIRED) gentoo-dev 2006-07-06 18:56:39 UTC
You should set some VIDEO_CARDS to avoid all that extra baggage.

Attach 'emerge -etpv xorg-x11' before you do, though.
Comment 42 far jump 2006-07-06 20:43:03 UTC
Created attachment 91088 [details]
emerge -etpv xorg-x11
Comment 43 Joshua Baergen (RETIRED) gentoo-dev 2006-07-16 10:16:38 UTC
The xdriinfo problem should be fixed now.  'emerge -e xorg-x11' should fix everything.
Comment 44 far jump 2006-07-16 14:44:05 UTC
../Xm/XmStrDefs.h:1373: warning: array '_XmStrings' assumed to have one element
../Xm/XmStrDefs22.h:311: warning: array '_XmStrings22' assumed to have one element
../Xm/Xm.h:107: warning: array '_XmSDEFAULT_FONT' assumed to have one element
../Xm/Xm.h:108: warning: array '_XmSDEFAULT_BACKGROUND' assumed to have one element
{standard input}: Assembler messages:
{standard input}:72: Warning: size of "operation" is already 1; not changing to 4
make[3]: *** [XmStrDefs.lo] Error 1

!!! ERROR: x11-libs/openmotif-2.2.3-r9 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  openmotif-2.2.3-r9.ebuild, line 84:   Called die
Comment 45 Joshua Baergen (RETIRED) gentoo-dev 2006-07-19 18:48:06 UTC
Try emerging with USE="-motif".  You can use 'emerge --skipfirst' to skip this package for now, or do the full 'USE="-motif" emerge -e xorg-x11' if you must.
Comment 46 far jump 2006-07-20 06:07:55 UTC
greet.c:50:37: X11/extensions/Xinerama.h: No such file or directory
Login.c:65:37: X11/extensions/Xinerama.h: No such file or directory
Login.c: In function `Initialize':
.
[snip]
.
make[2]: *** [greet.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Login.lo] Error 1

!!! ERROR: x11-apps/xdm-1.0.5 failed.
Comment 47 Joshua Baergen (RETIRED) gentoo-dev 2006-07-23 11:20:01 UTC
That's x11-proto/xineramaproto, and a bug in the ebuild.  I just fixed it in CVS.
Comment 48 far jump 2006-07-24 15:44:12 UTC
i686-pc-linux-gnu-gcc: /usr/lib/libXinerama.so: No such file or directory
make[2]: *** [libXdmGreet.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/xdm-1.0.5/work/xdm-1.0.5/greeter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xdm-1.0.5/work/xdm-1.0.5'
make: *** [all] Error 2

!!! ERROR: x11-apps/xdm-1.0.5 failed.
Comment 49 Joshua Baergen (RETIRED) gentoo-dev 2006-07-25 18:58:33 UTC
Fixed in CVS.  That's libXinerama if you want to emerge and continue.
Comment 50 far jump 2006-07-26 07:31:57 UTC
While Emerging x11-base/xorg-server-1.0.2-r7 to /
It aborted because it could not write to:
/usr/share/X11/xkb/compiled (which is linked to -> /var/lib/xkb)

I found that /var/lib/xkb indeed, did not exist, so I created it and resumed the emerge ... success at last! :o)

x11-base/xorg-x11 7.0-r1 has been successfully emerged