LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-29-2009, 06:06 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Compiling a package from ubuntu in Debian


So, I have a package from Ubuntu's Hardy which has the graphics driver for my chipset. Currently Debian does not have this package.

Now I took the compiled binary (*.deb) from above link and install on my Debian Lenny system:
Code:
dpkg -i xserver-xorg-video-psb
The package installed fine without complaining anything.

However when I try to launch my X server I get the following error message:
Code:
(II) Module Intel Poulsbo: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 0.0.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 1.2
(EE) module ABI major version (1) doesn't match the server's version (2)
(II) UnloadModule: "psb"
(II) Unloading /usr/lib/xorg/modules/drivers//psb_drv.so
(EE) Failed to load module "psb" (module requirement mismatch, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
compiled for 1.4.0.90, module version = 1.3.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.0
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
compiled for 1.4.0.90, module version = 1.3.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.0
(EE) No drivers available.
So I guess my problem is in Red color. So it looks like the Xorg module in Ubuntu was compiled with a different X server version.

Is there any way I can use the Xorg driver sources from Ubuntu and compile them on my Debian Lenny so that it will work fine?
 
Old 06-29-2009, 06:13 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can tell X to ignore version mismatches and see if it works. I'd tell you how, but I've the process. It's a setting in xorg.conf though.
 
Old 06-29-2009, 06:19 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by AlucardZero View Post
You can tell X to ignore version mismatches and see if it works. I'd tell you how, but I've the process. It's a setting in xorg.conf though.

Hmm..never knew there was a setting in xorg.conf to tell X to ignore the version. So you know that there is a setting in xorg.conf but you don't recollect it - is that right?

Thank you for your reply.
 
Old 06-29-2009, 07:53 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Oops, missed a word. Yes, and I remembered the option.

Quote:
Option IgnoreABI boolean
Allow modules built for a different, potentially incompatible version of the X server to load. Disabled by default.
No guarentees it works, of course. But it's the only way I got sane output from my old POS Matrox card back when I was stuck with it, and it can't hurt you to try it (as long as you're comfortable on the ttys editing it out )

Last edited by AlucardZero; 06-29-2009 at 07:55 PM.
 
Old 06-30-2009, 02:25 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by AlucardZero View Post
Oops, missed a word. Yes, and I remembered the option.



No guarentees it works, of course. But it's the only way I got sane output from my old POS Matrox card back when I was stuck with it, and it can't hurt you to try it (as long as you're comfortable on the ttys editing it out )
Thanks you very much. Yes, the workaround managed to get me past that error message but unfortunately I wasn't able to get my Xorg up and running.
 
Old 06-30-2009, 03:10 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Maybe you could grab the source package from Ubuntu for that driver then compile it on your system, against the version of Xorg you are running.. .....
 
Old 06-30-2009, 04:00 PM   #7
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by farslayer View Post
Maybe you could grab the source package from Ubuntu for that driver then compile it on your system, against the version of Xorg you are running.. .....
I tried doing that but the compiling process gives me error message after some time. Would it help if I post the error messages?


There must be a way by which one can port a package from Ubuntu to Debian just like the Debian backports???
 
Old 06-30-2009, 04:43 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes, the error would be needed.
 
Old 06-30-2009, 05:29 PM   #9
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
UPDATE: See my next post.

Quote:
Originally Posted by AlucardZero View Post
Yes, the error would be needed.
So here is what I did:
Code:
1. Added Hardy repo into my sources.list file

2. apt-get source xserver-xorg-video-psb

3. apt-get build-dep xserver-xorg-video-psb

4. cd xserver-xorg-video-psb-0.2.1/

5. dpkg-buildpackage -rfakeroot -uc -b

and this is the error message that I get after 10 seconds or so:
Code:
make[3]: Entering directory `/root/xserver-xorg-video-psb-0.2.1/libmm'
if /bin/sh ../libtool --tag=CC --mode=compile i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../libdrm -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm -I/usr/include/X11/dri   -Wall -g -O2 -MT mm_core.lo -MD -MP -MF ".deps/mm_core.Tpo" -c -o mm_core.lo mm_core.c; \
        then mv -f ".deps/mm_core.Tpo" ".deps/mm_core.Plo"; else rm -f ".deps/mm_core.Tpo"; exit 1; fi
mkdir .libs
 i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libdrm -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -Wall -g -O2 -MT mm_core.lo -MD -MP -MF .deps/mm_core.Tpo -c mm_core.c  -fPIC -DPIC -o .libs/mm_core.o
mm_core.c: In function 'mm_put_block':
mm_core.c:151: warning: unused variable 'kill_block'
if /bin/sh ../libtool --tag=CC --mode=compile i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../libdrm -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm -I/usr/include/X11/dri   -Wall -g -O2 -MT mm_user.lo -MD -MP -MF ".deps/mm_user.Tpo" -c -o mm_user.lo mm_user.c; \
        then mv -f ".deps/mm_user.Tpo" ".deps/mm_user.Plo"; else rm -f ".deps/mm_user.Tpo"; exit 1; fi
 i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libdrm -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -Wall -g -O2 -MT mm_user.lo -MD -MP -MF .deps/mm_user.Tpo -c mm_user.c  -fPIC -DPIC -o .libs/mm_user.o
In file included from ../libdrm/xf86mm.h:32,
                 from mm_interface.h:37,
                 from mm_user.c:29:
/usr/include/drm/drm.h:567: error: expected specifier-qualifier-list before 'uint32_t'
In file included from mm_interface.h:37,
                 from mm_user.c:29:
../libdrm/xf86mm.h:108: error: expected specifier-qualifier-list before 'drm_bo_type_t'
../libdrm/xf86mm.h:130: error: expected specifier-qualifier-list before 'drm_bo_arg_t'
../libdrm/xf86mm.h:181: error: expected declaration specifiers or '...' before 'drm_bo_type_t'
mm_user.c: In function 'mmFenceSignal':
mm_user.c:94: error: 'DRM_FENCE_TYPE_EXE' undeclared (first use in this function)
mm_user.c:94: error: (Each undeclared identifier is reported only once
mm_user.c:94: error: for each function it appears in.)
mm_user.c:112: warning: implicit declaration of function 'mmListEmpty'
mm_user.c: In function 'fenceCreate':
mm_user.c:200: error: 'DRM_FENCE_FLAG_EMIT' undeclared (first use in this function)
mm_user.c: In function 'fenceFlush':
mm_user.c:232: error: 'DRM_FENCE_TYPE_EXE' undeclared (first use in this function)
mm_user.c: In function 'fenceSignaled':
mm_user.c:261: warning: implicit declaration of function 'flushFence'
mm_user.c:259: warning: unused variable 'fc'
mm_user.c: In function 'fenceWait':
mm_user.c:273: error: 'DRM_FENCE_FLAG_WAIT_LAZY' undeclared (first use in this function)
mm_user.c:274: warning: implicit declaration of function 'usleep'
mm_user.c:276: warning: implicit declaration of function 'sched_yield'
mm_user.c:270: warning: unused variable 'fc'
make[3]: *** [mm_user.lo] Error 1
make[3]: Leaving directory `/root/xserver-xorg-video-psb-0.2.1/libmm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/xserver-xorg-video-psb-0.2.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/xserver-xorg-video-psb-0.2.1'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Looks like something in the DRM library is not defined. All I know is that Xorg driver (psb) requires a DRM kernel component to work upon.

Any ideas?

Last edited by kushalkoolwal; 06-30-2009 at 06:35 PM.
 
Old 06-30-2009, 06:30 PM   #10
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
I was able to go a bit further and was able to resolved at least the above error message. Now I am getting another error right at the very end of the build process:

Code:
make[2]: Leaving directory `/root/xserver-xorg-video-psb-0.2.1'
make[1]: Leaving directory `/root/xserver-xorg-video-psb-0.2.1'
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${xviddriver:Provides}
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${xviddriver:Provides}
dh_md5sums
dh_builddeb
warning, `debian/xserver-xorg-video-psb/DEBIAN/control' contains user-defined field `Original-Maintainer'
dpkg-deb: ignoring 1 warnings about the control file(s)
dpkg-deb: building package `xserver-xorg-video-psb' in `../xserver-xorg-video-psb_0.2.1-1ubuntu3_i386.deb'.
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_install --sourcedir=/root/xserver-xorg-video-psb-0.2.1/debian/tmp --list-missing --exclude=.la --exclude=usr/share/man/man4
dh_installman
dh_link
dh_strip --dbg-package=xserver-xorg-video-psb-dbg
dh_strip: debug package xserver-xorg-video-psb-dbg is not listed in the control file
make: *** [binary-arch] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -d -us -uc failed
debian:~/xserver-xorg-video-psb-0.2.1#
Looks like I am very close.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a Debian Package in Ubuntu 8.04 flouran Linux - Software 1 11-29-2008 07:42 AM
Using Ubuntu Xorg-amd package on Debian etc kushalkoolwal Debian 18 05-27-2007 08:53 PM
Ubuntu package in Debian repos craigevil Debian 1 11-14-2006 07:58 AM
Remove a ubuntu package in Debian Sarge gbratig Linux - Distributions 3 07-29-2006 08:04 AM
Compiling from cvs to debian package twinkers Debian 3 03-25-2006 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration