PDA

View Full Version : 3D Prophet 3500 64 MB Driver install



gertdesmet
25th February 2004, 12:23 AM
Hi,

Its the first time i install a driver on a linux box and i could use some help.
I have a 3D Prophet 3500 64 MB video card which is not detected, i downloaded the driver for RedHat 9.0
but when i try to install it, it says kernel version is not correct. :(

I did :

rpm -Uvh powervr-2.01.21-7.rh90.i386.rpm
error: Failed dependencies:
kernel = 2.4.20-8 is needed by powervr-2.01.21-7

What Kernel version Fedora uses ?

Am i going to be able to install my video card ?

Thanks in advance for any support :)

Bana
25th February 2004, 04:14 AM
Are those the most recent drivers? Fedora C1 uses 2.4.22 kernel, so try to get newer drivers first. If not that then you could try (ugly:) doing a rpm -Uvh --nodeps power*

GL

gertdesmet
25th February 2004, 10:35 AM
Hi Bana and thanks for your reply,

I think i have downloaded the latest driver. I went on http://www.powervr.com/Downloads/Drivers/Index.asp as instructed on the Hercules Site.
It says :
**
Linux
Download the source as a RPM or TGZ file to build the drivers for your Linux distribution, by following the instructions in the README file. However, if you have trouble, we have made available some specific installers for specific distributions.

Linux kernel 2.6 introduced major structural changes to the way driver modules are built and loaded. As a result, existing KYRO drivers are not compatible with any Linux kernel whose version is 2.6 or above. To keep using KYRO drivers, users are requested to use the latest available 2.4 Linux kernel version. We have currently no plans of providing drivers supporting updated kernels.
**
So if i understand correctly, the kernel version used in Fedora should be fine for those drivers ?

If not i will try with --nodeps. But what does it do ?

THanks for the kind help. :)

gertdesmet
25th February 2004, 10:34 PM
Hello,

I tried with --nodeps but it fails in the process saying to read the readme file to continue the installation. I coulndt find any info about that in the file :(

Am i using the correct driver ? I am really confused about this kernel version.

Any other tips ?

Thanks in advance :)

Bana
26th February 2004, 03:35 AM
Hmm, that is odd, Perhaps it is the fact that it may be looking for the kernel of RH9 and be confused with Fedora or something.

Hmm... it seems here that you might want to try installing with the tar.gz file first as it says in the important install information:

If you are attempting to install on a RedHat 9.0 Linux system with a modified kernel you can install the powervr-2.01.21-7.tgz package by following the installation instructions under the "Non-rpm based system" heading in the Readme.
So I would try installing it that way (usually it is simply a tar xzf <package>, cd <package>, ./configure, ./make, ./make-install.

Try that and see what it gives you (don't follow my instructions :p , make sure and read the README or INSTALL that comes with the drivers)

Best of Luck!

mhelios
26th February 2004, 12:27 PM
gertdesmet,
You are using the wrong version. You should always use RPMs built for your platform (Fedora) or generic, non ditro specific ones.

The powervr-2.01.21-7.src.rpm package is the one you want in the source RPM link.
Then you need to rebuild it. Download it to /usr/src/redhat/SRPMS. Then, cd into the directory and issue as root:


rpmbuild --rebuild powervr-2.01.21-7.src.rpm

Now the .rpm will be built and located in /usr/src/redhat/RPMS/i386/. cd into that directory and you can now install it as root:


rpm -ivh powervr-2.01.21-7.rpm


NOTE: The reason you had to do this was because there was only a .src.rpm package made available. If they had provided a generic or Fedora .rpm then only the last step would have been needed.

gertdesmet
26th February 2004, 12:38 PM
Thanks a lot mhelios !

Now it gets much clearer to me :p

I wasnt sure about the version to use at all. I never tried the rebuild option yet so maybe thats why i got errors. I will try and let you know. :)

gertdesmet
26th February 2004, 07:25 PM
Hello,

I tried but i got this :

rpmbuild --rebuild powervr-2.01.21-7.src.rpm Installing powervr-2.01.21-7.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.24821
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf powervr-2.01.21-7
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/powervr-2.01.21-7.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd powervr-2.01.21-7
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.24821
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd powervr-2.01.21-7
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make
grep: /usr/src/linux/include/linux/mm.h: No such file or directory
Makefile:26: *** kernel source not found in $KERNELROOT, /usr/src/linux-2.4.22-1 .2115.nptl, or /usr/src/linux. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.24821 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.24821 (%build)

:eek:
Any idea ?

mhelios
27th February 2004, 03:36 AM
gertdesmet,

This means you don't have the kernel-source package installed. Something I forgot to mention above.
To rebuild pacvkages you need this package. Make sure you get the version matching your kernel. rpm -q kernel will give you your version. Then use up2date to get the package.

Bana
27th February 2004, 06:56 AM
Or you can use yum and type in yum install kernel-source

That should do it.

gertdesmet
27th February 2004, 07:50 AM
Thanks a lot guys !

I will work on it this week-end.

Will post the results here :)

Have a nice week-end.

gertdesmet
27th February 2004, 07:05 PM
I used yum and got the package. But i dont know how to install the package. It downloaded a lots of packages and i dont know where they are saved.

I tried the command again but i get same error, it seems like i didnt install the package.

grep: /usr/src/linux/include/linux/mm.h: No such file or directory
Makefile:26: *** kernel source not found in $KERNELROOT, /usr/src/linux-2.4.22-1.2174.nptl, or /usr/src/linux. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.99963 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.99963 (%build)

And when i look at kernel version it give me two versions :

# rpm -q kernel
kernel-2.4.22-1.2115.nptl
kernel-2.4.22-1.2174.nptl

Did i forget anything ?

mhelios
28th February 2004, 06:59 AM
You will want the kernel-source-2.4.22-1.2174.nptl package.
The program was downloading the latest .hdr (headers) for it's latest package versions. They're stored in /var/cache/yum/<repo>/ where <repo> could be freshrpms, dag, driers etc.
The yum command you want to install the kernel source is:


#yum install kernel-source

Yum will choose the correct version for you kernel, but you can verify this before inputing "yes" when prompted to confirm.

Then issue a `rpm -qa | grep kernel` to see that the kernel-source package was insalled. You should see something like:


kernel-pcmcia-cs-3.1.31-16
kernel-utils-2.4-9.1.101.fedora
kernel-ntfs-2.4.22-1.2174.nptl
kernel-module-alsa-1.0.2c-1.fr_2.4.22_1.2174.nptl
kernel-source-2.4.22-1.2174.nptl
kernel-2.4.22-1.2174.nptl

gertdesmet
28th February 2004, 03:02 PM
Hi,

I tried yum install kernel source and thinkit went fine :

kernel-source-2.4.22-1.21 100% |=========================| 40 MB 10:20
Running test transaction:
Test transaction complete, Success!
gcc32 100 % done 1/2
kernel-source 100 % done 2/2
Installed: kernel-source 2.4.22-1.2174.nptl.i386
Dep Installed: gcc32 3.2.3-6.i386
Transaction(s) Complete
[root@gert]# rpm -qa l grep kernel
grep-2.5.1-17.4
kernel-2.4.22-1.2174.nptl
kernel-2.4.22-1.2115.nptl

Then i tried to rebuild but got this error :

