Menu

#2 build broken for 2.6.x kernels?

open
linux (3)
5
2012-10-18
2005-03-29
Anonymous
No

dm@adventus.com

$ uname -a
Linux xxxxxxxx 2.6.11-gentoo-r4 #3 SMP Mon Mar 28
18:24:57 AST 2005 i686 Intel(R) Pentium(R) 4 CPU
3.00GHz GenuineIntel GNU/Linux

$ make
make -C ../common
make[1]: Entering directory
/home/xxxxx/dev/libs/midishare/src/common' gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msAlarms.o Clients/msAlarms.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msAppls.o Clients/msAppls.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msConnx.o Clients/msConnx.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msFilter.o Clients/msFilter.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msMail.o Clients/msMail.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msTasks.o Clients/msTasks.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Clients/msXmtRcv.o Clients/msXmtRcv.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Kernel/msHandler.o Kernel/msHandler.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Kernel/msInit.o Kernel/msInit.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Kernel/msSmpte.o Kernel/msSmpte.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Kernel/msTime.o Kernel/msTime.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Memory/msEvents.o Memory/msEvents.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Memory/msFields.o Memory/msFields.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Memory/msMemory.o Memory/msMemory.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Memory/msSeq.o Memory/msSeq.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Sorter/msSorter.o Sorter/msSorter.c gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D__NO_VERSION__ -IHeaders -I/lib/modules/uname -r/build/include/ -c -o Drivers/msDriver.o Drivers/msDriver.c Drivers/msDriver.c: In functionMSAddSlot':
Drivers/msDriver.c:138: warning: dereferencing
type-punned pointer will break strict-aliasing rules
Drivers/msDriver.c: In function MSGetIndSlot': Drivers/msDriver.c:244: warning: dereferencing type-punned pointer will break strict-aliasing rules ld -m elf_i386 -r -o ../linux/msCommon.o Clients/msAlarms.o Clients/msAppls.o Clients/msConnx.o Clients/msFilter.o Clients/msMail.o Clients/msTasks.o Clients/msXmtRcv.o Kernel/msHandler.o Kernel/msInit.o Kernel/msSmpte.o Kernel/msTime.o Memory/msEvents.o Memory/msFields.o Memory/msMemory.o Memory/msSeq.o Sorter/msSorter.o Drivers/msDriver.o make[1]: Leaving directory/home/xxxxx/dev/libs/midishare/src/common'
make -C ../common/Memory
make[1]: Entering directory
/home/xxxxx/dev/libs/midishare/src/common/Memory' gcc -O0 -Wall -g -D_REENTRANT -D_LOOSE_KERNEL_NAMES -D__Pentium__ -I../Headers -c msMemory.c -o lib/msMemory.o gcc -O0 -Wall -g -D_REENTRANT -D_LOOSE_KERNEL_NAMES -D__Pentium__ -I../Headers -c msEvents.c -o lib/msEvents.o gcc -O0 -Wall -g -D_REENTRANT -D_LOOSE_KERNEL_NAMES -D__Pentium__ -I../Headers -c msSeq.c -o lib/msSeq.o ld lib/msMemory.o lib/msEvents.o lib/msSeq.o -g -r -o ../../linux/libCommon.o make[1]: Leaving directory/home/xxxxx/dev/libs/midishare/src/common/Memory'
make -C library
make[1]: Entering directory
/home/xxxxx/dev/libs/midishare/src/linux/library' gcc -O0 -Wall -g -D_REENTRANT -D__Pentium__ -fPIC -I../../common/Headers -c -o libMidiShare.o libMidiShare.c gcc libMidiShare.o ../libCommon.o -g -lpthread -shared -fPIC -W1,soname,libMidiShare.so.1 -o libMidiShare.so.1.0 if [ ! -f libMidiShare.so.1 ]; then ln -s libMidiShare.so.1.0 libMidiShare.so.1; fi if [ ! -f libMidiShare.so ]; then ln -s libMidiShare.so.1 libMidiShare.so; fi make[1]: Leaving directory/home/xxxxx/dev/libs/midishare/src/linux/library'
make -C kernel
make[1]: Entering directory
/home/xxxxx/dev/libs/midishare/src/linux/kernel' gcc -O6 -Wall -D_LOOSE_KERNEL_NAMES -DMODVERSIONS -D__Pentium__ -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -ldl -lpthread -I/lib/modules/uname
-r/build/include/ -I../../common/Headers -c -o msLoader.o msLoader.c In file included from /lib/modules/2.6.11-gentoo-r4/build/include/asm/processor.h:18, from /lib/modules/2.6.11-gentoo-r4/build/include/asm/thread_info.h:17, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/thread_info.h:21, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/spinlock.h:12, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/capability.h:45, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/sched.h:7, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/module.h:10, from msLoader.c:41: /lib/modules/2.6.11-gentoo-r4/build/include/asm/system.h: In function__set_64bit_var':
/lib/modules/2.6.11-gentoo-r4/build/include/asm/system.h:193:
warning: dereferencing type-punned pointer will break
strict-aliasing rules
/lib/modules/2.6.11-gentoo-r4/build/include/asm/system.h:193:
warning: dereferencing type-punned pointer will break
strict-aliasing rules
In file included from
/lib/modules/2.6.11-gentoo-r4/build/include/asm/smp.h:18,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/smp.h:19,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/sched.h:25,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/module.h:10,
from msLoader.c:41:
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:6:25:
mach_mpspec.h: No such file or directory
In file included from
/lib/modules/2.6.11-gentoo-r4/build/include/asm/smp.h:18,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/smp.h:19,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/sched.h:25,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/module.h:10,
from msLoader.c:41:
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:
At top level:
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:8:
error: MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:9: error:MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:10:
error: MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:12: error:MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:20:
error: MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:20: error: conflicting types formp_bus_id_to_type'
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:8:
error: previous declaration of mp_bus_id_to_type' /lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:22: error:MAX_IRQ_SOURCES' undeclared here (not in a
function)
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:24:
error: MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:24: error: conflicting types formp_bus_id_to_pci_bus'
/lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:12:
error: previous declaration of mp_bus_id_to_pci_bus' In file included from /lib/modules/2.6.11-gentoo-r4/build/include/asm/smp.h:20, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/smp.h:19, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/sched.h:25, from /lib/modules/2.6.11-gentoo-r4/build/include/linux/module.h:10, from msLoader.c:41: /lib/modules/2.6.11-gentoo-r4/build/include/asm/io_apic.h:158: error:MAX_IRQ_SOURCES' undeclared here (not in a
function)
/lib/modules/2.6.11-gentoo-r4/build/include/asm/io_apic.h:158:
error: conflicting types for mp_irqs' /lib/modules/2.6.11-gentoo-r4/build/include/asm/mpspec.h:22: error: previous declaration ofmp_irqs'
In file included from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/smp.h:19,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/sched.h:25,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/module.h:10,
from msLoader.c:41:
/lib/modules/2.6.11-gentoo-r4/build/include/asm/smp.h:73:26:
mach_apicdef.h: No such file or directory
In file included from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/smp.h:19,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/sched.h:25,
from
/lib/modules/2.6.11-gentoo-r4/build/include/linux/module.h:10,
from msLoader.c:41:
/lib/modules/2.6.11-gentoo-r4/build/include/asm/smp.h:
In function hard_smp_processor_id': /lib/modules/2.6.11-gentoo-r4/build/include/asm/smp.h:77: warning: implicit declaration of functionGET_APIC_ID'
msLoader.c: In function prnt': msLoader.c:79: error: structure has no member namedtty'
msLoader.c:84: error: request for member write' in something not a structure or union msLoader.c:85: error: request for memberwrite' in
something not a structure or union
msLoader.c: In function MidiReset': msLoader.c:130: error:MOD_DEC_USE_COUNT' undeclared
(first use in this function)
msLoader.c:130: error: (Each undeclared identifier is
reported only once
msLoader.c:130: error: for each function it appears in.)
msLoader.c: In function myopen': msLoader.c:141: error:MOD_INC_USE_COUNT' undeclared
(first use in this function)
msLoader.c: In function myclose': msLoader.c:150: error:MOD_DEC_USE_COUNT' undeclared
(first use in this function)
make[1]: [msLoader.o] Error 1
make[1]: Leaving directory
`/home/xxxxx/dev/libs/midishare/src/linux/kernel'
make:
[kernel] Error 2

I ran a few searches via google, and didn't find
anything that helped me to find a solution, but an item
of interest that may help somebody else:

http://marc.theaimsgroup.com/?l=linux-kernel&m=108757481913320&w=2

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.