[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for compile failures!



Try modinfo -p fglrx, it will dump amongst other things the vermagic for your kernel.  If they don't match your running kernel, you will get a load failure.  I think /proc/version and uname -a give you enough to compare against the vermagic.

My money would be on the default compiler being different than the compiler used on the kernel.

Regards...  Matthew

--
Blackberry-Sent
Matthew Tippett
Engineering Manager, Linux Software Engineering
ATI Technologies Inc.
Ph: +1 905 882 2600 x8014 Cell: +1 416 671 0673

-----Original Message-----
From: Marco Calviani <mirtux at studenti dot fisica dot unifi dot it>
CC: flavio-fglrx at stanchina dot net <flavio-fglrx at stanchina dot net>
Sent: Thu Sep 15 05:54:27 2005
Subject: Re: [fglrx] patch for compile failures!



Aaron M Dulles-Coelho wrote:

Running amd64 Debian sid, Qt 3.3

Ok, so I'm not the only one who got the compile errors with this data...

g++ -c  -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux
-DFGLRX_USE_XEXTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL
-I/usr/share/qt3/include -I. -I./include_dummy main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:31: error: expected type-specifier before 'QWindowsStyle'
main.cpp:31: error: expected `)' before 'QWindowsStyle'
main.cpp:31: error: no matching function for call to
'QApplication::setStyle(int*)'

But I figured out that if you just comment out that line 31 of 
main.cpp, the whole thing compiles without error and produces the deb 
packages. Rock.

In the source root, I replaced debian/patches-8.16.20/panel.diff with 
this newly created patch that does everything else and comments out 
the offending line.

NB: I'm still stuck trying to compile the module, so I haven't tested 
the actual module and seen the effects on the panel. I assume from 
what I've seen in Qt documentation that it simply won't set the Window 
Style to a Microsoft Windows style. That's ok by me, though!

--amdc

Thanks for your patch, now i'm able to compile the debs and also the 
modules. Unfortunately i'm getting this error whenever trying to 
modprobe the created module.

FATAL: Error inserting fglrx 
(/lib/modules/2.6.11.12-050714-vanilla/misc/fglrx.ko): Invalid module format

All the debs are installed and the compile process goes smoothly.

MC