Hello!
I wanted to build the kernel modules for the affix bluetooth stack. Seeing as they're not in the FC11 repo, or the RPMFusion repo, I decided to download from website, and build from source. After running ./Configure (why can't they just call it ./configure?) I filled out all the questions, and got a message of success. After running make, it fails. I found an alternate makefile, called makefile, and moved it in place of the one called Makefile. After typing make, it builds aok. I made the stupid mistake of trying making-install as root without restoring the original makefile, which caused a forkbomb-type problem. (lol, "make[5806]: Making install...") After pkilling make with a very very laggy screen, I copied the original makefile back that wouldn't normally make. I tried making install again, and got the following:
Code:
[albatross@Moebius affix-kernel-3.2.0]$ sudo make install
make -f Makefile install
make[1]: Entering directory `/home/albatross/Desktop/affix-kernel-3.2.0'
Checking kernel checksum ...
make[2]: Entering directory `/home/albatross/Desktop/affix-kernel-3.2.0'
make -C etc all
make[3]: Entering directory `/home/albatross/Desktop/affix-kernel-3.2.0/etc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/albatross/Desktop/affix-kernel-3.2.0/etc'
make -C include all
make[3]: Entering directory `/home/albatross/Desktop/affix-kernel-3.2.0/include'
make[3]: Leaving directory `/home/albatross/Desktop/affix-kernel-3.2.0/include'
make -C /usr/src/kernels/2.6.30.5-43.fc11.x86_64 SUBDIRS=$PWD modules
make[3]: Entering directory `/usr/src/kernels/2.6.30.5-43.fc11.x86_64'
CC [M] /home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.o
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:30:26: error: linux/config.h: No such file or directory
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:49:35: error: linux/devfs_fs_kernel.h: No such file or directory
In file included from /home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:68:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:191:24: warning: "__BIG_ENDIAN" is not defined
In file included from /home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:68:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:850: error: expected declaration specifiers or ‘...’ before ‘ioctl’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:850: error: expected declaration specifiers or ‘...’ before ‘fd’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:850: error: expected declaration specifiers or ‘...’ before ‘cmd’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:850: error: expected declaration specifiers or ‘...’ before ‘arg’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:850: warning: type defaults to ‘int’ in declaration of ‘_syscall3’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:851: error: expected declaration specifiers or ‘...’ before ‘poll’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:851: error: expected declaration specifiers or ‘...’ before ‘ufds’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:851: error: expected declaration specifiers or ‘...’ before ‘nfds’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:851: error: expected declaration specifiers or ‘...’ before ‘timeout’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:851: warning: type defaults to ‘int’ in declaration of ‘_syscall3’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:851: error: conflicting types for ‘_syscall3’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:850: note: previous declaration of ‘_syscall3’ was here
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:852: error: expected declaration specifiers or ‘...’ before ‘socketcall’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:852: error: expected declaration specifiers or ‘...’ before ‘call’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:852: error: expected declaration specifiers or ‘...’ before ‘args’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:852: warning: type defaults to ‘int’ in declaration of ‘_syscall2’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h: In function ‘btsys_socket’:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:864: error: implicit declaration of function ‘socketcall’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h: In function ‘btsys_ioctl’:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:909: error: implicit declaration of function ‘ioctl’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h: In function ‘btsys_poll’:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:1021: error: implicit declaration of function ‘poll’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h: In function ‘btsys_close’:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:1032: error: implicit declaration of function ‘close’
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h: In function ‘hci_open’:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:1118: error: ‘errno’ undeclared (first use in this function)
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:1118: error: (Each undeclared identifier is reported only once
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:1118: error: for each function it appears in.)
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h: In function ‘_hci_open’:
/home/albatross/Desktop/affix-kernel-3.2.0/include/affix/bluetooth.h:1131: error: ‘errno’ undeclared (first use in this function)
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘hcc_timer’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:113: error: implicit declaration of function ‘notifier_call_chain’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘hci_run_hotplug’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:1708: error: dereferencing pointer to incomplete type
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘affix_sock_recvmsg’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:1960: error: ‘struct sk_buff’ has no member named ‘h’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:1972: error: too few arguments to function ‘skb_unlink’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘affix_sock_reset’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2109: error: ‘struct sock’ has no member named ‘sk_pair’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘affix_sock_ready’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2118: error: ‘struct sock’ has no member named ‘sk_pair’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2130: error: ‘struct sock’ has no member named ‘sk_pair’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘affix_register_notifier’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2162: error: implicit declaration of function ‘notifier_chain_register’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘affix_unregister_notifier’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2167: error: implicit declaration of function ‘notifier_chain_unregister’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘affix_sock_create’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2193: warning: passing argument 1 of ‘btprotos[protocol]->create’ from incompatible pointer type
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2193: note: expected ‘struct net *’ but argument is of type ‘struct socket *’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2193: warning: passing argument 2 of ‘btprotos[protocol]->create’ makes pointer from integer without a cast
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2193: note: expected ‘struct socket *’ but argument is of type ‘int’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2193: error: too few arguments to function ‘btprotos[protocol]->create’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: At top level:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2203: warning: initialization from incompatible pointer type
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2250: error: expected specifier-qualifier-list before ‘get_info_t’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2254: warning: excess elements in struct initializer
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2254: warning: (near initialization for ‘dir[0]’)
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2255: warning: excess elements in struct initializer
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2255: warning: (near initialization for ‘dir[1]’)
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘hci_proc_init’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2263: error: ‘proc_net’ undeclared (first use in this function)
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2268: error: implicit declaration of function ‘create_proc_info_entry’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2268: error: ‘struct hci_proc_entry’ has no member named ‘fn’
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2268: warning: assignment makes pointer from integer without a cast
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: In function ‘hci_proc_exit’:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2283: error: ‘proc_net’ undeclared (first use in this function)
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c: At top level:
/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.c:2531: error: expected ‘)’ before string constant
make[5]: *** [/home/albatross/Desktop/affix-kernel-3.2.0/btcore/hci.o] Error 1
make[4]: *** [/home/albatross/Desktop/affix-kernel-3.2.0/btcore] Error 2
make[3]: *** [_module_/home/albatross/Desktop/affix-kernel-3.2.0] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.30.5-43.fc11.x86_64'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/home/albatross/Desktop/affix-kernel-3.2.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/albatross/Desktop/affix-kernel-3.2.0'
make: *** [install] Error 2
Does anybody have the answer? I'm clueless...
ah, btw, I was sure to install my kernel-devel packages (apparently eqivalent to kernel-source) if that's what you're thinking.