Bug 142141

Summary: Ati modules havent been build correctly.
Product: [openSUSE] SUSE Linux 10.1 Reporter: Joop Boonen <joop.boonen>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 4   
Target Milestone: ---   
Hardware: x86   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Correct and incorrect spec file

Description Joop Boonen 2006-01-09 19:22:02 UTC
I've just tried to build the rpm package for SuSE 10.1 alpha 4. I't doesn't ork due to a few problems.

1) The spec file is wrongly created with the wrong tag:
linux:/home/jboonen/MyDownloads/SuSE # rpmbuild -bb --root /tmp/fglrx --target i
386 /tmp/fglrx.spec
Building target platforms: i386
Building for target i386
error: Legacy syntax is unsupported: copyright
error: line 9: Unknown tag: Copyright: ATI Technologies Inc.
linux:/home/jboonen/MyDownloads/SuSE #

See this link:
http://www.redhat.com/archives/rpm-list/2005-February/msg00050.html

So the file should be as follows:
linux:/home/jboonen/MyDownloads/SuSE # diff /tmp/fglrx.spec /tmp/fglrx.spec.lice
nse
9c9
< Copyright: ATI Technologies Inc.
---
> License: ATI Technologies Inc.
linux:/home/jboonen/MyDownloads/SuSE #

Then whn i want to install the rpm package i get the following error:
linux:/home/jboonen/MyDownloads/SuSE # rpm -Uhv /usr/src/packages/RPMS/i386/fglrx_6_9_0_SUSE101-8.20.8-1.i386.rpm
Preparing...                ########################################### [100%]
   1:fglrx_6_9_0_SUSE101    ########################################### [100%]
/usr/src/kernel-modules/fglrx /
make: Entering directory `/usr/src/linux-2.6.15-rc6-git2-2-obj/i386/smp'
make -C ../../../linux-2.6.15-rc6-git2-2 O=../linux-2.6.15-rc6-git2-2-obj/i386/smp
  LD      /usr/src/kernel-modules/fglrx/built-in.o
  CC [M]  /usr/src/kernel-modules/fglrx/agp3.o
In file included from include2/asm/mpspec.h:5,
                 from include2/asm/smp.h:18,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/smp.h:19,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/sched.h:26,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/module.h:10,
                 from /usr/src/kernel-modules/fglrx/agp3.c:65:
include2/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[5u]’
  CC [M]  /usr/src/kernel-modules/fglrx/nvidia-agp.o
In file included from include2/asm/mpspec.h:5,
                 from include2/asm/smp.h:18,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/smp.h:19,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/sched.h:26,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/module.h:10,
                 from /usr/src/kernel-modules/fglrx/nvidia-agp.c:14:
include2/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[5u]’
  CC [M]  /usr/src/kernel-modules/fglrx/agpgart_be.o
In file included from include2/asm/mpspec.h:5,
                 from include2/asm/smp.h:18,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/smp.h:19,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/sched.h:26,
                 from /usr/src/linux-2.6.15-rc6-git2-2/include/linux/module.h:10,
                 from /usr/src/kernel-modules/fglrx/agpgart_be.c:105:
include2/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[5u]’
/usr/src/kernel-modules/fglrx/agpgart_be.c: In function ‘__fgl_agp_init’:
/usr/src/kernel-modules/fglrx/agpgart_be.c:8173: error: implicit declaration of function ‘pm_register’
/usr/src/kernel-modules/fglrx/agpgart_be.c: In function ‘__fgl_agp_cleanup’:
/usr/src/kernel-modules/fglrx/agpgart_be.c:8183: error: implicit declaration of function ‘pm_unregister_all’
make[3]: *** [/usr/src/kernel-modules/fglrx/agpgart_be.o] Error 1
make[2]: *** [_module_/usr/src/kernel-modules/fglrx] Error 2
make[1]: *** [_all] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-2.6.15-rc6-git2-2-obj/i386/smp'

******************************
Build of kernel module failed!
******************************


**************************************************************
Building/installation of fglrx kernel module failed! Try again
by calling "/usr/X11R6/bin/fglrx-kernel-build.sh" manually.
**************************************************************


*************************************************************
Please read "/usr/share/doc/packages/fglrx/README.SuSE" for
configuration details when using SaX2.
*************************************************************

linux:/home/jboonen/MyDownloads/SuSE #

This is due to a combination with kernel 2.6.15 i couldn't solve this.
Comment 1 Joop Boonen 2006-01-09 19:22:46 UTC
Created attachment 62479 [details]
Correct and incorrect spec file
Comment 2 Stefan Dirsch 2006-01-09 23:31:06 UTC
Both problems will be fixed with the next ATI driver release.