rpmbuild --rebuild powervr-2.01.21-7.src.rpm Installing powervr-2.01.21-7.src.rpm
Installing powervr-2.01.21-7.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.47624
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf powervr-2.01.21-7
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/powervr-2.01.21-7.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd powervr-2.01.21-7
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.43906
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd powervr-2.01.21-7
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o hostfunc.o hostfunc.c
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o kernmem.o kernmem.c
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o mmap.o mmap.c
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o module.o module.c
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o module_drm.o module_drm.c
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o virtmem.o virtmem.c
ld -r hostfunc.o kernmem.o mmap.o module.o module_drm.o virtmem.o libPOWERVR.a -o powervr.o
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.92785
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd powervr-2.01.21-7
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.22-1.2174.nptl
+ TARGET_KERNEL=2.4.22-1.2174.nptl
+ DRMINSTALLPATH=/lib/modules/2.4.22-1.2174.nptl/kernel/drivers/char/drm
+ mkdir -p /var/tmp/powervr-buildroot//lib/modules/2.4.22-1.2174.nptl/kernel/drivers/char/drm
+ install -m 0444 powervr.o /var/tmp/powervr-buildroot//lib/modules/2.4.22-1.2174.nptl/kernel/drivers/char/drm
+ echo '%attr(444 root root) ' /lib/modules/2.4.22-1.2174.nptl/kernel/drivers/char/drm/powervr.o
+ mkdir -p /var/tmp/powervr-buildroot/usr/lib
+ install libPVR2D.so /var/tmp/powervr-buildroot/usr/lib
+ install libPVR2OS.so /var/tmp/powervr-buildroot/usr/lib
+ install libPVRMMAP.so /var/tmp/powervr-buildroot/usr/lib
+ install libSGL2.so /var/tmp/powervr-buildroot/usr/lib
+ install libSGLMID7B.so /var/tmp/powervr-buildroot/usr/lib
+ mkdir -p /var/tmp/powervr-buildroot/usr/X11R6/lib/modules/drivers
+ mkdir -p /var/tmp/powervr-buildroot/usr/X11R6/lib/modules/dri
+ install powervr_drv.o /var/tmp/powervr-buildroot/usr/X11R6/lib/modules/drivers
+ install powervr_dri.so /var/tmp/powervr-buildroot/usr/X11R6/lib/modules/dri
+ ln -fs ../../../../lib/libPVR2D.so /var/tmp/powervr-buildroot/usr/X11R6/lib/modules/drivers
+ mkdir -p /var/tmp/powervr-buildroot/etc/X11
+ install -m 0444 XF86KyroSampleConfig /var/tmp/powervr-buildroot/etc/X11
+ mkdir -p /var/tmp/powervr-buildroot/etc
+ install -m 0644 powervr_kyro.ini /var/tmp/powervr-buildroot/etc
+ DOCPATH=/var/tmp/powervr-buildroot/usr/share/doc/powervr-2.01.21
+ mkdir -p /var/tmp/powervr-buildroot/usr/share/doc/powervr-2.01.21
+ install -m 0444 LICENSE.TXT /var/tmp/powervr-buildroot/usr/share/doc/powervr-2.01.21
+ install -m 0444 README /var/tmp/powervr-buildroot/usr/share/doc/powervr-2.01.21
+ /usr/lib/rpm/brp-compress
Processing files: powervr-2.01.21-7
Processing files: powervr-debuginfo-2.01.21-7
error: Could not open %files file /usr/src/redhat/BUILD/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}/debugfiles.list: No such file or directory


RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}/debugfiles.list: No such file or directory

Thanks again for your replies, its much appreciated


:)

mhelios
28th February 2004, 04:54 PM
Ok, a new approach. Let's create a "user" build directory and then rebuild the package from there.
Type this as non-root user to set it up (thanks to Thomas Chung):


cd ~
cp -a /usr/src/redhat/ rpmbuild
echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros
echo '%debug_package %{nil}' >> .rpmmacros

Then mv the package from /usr/src/redhat/SRPMS to ~/rpmbuild/SRPMS

Then try again...:o

NOTE: I just tested this and it built perfectly. :)
When things are done, cd to ~/rpmbuild/RPMS/i386 and from there you can (finally) install it with rpm -ivh <package>

HTH

gertdesmet
29th February 2004, 05:04 PM
Thanks but i think i did something wrong. Do i have to create a dir before entering the code ?
I followed instructions but when i rebuild i get same error :

RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}/debugfiles.list: No such file or director

I was in my home dir when i enterd the code and now i have this :

\home\gert\rpmbuild\redhat\SRPMS with package powervr-2.01.21-7.src.rpm in it.

Also when i typed :
cd ~
nothing happend.

I think i misunderstood the first part of your last post ...

:(

mhelios
29th February 2004, 06:26 PM
Ok, let's go a little slower..
First make sure you're in your hime directory /home/gert.


cd ~
pwd

Next create the "rpmbuild" directory.


mkdir rpmbuild

Now let's copy over the the necessary directories and set up the .rpmmacros file.


cp -a /usr/src/redhat/ rpmbuild
echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros
echo '%debug_package %{nil}' >> .rpmmacros

Now we can move the package from /usr/src/redhat/SRPMS to ~/rpmbuild/SRPMS.


mv /usr/src/redhat/SRPMS/<package>.src.rpm ~/rpmbuild/SRPMS

Now change to that dir


cd ~/rpmbuild/SRPMS
ls

You should see the package there. Now rebuild it.


rpmbuild --rebuild <package>.src.rpm

The freshly built rpm package will have been put in ~/rpmbuild/RPMS/i386.


cd ~/rpmbuild/RPMS/i386
ls

Now we can install it!


su -
<enter root passwd>
rpm -ivh <package>.rpm

All done. :) Hope that makes it clear for you!

gertdesmet
29th February 2004, 07:36 PM
Thanks ! Its clear but i got an error at rebuild again :

rpmbuild --rebuild powervr-2.01.21-7.src.rpmInstalling powervr-2.01.21-7.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.52789
+ umask 022
+ cd /home/gert/rpmbuild/BUILD
/var/tmp/rpm-tmp.52789: line 21: cd: /home/gert/rpmbuild/BUILD: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.52789 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.52789 (%prep)

I did it with norml user, if i try with root i get same error then before. Also after copying with
cp -a /usr/src/redhat/ rpmbuild

the structure is like this
/home/gert/rpmbuild/redhat/SRPMS

i noticed the redhat folder was not in your mv command.

What i am doing wrong ?

mhelios
1st March 2004, 12:56 PM
Your directory paths are wrong. rm them and start again. The layout should look like this:


[helios@fc1 rpmbuild]$ pwd
/home/helios/rpmbuild
[helios@fc1 rpmbuild]$ll
total 20
drwxr-xr-x 2 helios helios 4096 Feb 29 01:52 BUILD
drwxr-xr-x 8 helios helios 4096 Feb 29 01:52 RPMS
drwxr-xr-x 2 helios helios 4096 Feb 29 01:52 SOURCES
drwxr-xr-x 2 helios helios 4096 Feb 29 01:52 SPECS
drwxr-xr-x 2 helios helios 4096 Feb 29 01:52 SRPMS
[helios@fc1 rpmbuild]$

gertdesmet
2nd March 2004, 07:11 PM
It worked !!! :D

At least i think it did. It said :
powervr [============] 100%
So i guess its installed.

Do you know if i can check that ?

I am now trying to configure the driver but have not succeeded yet.:o

Thanks again to Bana and mhelios for all the kind help.

mhelios
3rd March 2004, 10:30 AM
You can check if it's installed by:


rpm -q powervr

If it's installed it'll spit out a version number; else it''ll kindly inform you that the package isn'y installed.

mhelios
14th March 2004, 05:04 PM
Set to RESOLVED since the OP now has the package successfully installed. gertdesmet, feel free to re-open though if need be.

spkame
2nd November 2006, 10:44 AM
Hi! I'm sorry for my English, is not very good.
I have the same video card on my pc, and I'm running fedora 5. I try all things you explain but it don't work. I try to create the directory on my home using not root user. If I try to rpmbuild I got this:

[cimo@mercedes SRPMS]$ rpmbuild --rebuild powervr-2.01.21-7.src.rpm
Installing powervr-2.01.21-7.src.rpm
error: Legacy syntax is unsupported: copyright
error: line 15: Unknown tag: Copyright: Imagination Technologies Ltd. 2002
[cimo@mercedes SRPMS]$

I have read in other forum tag "copyright" is deprecated and I have to insert "License" in .spec file. Then I can run rpmnuild -ba <spec file>.spec but "make" don't work (I split the output in two post):

[cimo@mercedes SPECS]$ rpmbuild -ba powervr.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.40205
+ umask 022
+ cd /home/cimo/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/cimo/rpmbuild/BUILD
+ rm -rf powervr-2.01.21-7
+ /bin/gzip -dc /home/cimo/rpmbuild/SOURCES/powervr-2.01.21-7.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd powervr-2.01.21-7
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.40205
+ umask 022
+ cd /home/cimo/rpmbuild/BUILD
+ cd powervr-2.01.21-7
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make
cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=0 -c -o hostfunc.o hostfunc.c
cc1: error: /usr/src/linux/include/linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/asm/thread_info.h:16,
from /usr/src/linux/include/linux/thread_info.h:21,
from /usr/src/linux/include/linux/preempt.h:9,
from /usr/src/linux/include/linux/spinlock.h:49,
from /usr/src/linux/include/linux/capability.h:45,
from /usr/src/linux/include/linux/sched.h:44,
from /usr/src/linux/include/linux/module.h:9,
from hostfunc.c:31:
/usr/src/linux/include/asm/processor.h:80: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/asm/processor.h:80: error: requested alignment is not a constant
In file included from /usr/src/linux/include/linux/sched.h:49,
from /usr/src/linux/include/linux/module.h:9,
from hostfunc.c:31:
/usr/src/linux/include/linux/jiffies.h:33:3: error: #error You lose.
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:210:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:254:46: error: division by zero in #if
In file included from /usr/src/linux/include/linux/sched.h:49,
from /usr/src/linux/include/linux/module.h:9,
from hostfunc.c:31:
/usr/src/linux/include/linux/jiffies.h: In function 'jiffies_to_msecs':
/usr/src/linux/include/linux/jiffies.h:259: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:259: error: (Each undeclared identifier is reported only once
/usr/src/linux/include/linux/jiffies.h:259: error: for each function it appears in.)
/usr/src/linux/include/linux/jiffies.h:265:46: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h: In function 'jiffies_to_usecs':
/usr/src/linux/include/linux/jiffies.h:270: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:278:46: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h: In function 'msecs_to_jiffies':
/usr/src/linux/include/linux/jiffies.h:283: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:291:46: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h: In function 'usecs_to_jiffies':
/usr/src/linux/include/linux/jiffies.h:296: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h: In function 'timespec_to_jiffies':
/usr/src/linux/include/linux/jiffies.h:315: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:321: error: 'SHIFT_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h: In function 'jiffies_to_timespec':
/usr/src/linux/include/linux/jiffies.h:334: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h: In function 'timeval_to_jiffies':
/usr/src/linux/include/linux/jiffies.h:356: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:360: error: 'SHIFT_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h: In function 'jiffies_to_timeval':
/usr/src/linux/include/linux/jiffies.h:372: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:385:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h: In function 'jiffies_to_clock_t':
/usr/src/linux/include/linux/jiffies.h:386: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h: In function 'clock_t_to_jiffies':
/usr/src/linux/include/linux/jiffies.h:397: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:416:6: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h: In function 'jiffies_64_to_clock_t':
/usr/src/linux/include/linux/jiffies.h:417: error: 'CONFIG_HZ' undeclared (first use in this function)
In file included from /usr/src/linux/include/linux/rwsem.h:24,
from /usr/src/linux/include/asm/semaphore.h:42,
from /usr/src/linux/include/linux/sched.h:57,
from /usr/src/linux/include/linux/module.h:9,
from hostfunc.c:31:




