From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Jackson Subject: Re: [BUG] intel_drv.so fails to load Date: Wed, 18 Jul 2012 15:34:50 -0400 Message-ID: <1342640090.3590.61.camel@atropine> References: <5005C642.6030102@t-online.de> <1342556238_9775@CP5-2952> <1342557713_9832@CP5-2952> <5005D10E.4080101@t-online.de> <1342559830_9900@CP5-2952> <1342620128.3590.13.camel@atropine> <1342620454_12433@CP5-2952> <1342621766.3590.29.camel@atropine> <5006FAA2.2090803@t-online.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0996791482==" Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AEF79EB47 for ; Wed, 18 Jul 2012 12:34:59 -0700 (PDT) In-Reply-To: <5006FAA2.2090803@t-online.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Knut Petersen Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org --===============0996791482== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-KOJPpbOoLD0ptWz084kW" --=-KOJPpbOoLD0ptWz084kW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2012-07-18 at 20:04 +0200, Knut Petersen wrote: > Ok, I built caef63e0268e59e439b030a9a338e81d5cf8e311 using >=20 > export MYROOT=3D/home/knut/git/X11-t > export PREFIX=3D$MYROOT/usr > export EPREFIX=3D$PREFIX > export PKG_CONFIG_PATH=3D$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig > export PATH=3D$PREFIX/bin:$PATH > export ACLOCAL=3D"aclocal -I $PREFIX/share/aclocal" > export LD_LIBRARY_PATH=3D$PREFIX/lib > export PYTHONPATH=3D$PREFIX/lib/python2.7/site-packages > export MAKEFLAGS=3D"-j 15" > export GMAKEFLAGS=3D"-j 15" > export CC=3D/opt/icecream/bin/gcc > export CXX=3D/opt/icecream/bin/g++ > export CFLAGS=3D"-g2 -O3 --verbose -D MULTITOUCH" > export CXXFLAGS=3D"-g2 -O3 " > export LD_PRELOAD=3D$PREFIX/lib/libmtdev.so > util/modular/build.sh -g $PREFIX -o driver/xf86-video-intel --confflags "= --disable-xaa --localstatedir=3D$MYROOT/var" >=20 > and got the following log entries: >=20 > [107706.682] (II) LoadModule: "intel" > [107706.682] (II) Loading /home/knut/git/X11-t/usr/lib/xorg/modules/drive= rs/intel_drv.so > [107706.700] (EE) Failed to load /home/knut/git/X11-t/usr/lib/xorg/module= s/drivers/intel_drv.so: /home/knut/git/X11-t/usr/lib/xorg/modules/drivers/i= ntel_drv.so: undefined symbol: XAAGetPatternROP > [107706.700] (II) UnloadModule: "intel" > [107706.700] (II) Unloading intel > [107706.700] (EE) Failed to load module "intel" (loader failed, 7) > [107706.700] (EE) No drivers available. > [107706.709] > Fatal server error: > [107706.709] no screens found >=20 > Bad behaviour restored. So, one difference between the driver you built and the driver in factory: http://download.opensuse.org/pub/opensuse/factory/repo/oss/suse/i586/xf86-v= ideo-intel-2.20.0-1.1.i586.rpm Is that yours has this, and theirs doesn't: hate:~% eu-readelf -a intel_drv.so | grep TEXTREL TEXTREL =20 FLAGS TEXTREL This suggests that you managed to build the X driver without -fPIC, and eu-findtextrel(1) agrees. This would cause the problem if text relocations are also not lazy, and I believe that to be the case. [1] To verify this assumption you could just jam -fPIC into CFLAGS and see if the result works, but that's just papering over the bug, not necessarily a fix. I have no idea _how_ you managed to build it that way though. I would start by inspecting config.log and libtool from the build tree, or by pointing $CC at real local gcc instead of icecream. [1] - This, I think, is more artifact of implementation rather than something done of necessity, but since textrels in DSOs are an i686ism as far as Linux is concerned - and generally frowned upon even there - it would be a lot of typing for little benefit. - ajax --=-KOJPpbOoLD0ptWz084kW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlAHD9oACgkQW4otUKDs0NOMiwCePRNJj68GW2JCL4ZnRdhTNWav RX4AoJm117L09RrWlQeo4YZRRaZ3rRZQ =D783 -----END PGP SIGNATURE----- --=-KOJPpbOoLD0ptWz084kW-- --===============0996791482== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0996791482==--