Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298352 - x11-drivers/xf86-video-openchrome-0.2.904 fails to build against x11-libs/libdrm-2.4.17
Summary: x11-drivers/xf86-video-openchrome-0.2.904 fails to build against x11-libs/lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jeroen Roovers (RETIRED)
URL: http://www.openchrome.org/trac/ticket...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: 308521
  Show dependency tree
 
Reported: 2009-12-25 17:15 UTC by Marco Clocchiatti
Modified: 2010-04-23 14:05 UTC (History)
9 users (show)

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


Attachments
emerge --info + ebuild log + ebuild envinronment (xf86-video-openchrome.tar.bz2,33.83 KB, application/octet-stream)
2009-12-25 17:16 UTC, Marco Clocchiatti
Details
xf86-video-openchrome-0.2.904-libdrm-header-include.patch (xf86-video-openchrome-0.2.904-libdrm-header-include.patch,270 bytes, patch)
2010-03-17 22:52 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff
Build log, patch fails (the one in the tree, that is) (20100321-234115.log,2.32 KB, text/plain)
2010-03-21 23:45 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Clocchiatti 2009-12-25 17:15:13 UTC
as in summary:
x11-drivers/xf86-video-openchrome-0.2.904 fails to build against x11-libs/libdrm-1.4.17

Reproducible: Always

Steps to Reproduce:
Comment 1 Marco Clocchiatti 2009-12-25 17:16:26 UTC
Created attachment 214146 [details]
emerge --info + ebuild log + ebuild envinronment
Comment 2 linuxknow 2010-02-09 14:48:29 UTC
(In reply to comment #0)
> as in summary:
> x11-drivers/xf86-video-openchrome-0.2.904 fails to build against
> x11-libs/libdrm-1.4.17
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 

vim /etc/portage/packages.mask

and paste this line

>=x11-libs/libdrm-2.4.17
>=media-libs/mesa-7.7-r1

now 

emerge x11-drivers/xf86-video-openchrome

that's all. this error "via_drm.h"
Comment 3 linuxknow 2010-02-09 14:50:51 UTC
openchrome it's different of git repo unichrome and svn trunk openchrome official site. it's more stable of the gentoo repo.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-09 00:27:57 UTC
I'm having all kinds of trouble building r839 and r840 on a stable system, so this cannot as yet be fixed by putting a snapshot ebuild in the tree.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-03-17 22:52:08 UTC
Created attachment 224063 [details, diff]
xf86-video-openchrome-0.2.904-libdrm-header-include.patch

Horribly ugly workaround to make xf86-video-openchrome-0.2.904 build against newer libdrm.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-03-21 16:53:47 UTC
Fixed in xf86-video-openchrome-0.2.904-r1
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-21 21:45:22 UTC
(In reply to comment #5)
> Created an attachment (id=224063) [details]
> xf86-video-openchrome-0.2.904-libdrm-header-include.patch
> 
> Horribly ugly workaround to make xf86-video-openchrome-0.2.904 build against
> newer libdrm.

Um, is that the same horrible ugly workaround you've just put in -r1?
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-21 23:39:15 UTC
RSVP
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-21 23:45:14 UTC
Created attachment 224603 [details]
Build log, patch fails (the one in the tree, that is)
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2010-03-21 23:55:18 UTC
No need to CC X11 team members when whole alias is added.
Anyway looks like messup if it does not apply. For now someone revert the commit i supose (i cant do such magic from windows :])
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-22 00:03:31 UTC
I have removed the broken -r1 from the tree. I am still looking to put a recent snapshot in the tree.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-22 00:04:51 UTC
(In reply to comment #10)
> No need to CC X11 team members when whole alias is added.

It hardly matters - bugzilla filters that nicely. It does tell me that chithanh probably thought he could touch it without review...
Comment 13 Mart Raudsepp gentoo-dev 2010-03-22 00:25:10 UTC
I suggest fixing libdrm instead.

If a DRM header is using uint32_t, then it must also include stdint.h, not all users of that header:

/usr/include/drm/drm_mode.h:311: error: expected specifier-qualifier-list before ‘uint32_t’
Comment 14 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-03-22 00:29:30 UTC
Sorry about that, I made a mistake and committed the wrong patch.

But I have tried to contact you on IRC for several days to get your opinion.

Patch against libdrm exists in fdo bugzilla
https://bugs.freedesktop.org/show_bug.cgi?id=26994
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-22 03:02:43 UTC
I have put 0.2.904_p841 in the tree. Please try that and reopen this bug report if you still see this very same build issue (it should be fine with both the current stable and the future stable target).
Comment 16 PetaMem R&D 2010-04-22 05:49:07 UTC
I'm still seeing this with  x11-drivers/xf86-video-openchrome-0.2.904_p841

.libs/via_3d.o: In function `viaInit3DState':
/keeps/gentoo/svn/openchrome/src/via_3d.c:585: undefined reference to `ErrorF'
.libs/via_3d.o: In function `viaSet3DTexture':
/keeps/gentoo/svn/openchrome/src/via_3d.c:188: undefined reference to `ErrorF'
collect2: ld returned 1 exit status

# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.10.1-r0, 2.6.33-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1
Timestamp of tree: Tue, 20 Apr 2010 20:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 1.3.7, 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.2, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="cs_CZ.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit 7zip X a52 aac aalib ace acpi alsa amarok amd amd64 arts audio bash-completion bdf bitmap-fonts bzip2 cairo cdparanoia cdr cdrom cjk colordiff css curl dbus divx dri dvd dvdr dvdread dvi emacs encode enscript epydoc exceptions exif faillog fat fbsplash ffmpeg firefox flash fontconfig ftp gif gnutls gtk hal id3 java javascript jpeg jpeg2k kde lame log4j logrotate mime mp2 mp3 mp4 mpeg mpeg2 mplayer multilib nls ogg opengl openssh pango pcf pdf png python qt3support quicktime rar realmedia sound sql sqlite sse sse2 ssl subversion svg syslog tidy tiff tk truetype truetype-fonts type1 type1-fonts unicode unzip usb utils vcd video vnc vncviewer vorbis webdav webkit wma xcb xine xml xorg xsl xslt xterm xv zip" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="via vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 17 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-22 07:35:01 UTC
(In reply to comment #16)
> I'm still seeing this with  x11-drivers/xf86-video-openchrome-0.2.904_p841
> 
> .libs/via_3d.o: In function `viaInit3DState':
> /keeps/gentoo/svn/openchrome/src/via_3d.c:585: undefined reference to `ErrorF'

I don't think that issue is the same as the one discussed in this bug. Open a separate bug report.
Comment 18 PetaMem R&D 2010-04-22 09:53:29 UTC
Well, it's exactly the same bug as described in 

http://forums.gentoo.org/viewtopic-t-821360-start-0.html

and for me, it's simply not fixed. Pasting more history:

libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/via_3d.o .libs/via_accel.o .libs/via_bandwidth.o .libs/via_ch7xxx.o .libs/via_cursor.o .libs/via_crtc.o .libs/via_dga.o .libs/via_display.o .libs/via_driver.o .libs/via_i2c.o .libs/via_id.o .libs/via_lvds.o .libs/via_memcpy.o .libs/via_memory.o .libs/via_mode.o .libs/via_panel.o .libs/via_shadow.o .libs/via_swov.o .libs/via_timing.o .libs/via_vbe.o .libs/via_vgahw.o .libs/via_video.o .libs/via_vt162x.o .libs/via_dri.o .libs/via_xvmc.o    -march=k8 -Wl,-O1 -Wl,-z -Wl,lazy   -Wl,-soname -Wl,openchrome_drv.so -o .libs/openchrome_drv.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/via_3d.o' is incompatible with i386:x86-64 output
.libs/via_3d.o: In function `viaInit3DState':
/keeps/gentoo/svn/openchrome/src/via_3d.c:585: undefined reference to `ErrorF'
.libs/via_3d.o: In function `viaSet3DTexture':
/keeps/gentoo/svn/openchrome/src/via_3d.c:188: undefined reference to `ErrorF'
collect2: ld returned 1 exit status
Comment 19 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-22 12:14:17 UTC
The build failure described in that forum post is apparently not related to this bug.
Comment 20 Peter Volkov (RETIRED) gentoo-dev 2010-04-23 14:05:00 UTC
Chí-Thanh, bug 316809 filled.