Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239083 - !!! ERROR: x11-base/xorg-server-1.4.2 failed. / broken version-number
Summary: !!! ERROR: x11-base/xorg-server-1.4.2 failed. / broken version-number
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 241850
  Show dependency tree
 
Reported: 2008-09-29 20:10 UTC by saufnix
Modified: 2008-10-31 23:28 UTC (History)
1 user (show)

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


Attachments
Compressed file of all Log-Information I found (build-log.tar.gz,45.13 KB, application/x-gzip)
2008-09-30 03:18 UTC, saufnix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description saufnix 2008-09-29 20:10:39 UTC
Hi!

When I tried to emerge xorg-server I got the following, reproducible error:

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../Xprint DHAVE_DIX_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/usr/include/pixman-1 -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 "-DVENDOR_NAME=\"The X.Org Foundation\"" "-DVENDOR_RELEASE=(((1) * 10000000) + (() * 100000) + (() * 1000) + 0)" -O3 -march=pentium3 -pipe -D_GNU_SOURCE -MT main.lo -MD -MP -MF .deps/main.Tpo -c
main.c  -fPIC -DPIC -o .libs/main.o
main.c:511: error: parse error before ')' token
main.c:511: error: parse error before ')' token
make[2]: *** [main.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.4.2/work/xorg-server-1.4.2/dix'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.4.2/work/xorg-server-1.4.2/dix'

The real Problem occurs in the line "-DVENDOR_RELEASE=(((1) * 10000000) + (() * 100000) + (() * 1000) + 0)" where some version-numbers are missing.
I don't know how to patch it, because it seems to effect several makefiles.
Moreover I update automake, but it doesn't solve the problem.


My emerge --info results in:
Portage 2.1.2_rc3-r7 (default-linux/x86/2007.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15 i686)
=================================================================
System uname: 2.6.15 i686 Celeron (Coppermine)
Gentoo Base System version 1.6.14
Last Sync: Thu, 21 Aug 2008 16:30:01 +0000
app-shells/bash:     3.2_p9
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.11.14-r3
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10.1-r1sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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.gentoo.org/gentoo-portage"
USE="x86 a52 aac aim alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr amuled apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias berkdb bzip2 cgi cli cracklib crypt dri dts dv dvb dvd elibc_glibc encode enscript fastcgi fbcon ffmpeg fortran gencertdaily ggi gif gloox graphviz gs iconv icq imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc isdnlog jabber javascript jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lirc lirc_devices_serial lj logmail lua matrox mbrola mga midi mmx mmxext mplayer msn mudflap multiuser ncurses netjack network nls openmp pam pcre pdf perl php plotutils png pppd python readline reflection remote rss samba session smime smtp spl sse ssl stats svga svgalib tcpd theora tiff unicode userland_GNU utf8 v4l v4l2 vcd video4linux video4linux2 video_cards_apm video_cards_ark video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_r128 video_cards_radeon video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis webdav win32codecs xorg xvid yahoo zlib"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-29 21:42:52 UTC
Please attach the build log to this bug report.
Comment 2 saufnix 2008-09-30 03:18:33 UTC
Created attachment 166794 [details]
Compressed file of all Log-Information I found

Sorry, but there was no file called build.log, so I compressed all files from /var/tmp/portage/x11-base/xorg-server-1.4.2/temp
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-01 01:47:16 UTC
Build log != build.log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-01 01:50:03 UTC
Er, maybe it's time you ran `emerge -vuaDN world' to the bitter end. We cannot begin to support odd combinations of ancient versus modern versions.
Comment 5 saufnix 2008-10-07 13:16:28 UTC
`emerge -vuaDN world' would result in a complete system-update and is no option to me. But I could fix the Bug and I want notice this here in case somebody needs it:

In configure.ac at the first line VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)", $PVM and $PVP variables are missing.
The simple fix is, to add "PVM=4" and "PVP=2" before the VENDOR_RELEASE-line.
After that, "autgen.sh" must be execute, to re-create the "configure"-script.
With the new "configure"-script I could build xorg-server without any problems.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-14 06:19:40 UTC
Let's see...
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-10-14 07:00:24 UTC
x11:
I suggest depending on autoconf-2.62-r2 or newer.

saufnix:
jer is right, your system is too out of date. Specifically, your autoconf is too old. Upgrade it and the problem should vanish 

PVM and PVP are come from the definition of XORG_RELEASE_VERSION (xorg-server-1.4.2/aclocal.m4).

If you look at the autoconf-generated configure file ("configure" vs. "configure.ac"), it SHOULD look this like:
# Check whether --with-release-version was given.
...
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
...
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
...
PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
PVS=`echo $PACKAGE_VERSION | cut -d . -f 4`
...
VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
Comment 8 Clemens Fruhwirth 2008-10-14 14:29:28 UTC
None of the things mentioned above is the trouble source. An outdated util-macros package is.

The xorg-server ebuild reruns the whole autoconf toolchain. Before running autoreconf it runs aclocal. The aclocal.m4 file shipped in the xorg-server tar ball has a correct definition of XORG_RELEASE_VERSION (it defines PVM/PVP). However rerunning aclocal with an old util-macros package installed will replace this correct definition with an outdated one, lacking the definitions of PVM/PVP. The error we see comes from this XORG_RELEASE_VERSION being expanded into configure when autoconf runs later.

Solution: Make xorg-server depend on at least >x11-misc/util-macros-1.1.5.
Comment 9 Clemens Fruhwirth 2008-10-14 14:34:32 UTC
Err, I meant >=x11-misc/util-macros-1.1.5 of course. 1.1.6 is still ~keyworded.
Comment 10 Clemens Fruhwirth 2008-10-17 10:15:28 UTC
Btw, I just played around with paludis and noticed a different behaviour wrt outdated packages than portage. Paludis seemed to pull in the new version into the dependencies when it can't find the ebuild of the installed version in the portage tree. So practically this means, pulling obsolete versions from portage adds an implicit dependency on the next available version to all other packages that depend on that package directly or indirectly.

Using paludis would have not revealed that dependency bug here, so probably  portage should copy that behaviour. (Of course, bugs like this one here, still must be fixed until the new portage version becomes standard..)
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2008-10-29 13:07:08 UTC
As Clemens said, the issue is with x11-misc/util-macros. Update that package and xorg-server should be fine afterwards.

For the record, the PVP and PVM variables were introduced almost 2 years ago in version 1.1.3. If you don't want to update your box, that's your problem, not ours. The ebuilds we currently provide will work just fine without any changes.

Closing. Thanks
Comment 12 Clemens Fruhwirth 2008-10-31 23:28:36 UTC
Please see bug report 241850 why this way of handling packaging failures is nothing but unacceptable.