After helping a mate get DCH++ working on his debian (stable 2.4 kernel) I thought I might post some information here about how we got it working.
Firstly make sure you get all the required packages. gcc most likely needs to be more up to date than apt-get will let you get under stable.
Now, once bootstrapped and configured, when running make we got the following errors:
/usr/include/asm/system.h:247: error: expected ',' or '...' before 'new'
/usr/include/asm/system.h: In function 'long unsigned int __cmpxchg(volatile void*, long unsigned int, long unsigned int)':
/usr/include/asm/system.h:250: error: 'size' was not declared in this scope
/usr/include/asm/system.h:254: error: expected type-specifier before ')' token
/usr/include/asm/system.h:260: error: expected type-specifier before ')' token
/usr/include/asm/system.h:266: error: expected type-specifier before ')' token
/usr/include/asm/processor.h: In function 'void load_esp0(tss_struct*, thread_struct*)':
/usr/include/asm/processor.h:486: error: 'unlikely' was not declared in this scope
After many hours of googling we figured out that the kernel headers that came with debian were different to those available when downloading the 2.4 kernel.
http://www.kernel.org/pub/linux/kernel/ ... 31.tar.bz2
We backed up the old files (system.h and processor.h) and replaced them with the ones out of that downloaded kernel and it all went sweet. Haven't looked into it to see what the cause of the problem is, or what consequences there are from changing these files, but the box we installed it on was only going to be running the hub and a basic webserver anyway.
Hope this helps someone if they don't know whats wrong.
DCH++ on Debian
Moderator: Moderators
-
- Posts: 164
- Joined: 2005-01-06 08:39
- Location: HU
- Contact:
-
- Posts: 164
- Joined: 2005-01-06 08:39
- Location: HU
- Contact: