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

Compile error building for 2.6.13



Hi everyone, hope I'm getting this message to the right place.

I've been upgrading my kernel to 2.6.13, and so have been compiling
fglrx as described in Flavio's document. When it's come time to run
the dpkg-buildpackage line however, I've gotten stuck.

First there was the error with missing header files (the one where the
headers are libxxsomething instead of xlibs-static-dev), but this list
already had a solution that works.

But now I'm getting this compile errlr:

nigel at shinoda:/usr/src/fglrx-installer-8.16.20$ dpkg-buildpackage -b
-rfakeroot -uc -D
dpkg-buildpackage: source package is fglrx-installer
dpkg-buildpackage: source version is 8.16.20-1
dpkg-buildpackage: source changed by Flavio Stanchina <flavio at stanchina dot net>
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
dh_testdir
#dh_testroot
dh_clean
rm -fr usr opt lib etc
rm -fr extra_src
 debian/rules build
dh_testdir
rpm2cpio fglrx_4_3_0-8.16.20-1.i386.rpm | cpio -i -d -f
"./lib/modules/fglrx/fglrx.*.o" --no-preserve-owner
64907 blocks
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
  mkdir -p usr/share/doc/fglrx; \
  mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
fi
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
     usr/X11R6/lib \
     usr/share usr/src     -type f | xargs chmod -x
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib      -name "*.sh" -type f | xargs chmod +x
# extract panel source
mkdir -p extra_src/panel
tar xfzC usr/src/ATI/fglrx_panel_sources.tgz extra_src/panel
patch -d extra_src/panel -p1 -i
/usr/src/fglrx-installer-8.16.20/debian/patches-8.16.20/panel.diff
patching file ATITVOExtensions.c
patching file FGLRXExtensions.c
patching file Makefile
# build panel source
make -C extra_src/panel QTDIR=/usr/share/qt3
make[1]: Entering directory `/usr/src/fglrx-installer-8.16.20/extra_src/panel'
gcc -c -g -O2 -fno-strength-reduce -funsigned-char -Dlinux
-DFGLRX_USE_XEXTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL
-I/usr/X11R6/include -I. -I./include_dummy FGLRXExtensions.c
FGLRXExtensions.c: In function 'ExtGetDriverData':
FGLRXExtensions.c:184: warning: pointer targets in passing argument 2
of 'strcpy' differ in signedness
gcc -c -g -O2 -fno-strength-reduce -funsigned-char -Dlinux
-DFGLRX_USE_XEXTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL
-I/usr/X11R6/include -I. -I./include_dummy ATITVOExtensions.c
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*)'
/usr/share/qt3/include/qapplication.h:89: note: candidates are: static
void QApplication::setStyle(QStyle*)
/usr/share/qt3/include/qapplication.h:90: note:                 static
QStyle* QApplication::setStyle(const QString&)
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/usr/src/fglrx-installer-8.16.20/extra_src/panel'
make: *** [extra_src/panel/fireglcontrol] Error 2

main.cpp is in ./extra_src/panel/main.cpp. Line 31 is:

    QApplication::setStyle ( new QWindowsStyle ) ;

Though that may or may not be helpful.

Any ideas of why this would happen?

I'm actually compiling for 2.6.13.1 (although there's no major gfx
changes afaik), using the latest fglrx.
-- 
Regards,
Nigel McNie