A
Andy.Reddy
Hi all...
mal wieder das Übliche....
Seit dem Kernel-Update auf 2.6.22.16-0.1 funktioniert natürlich der Treiber für die Fritz!Card PCI nicht mehr.
Klaro ... kein Problem dachte ich und habe versucht den Treiber aus der Source-RPM zu rebuilden ... was aber nicht geht.
Was ist denn da wieder los und was ist zu tun?
Gruß Andy.Reddy
mal wieder das Übliche....
Seit dem Kernel-Update auf 2.6.22.16-0.1 funktioniert natürlich der Treiber für die Fritz!Card PCI nicht mehr.
Klaro ... kein Problem dachte ich und habe versucht den Treiber aus der Source-RPM zu rebuilden ... was aber nicht geht.
Code:
neptune:/tmp # rpmbuild --rebuild -bb fcpci-0.1-0.src.rpm
Installing fcpci-0.1-0.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.72110
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf fritz
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/fcpci-suse93-3.11-07.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root 0 2005-07-07 00:00 fritz/
-rw-r--r-- root/root 11 2005-07-07 00:00 fritz/ID
drwxr-xr-x root/root 0 2005-07-07 00:00 fritz/lib/
-rw-r--r-- root/root 581653 2005-07-07 00:00 fritz/lib/fcpci-lib.o
drwxr-xr-x root/root 0 2005-07-07 00:00 fritz/src/
-rw-r--r-- root/root 2698 2005-07-07 00:00 fritz/src/io.c
-rw-r--r-- root/root 1123 2005-07-07 00:00 fritz/src/Makefile
-rw-r--r-- root/root 21450 2005-07-07 00:00 fritz/src/lib.c
-rw-r--r-- root/root 2744 2005-07-07 00:00 fritz/src/lib.h
-rw-r--r-- root/root 7081 2005-07-07 00:00 fritz/src/queue.c
-rw-r--r-- root/root 2869 2005-07-07 00:00 fritz/src/queue.h
-rw-r--r-- root/root 1304 2005-07-07 00:00 fritz/src/libstub.h
-rw-r--r-- root/root 16498 2005-07-07 00:00 fritz/src/fcpcmcia_cs.c
-rw-r--r-- root/root 1549 2005-07-07 00:00 fritz/src/attr.h
-rw-r--r-- root/root 2895 2005-07-07 00:00 fritz/src/defs.h
-rw-r--r-- root/root 27129 2005-07-07 00:00 fritz/src/driver.c
-rw-r--r-- root/root 3631 2005-07-07 00:00 fritz/src/driver.h
-rw-r--r-- root/root 21756 2005-07-07 00:00 fritz/src/tools.c
-rw-r--r-- root/root 6558 2005-07-07 00:00 fritz/src/tools.h
-rw-r--r-- root/root 18085 2005-07-07 00:00 fritz/src/tables.c
-rw-r--r-- root/root 3715 2005-07-07 00:00 fritz/src/tables.h
-rw-r--r-- root/root 11969 2005-07-07 00:00 fritz/src/main.c
-rw-r--r-- root/root 1689 2005-07-07 00:00 fritz/src/main.h
-rw-r--r-- root/root 1516 2005-07-07 00:00 fritz/src/lock.h
-rw-r--r-- root/root 7179 2005-07-07 00:00 fritz/src/libdefs.h
-rw-r--r-- root/root 610693 2005-07-07 00:00 fritz/fcpci1.ko
-rw-r--r-- root/root 617267 2005-07-07 00:00 fritz/fcpci2.ko
-rw-r--r-- root/root 436 2005-07-07 00:00 fritz/Makefile
-rw-r--r-- root/root 1180 2005-07-07 00:00 fritz/install.pre
-rw-r--r-- root/root 3522 2005-07-07 00:00 fritz/compile-help-german.txt
-rw-r--r-- root/root 60 2005-07-07 00:00 fritz/install.system
-rw-r--r-- root/root 394 2005-07-07 00:00 fritz/install.card
-rw-r--r-- root/root 1668 2005-07-07 00:00 fritz/install.main
-rw-r--r-- root/root 1826 2005-07-07 00:00 fritz/install.post
-rw-r--r-- root/root 7329 2005-07-07 00:00 fritz/Logo_CAPI4Linux.jpg
-rw-r--r-- root/root 7978 2005-07-07 00:00 fritz/CAPI20_Errormessages.txt
-rw-r--r-- root/root 3366 2005-07-07 00:00 fritz/compile-help-english.txt
-rw-r--r-- root/root 3446 2005-07-07 00:00 fritz/license.txt
-rw-r--r-- root/root 26587 2005-07-07 00:00 fritz/install_passive-d.html
-rw-r--r-- root/root 24406 2005-07-07 00:00 fritz/install_passive-e.html
-rwxr--r-- root/root 5475 2005-07-07 00:00 fritz/install
-rw-r--r-- root/root 1265 2005-07-07 00:00 fritz/install.checks
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd fritz
++ /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,u+w,g-w,o-w .
+ echo 'Patch #0 (fritz-tools.diff):'
Patch #0 (fritz-tools.diff):
+ patch -p1 -s
++ find . -name '*lib.o'
+ OBJ=./lib/fcpci-lib.o
+ for i in '$OBJ'
+ mv ./lib/fcpci-lib.o ./lib/fcpci-lib.o.old
+ objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat -L strcmp -L strcpy -L strlen -L strncmp -L strncpy ./lib/fcpci-lib.o.old ./lib/fcpci-lib.o
+ set -- CAPI20_Errormessages.txt compile-help-english.txt compile-help-german.txt fcpci1.ko fcpci2.ko ID install install.card install.checks install.main install_passive-d.html install_passive-e.html install.post install.pre install.system lib license.txt Logo_CAPI4Linux.jpg Makefile src
+ mkdir source
+ mv CAPI20_Errormessages.txt compile-help-english.txt compile-help-german.txt fcpci1.ko fcpci2.ko ID install install.card install.checks install.main install_passive-d.html install_passive-e.html install.post install.pre install.system lib license.txt Logo_CAPI4Linux.jpg Makefile src source/
+ mkdir obj
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.72110
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /var/tmp/fcpci-0.1-build
++ dirname /var/tmp/fcpci-0.1-build
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/fcpci-0.1-build
+ cd fritz
+ export 'EXTRA_CFLAGS=-DVERSION=\"0.1\"'
+ EXTRA_CFLAGS='-DVERSION=\"0.1\"'
+ for flavor in bigsmp debug default xen xenpae
+ rm -rf obj/bigsmp
+ cp -r source obj/bigsmp
+ make -C /usr/src/linux-obj/i586/bigsmp modules M=/usr/src/packages/BUILD/fritz/obj/bigsmp/src LIBDIR=/usr/src/packages/BUILD/fritz/obj/bigsmp/lib
make: Entering directory `/usr/src/linux-2.6.22.16-0.1-obj/i386/bigsmp'
make -C ../../../linux-2.6.22.16-0.1 O=../linux-2.6.22.16-0.1-obj/i386/bigsmp modules
CC [M] /usr/src/packages/BUILD/fritz/obj/bigsmp/src/main.o
/usr/src/packages/BUILD/fritz/obj/bigsmp/src/main.c:25:26: error: linux/config.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/src/packages/BUILD/fritz/obj/bigsmp/src/main.c:45:
/usr/src/packages/BUILD/fritz/obj/bigsmp/src/driver.h:101: error: conflicting types for ‘driver_init’
/usr/src/linux-2.6.22.16-0.1/include/linux/device.h:502: error: previous declaration of ‘driver_init’ was here
/usr/src/packages/BUILD/fritz/obj/bigsmp/src/main.c: In function ‘fritz_init’:
/usr/src/packages/BUILD/fritz/obj/bigsmp/src/main.c:367: error: implicit declaration of function ‘pci_module_init’
make[3]: *** [/usr/src/packages/BUILD/fritz/obj/bigsmp/src/main.o] Fehler 1
make[2]: *** [_module_/usr/src/packages/BUILD/fritz/obj/bigsmp/src] Fehler 2
make[1]: *** [modules] Fehler 2
make: *** [modules] Fehler 2
make: Leaving directory `/usr/src/linux-2.6.22.16-0.1-obj/i386/bigsmp'
error: Bad exit status from /var/tmp/rpm-tmp.72110 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.72110 (%build)
Was ist denn da wieder los und was ist zu tun?
Gruß Andy.Reddy