What can I to do? what wrong? :mad:

Thank you for your reply

spkame
2nd November 2006, 10:47 AM
second piece:

In file included from /usr/src/linux/include/linux/sched.h:57,
from /usr/src/linux/include/linux/module.h:9,
from hostfunc.c:31:
/usr/src/linux/include/asm/semaphore.h: In function 'up':
/usr/src/linux/include/asm/semaphore.h:179: error: expected ':' or ')' before 'KBUILD_BASENAME'
In file included from /usr/src/linux/include/linux/module.h:22,
from hostfunc.c:31:
/usr/src/linux/include/asm/module.h:65:2: error: #error unknown processor family
In file included from /usr/src/linux/include/asm/pci.h:6,
from /usr/src/linux/include/linux/pci.h:691,
from hostfunc.c:33:
/usr/src/linux/include/linux/mm.h: In function 'lowmem_page_address':
/usr/src/linux/include/linux/mm.h:535: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
In file included from /usr/src/linux/include/asm/pci.h:41,
from /usr/src/linux/include/linux/pci.h:691,
from hostfunc.c:33:
/usr/src/linux/include/asm/io.h: In function 'virt_to_phys':
/usr/src/linux/include/asm/io.h:77: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
/usr/src/linux/include/asm/io.h: In function 'phys_to_virt':
/usr/src/linux/include/asm/io.h:95: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
In file included from /usr/src/linux/include/linux/pci.h:691,
from hostfunc.c:33:
/usr/src/linux/include/asm/pci.h: In function 'pci_dac_dma_to_page':
/usr/src/linux/include/asm/pci.h:72: warning: return makes pointer from integer without a cast
In file included from /usr/src/linux/include/linux/irq.h:22,
from /usr/src/linux/include/asm/hardirq.h:5,
from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/delay.h:13,
from hostfunc.c:34:
/usr/src/linux/include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:5,
from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/delay.h:13,
from hostfunc.c:34:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:167: error: requested alignment is not a constant
/usr/src/linux/include/linux/irq.h:169: error: 'NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:182,
from /usr/src/linux/include/asm/hardirq.h:5,
from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/delay.h:13,
from hostfunc.c:34:
/usr/src/linux/include/asm/hw_irq.h:31: error: 'NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/delay.h:13,
from hostfunc.c:34:
/usr/src/linux/include/asm/hardirq.h:12: error: requested alignment is not a constant
hostfunc.c:37:27: error: linux/wrapper.h: No such file or directory
hostfunc.c:68:2: error: #error This driver requires PCI support.
hostfunc.c:103: error: expected specifier-qualifier-list before 'agp_memory'
hostfunc.c:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'agpInfo'
hostfunc.c:114: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
hostfunc.c:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
hostfunc.c:121: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
hostfunc.c:122: error: expected ')' before '*' token
hostfunc.c: In function 'HostReservePageAlloc':
hostfunc.c:1097: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
hostfunc.c: In function 'HostReservePageFree':
hostfunc.c:1106: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
hostfunc.c: In function 'HostCommitLinBuf':
hostfunc.c:1164: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:1164: error: 'tmp' undeclared (first use in this function)
hostfunc.c:1165: error: 'mem' undeclared (first use in this function)
hostfunc.c:1169: error: expected expression before ')' token
hostfunc.c:1179: error: 'agpInfo' undeclared (first use in this function)
hostfunc.c: In function 'HostFreeLinBuf':
hostfunc.c:1232: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:1232: error: expected expression before ')' token
hostfunc.c: In function 'InitializeAGP':
hostfunc.c:1582: error: 'pAGP' undeclared (first use in this function)
hostfunc.c:1591: error: 'agpInfo' undeclared (first use in this function)
hostfunc.c:1610: error: 'MTRR_TYPE_WRCOMB' undeclared (first use in this function)
hostfunc.c: In function 'ShutdownAGP':
hostfunc.c:1621: error: 'agp_map_entry' has no member named 'mappedAddr'
hostfunc.c:1624: error: 'agpInfo' undeclared (first use in this function)
hostfunc.c:1625: error: 'pAGP' undeclared (first use in this function)
hostfunc.c: In function 'pvr_agp_reserve':
hostfunc.c:1659: error: 'agp_map_entry' has no member named 'agp'
hostfunc.c:1663: error: 'agpInfo' undeclared (first use in this function)
hostfunc.c:1671: error: 'agp_map_entry' has no member named 'mappedAddr'
hostfunc.c:1672: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1683: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1685: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1687: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1688: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1692: error: 'agp_map_entry' has no member named 'mappedAddr'
hostfunc.c:1694: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1694: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1695: error: 'agp_map_entry' has no member named 'next'
hostfunc.c: At top level:
hostfunc.c:1707: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
hostfunc.c: In function 'pvr_agp_decommit':
hostfunc.c:1784: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:1784: error: 'mem' undeclared (first use in this function)
hostfunc.c:1798: error: 'agp_map_entry' has no member named 'agp'
hostfunc.c:1803: error: 'pAGP' undeclared (first use in this function)
hostfunc.c:1807: error: 'agp_map_entry' has no member named 'agp'
hostfunc.c: At top level:
hostfunc.c:1826: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
hostfunc.c:1841: error: expected ')' before '*' token
hostfunc.c: In function 'pvr_agp_unreserve':
hostfunc.c:1867: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:1867: error: 'mem' undeclared (first use in this function)
hostfunc.c:1867: error: 'tmp' undeclared (first use in this function)
hostfunc.c:1873: error: 'agp_map_entry' has no member named 'mappedAddr'
hostfunc.c:1874: error: 'agp_map_entry' has no member named 'agp'
hostfunc.c:1885: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1892: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1892: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1893: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1894: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1896: error: 'agp_map_entry' has no member named 'next'
hostfunc.c:1896: error: 'agp_map_entry' has no member named 'next'
hostfunc.c: In function 'HostGARTReserve':
hostfunc.c:1919: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:1919: error: 'agpMem' undeclared (first use in this function)
hostfunc.c:1943: error: 'agpInfo' undeclared (first use in this function)
hostfunc.c:1944: error: 'agp_map_entry' has no member named 'mappedAddr'
hostfunc.c:1952: error: 'agp_map_entry' has no member named 'mappedAddr'
hostfunc.c: In function 'HostGARTRelease':
hostfunc.c:1978: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:1978: error: 'mem' undeclared (first use in this function)
hostfunc.c: In function 'HostGARTAlloc':
hostfunc.c:2008: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:2008: error: 'agpMem' undeclared (first use in this function)
hostfunc.c:2008: error: 'mem' undeclared (first use in this function)
hostfunc.c: In function 'HostGARTFree':
hostfunc.c:2042: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:2042: error: 'mem' undeclared (first use in this function)
hostfunc.c:2042: error: expected expression before ')' token
hostfunc.c: In function 'HostGARTReserveMax':
hostfunc.c:2071: error: 'agpInfo' undeclared (first use in this function)
hostfunc.c: In function 'HostGARTCommit':
hostfunc.c:2093: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:2093: error: 'agp' undeclared (first use in this function)
hostfunc.c: In function 'HostGARTDecommit':
hostfunc.c:2125: error: 'agp_memory' undeclared (first use in this function)
hostfunc.c:2125: error: 'mem' undeclared (first use in this function)
make: *** [hostfunc.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.40205 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.40205 (%build)
[cimo@mercedes SPECS]$