Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148379 - x11-libs/libX11-1.0.3 fails to compile
Summary: x11-libs/libX11-1.0.3 fails to compile
Status: RESOLVED INVALID
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-09-20 07:55 UTC by Niko Sams
Modified: 2006-10-09 08:19 UTC (History)
1 user (show)

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


Attachments
emerge-log (log,158.90 KB, text/plain)
2006-09-20 10:54 UTC, Niko Sams
Details
emerge-log gcc 3.4.6 (log,19.85 KB, text/plain)
2006-09-23 06:57 UTC, Niko Sams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Sams 2006-09-20 07:55:30 UTC
I was fallowing the gcc4-upgrade-guide, when doing
emerge -eav world

emerge stopped at libX11 with this error:
...
../../../src/xlibi18n/Ximint.h:873: error: expected ')' before 'im'
../../../src/xlibi18n/Ximint.h:884: error: storage class specified for parameter '_XimLocalFilter'
../../../src/xlibi18n/Ximint.h:886: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_XimGetResourceListRecByQuark'
../../../src/xlibi18n/Ximint.h:893: error: expected ')' before 'ic'
../../../src/xlibi18n/Ximint.h:898: error: expected declaration specifiers or '...' before 'XIMArg'
../../../src/xlibi18n/Ximint.h:899: error: storage class specified for parameter '_XimLocalSetICValues'
../../../src/xlibi18n/Ximint.h:903: error: expected declaration specifiers or '...' before 'XIMArg'
../../../src/xlibi18n/Ximint.h:904: error: storage class specified for parameter '_XimLocalGetICValues'
../../../src/xlibi18n/Ximint.h:913: error: storage class specified for parameter '_XimLocalMbLookupString'
../../../src/xlibi18n/Ximint.h:922: error: storage class specified for parameter '_XimLocalWcLookupString'
../../../src/xlibi18n/Ximint.h:931: error: storage class specified for parameter '_XimLocalUtf8LookupString'
../../../src/xlibi18n/Ximint.h:938: error: storage class specified for parameter '_XimThaiFilter'
../../../src/xlibi18n/Ximint.h:942: error: expected declaration specifiers or '...' before 'XIMArg'
../../../src/xlibi18n/Ximint.h:943: error: storage class specified for parameter '_XimThaiCreateIC'
../../../src/xlibi18n/Ximint.h:947: error: storage class specified for parameter '_XimThaiCloseIM'
../../../src/xlibi18n/Ximint.h:997: error: expected ')' before 'im'
../../../src/xlibi18n/Ximint.h:1005: error: expected ')' before 'ic'
imDefFlt.c:43: error: expected ')' before 'im'
imDefFlt.c:74: error: expected ')' before 'im'
imDefFlt.c:83: error: expected ')' before 'im'
imDefFlt.c:92: error: expected ')' before 'ic'
imDefFlt.c:111: error: expected ')' before 'ic'
imDefFlt.c:130: error: expected ')' before 'ic'
imDefFlt.c:143: error: expected ')' before 'ic'
imDefFlt.c:200: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
imDefFlt.c:206: error: expected ')' before 'ic'
imDefFlt.c:263: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
imDefFlt.c:269: error: expected ')' before 'ic'
imDefFlt.c:286: error: expected ')' before 'ic'
imDefFlt.c:303: error: expected ')' before 'ic'
imDefFlt.c:319: error: expected ')' before 'ic'
imDefFlt.c:335: error: expected ')' before 'ic'
imDefFlt.c:345: error: expected ')' before 'ic'
imDefFlt.c:354: error: expected ')' before 'ic'
imDefFlt.c:370: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
imDefFlt.c:388: error: expected ')' before 'im'
imDefFlt.c:407: error: expected ')' before 'im'
imDefFlt.c:419: error: old-style parameter declarations in prototyped function definition
../../../include/X11/Xlib.h:3571: error: parameter name omitted
imDefFlt.c:419: error: expected '{' at end of input
make[3]: *** [imDefFlt.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/libX11-1.0.3/work/libX11-1.0.3/modules/im/ximcp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libX11-1.0.3/work/libX11-1.0.3/modules/im'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libX11-1.0.3/work/libX11-1.0.3/modules'
make: *** [all-recursive] Error 1

!!! ERROR: x11-libs/libX11-1.0.3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called x-modular_src_compile
  x-modular.eclass, line 331:   Called x-modular_src_make
  x-modular.eclass, line 326:   Called die



my emerge --info:
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.5
Last Sync: Tue, 19 Sep 2006 18:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ "
LINGUAS="de"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts asf berkdb bitmap-fonts cdr cli crypt cups dlloader dri dvd eds elibc_glibc emboss encode esd exif foomaticdb fortran gdbm gif gpm gstreamer hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog javascript jpeg kde kernel_linux lcms libg++ libwww linguas_de mad mikmod mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly nvidia ogg opengl pam pcre perl png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl subversion tcpd truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs xinerama xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


please help,
niko
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-20 10:27:37 UTC
MAKEOPTS="-j1" emerge =x11-libs/libX11-1.0.3 &> log

Attach the log here and reopen.
Comment 2 Niko Sams 2006-09-20 10:54:21 UTC
Created attachment 97562 [details]
emerge-log

the requested log
Comment 3 Niko Sams 2006-09-20 10:55:32 UTC
reopend
Comment 4 Niko Sams 2006-09-22 11:28:49 UTC
how could i solve my problem?
would it help switch back to gcc3?

please help :D
thanks niko
Comment 5 Niko Sams 2006-09-23 06:57:32 UTC
Created attachment 97847 [details]
emerge-log gcc 3.4.6

i switched back gcc 3.4.6; when recompiling world libX11 failed again.
attached the emerge log for gcc 3.4.6
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2006-09-23 12:39:12 UTC
Hrm, looks like your headers are messed.  Maybe try re-merging linux-headers and glibc.

Plasmaroo, any other ideas?
Comment 7 Niko Sams 2006-09-24 11:54:59 UTC
re-emerging linux-headers and glibc didn't help

some other packages fail to emerge too - xorg-server, mesa - should i post any logs?
Comment 8 Niko Sams 2006-09-24 23:23:42 UTC
emerge xorg-server fails with this output:
if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include    -DHAVE_DIX_CONFIG_H  -DXFree86Server  -DXFree86LOADER -DHAVE_XKB_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT   -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -I../lbx   -O2 -march=pentium4 -pipe -MT ddxList.lo -MD -MP -MF ".deps/ddxList.Tpo" -c -o ddxList.lo ddxList.c; \
then mv -f ".deps/ddxList.Tpo" ".deps/ddxList.Plo"; else rm -f ".deps/ddxList.Tpo"; exit 1; fi
ddxLoad.c: In function `XkbDDXCompileNamedKeymap':
ddxLoad.c:246: error: `XkbBinDirectory' undeclared (first use in this function)
ddxLoad.c:246: error: (Each undeclared identifier is reported only once
ddxLoad.c:246: error: for each function it appears in.)
ddxLoad.c: In function `XkbDDXCompileKeymapByNames':
ddxLoad.c:345: error: `XkbBinDirectory' undeclared (first use in this function)
make[1]: *** [ddxLoad.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -DHAVE_XKB_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../lbx -O2 -march=pentium4 -pipe -MT ddxList.lo -MD -MP -MF .deps/ddxList.Tpo -c ddxList.c  -fPIC -DPIC -o .libs/ddxList.o
ddxList.c: In function `XkbDDXListComponent':
ddxList.c:179: error: `XkbBinDirectory' undeclared (first use in this function)
ddxList.c:179: error: (Each undeclared identifier is reported only once
ddxList.c:179: error: for each function it appears in.)
make[1]: *** [ddxList.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/xorg-server-1.0.2-r7/work/xorg-server-1.0.2/xkb'
make: *** [all-recursive] Error 1

i tried to re-emerge all xkb-stuff:
emerge --ask libxkbfile libxkbui xkbcomp setxkbmap
but that didn't help
Comment 9 Niko Sams 2006-09-25 22:15:13 UTC
I tried  
emerge --oneshot xproto
as suggested in Bug 127403

but emerge libX11 still fails with ../../../include/X11/Xlib.h:3573: error: syntax error before "_X_SENTINEL"
Comment 10 Niko Sams 2006-09-26 09:30:29 UTC
many other people allready had a problem with the _X_SENTINEL-macro:
http://hollaco.blogspot.com/2006/03/wine-compile-errors-xsentinel.html

although his solution didn't help:
emerge libX11
Ctrl+Z;
vi /var/tmp/portage/libX11-1.0.3/work/libX11-1.0.3/include/X11/Xlib.h
fg

the _X_SENTINEL-error is gone, i get this error now:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src -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 -DXIM_t -DTRANS_CLIENT -DMALLOC_0_RETURNS_NULL -O2 -march=pentium4 -pipe -MT imLcFlt.lo -MD -MP -MF .deps/imLcFlt.Tpo -c imLcFlt.c  -fPIC -DPIC -o .libs/imLcFlt.o
imLcFlt.c: In function `_XimLocalFilter':
imLcFlt.c:63: error: `XK_braille_dot_1' undeclared (first use in this function)
imLcFlt.c:63: error: (Each undeclared identifier is reported only once
imLcFlt.c:63: error: for each function it appears in.)
imLcFlt.c:63: error: `XK_braille_dot_8' undeclared (first use in this function)
gone

braille_dot? what is that??
Comment 11 Niko Sams 2006-09-26 09:33:36 UTC
sorry for the spam,
i found Bug 138757;
but i do have xproto 7.0.7 (and re-emerged it)
Comment 12 Niko Sams 2006-10-08 12:29:38 UTC
I did now reinstall my whole system, and after everything was working I ran into the same problem again - but this time I know whats the problem.

I guess it was caused by the installation of Xephyr in /usr/local like described here:
http://netpatia.blogspot.com/2006/09/multiseat-iv-evdev-and-xephyr.html

I removed the files from /usr/local and no problems anymore.

Can this be true?
If so, I'm sorry about the bugreport and much thanks for your time!

niko
Comment 13 Joshua Baergen (RETIRED) gentoo-dev 2006-10-09 08:19:17 UTC
Yeah, that was likely your problem. I've seen the same sort of behaviour from local installs of Xgl.

Glad you found the problem :)