Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42416 - gs-sources 2.4.25_pre7 compile problem at mki
Summary: gs-sources 2.4.25_pre7 compile problem at mki
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 14:10 UTC by Martin Janke
Modified: 2004-10-09 18:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel configuration file (kernel-config,30.45 KB, text/plain)
2004-02-21 14:12 UTC, Martin Janke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janke 2004-02-21 14:10:02 UTC
After suceesfully running 
make dep
make clean
make bzImage

make modules fails as follows:

mki24.c: In function `mkia_alloc_ldt':
mki24.c:533: error: structure has no member named `segments'
mki24.c:534: error: structure has no member named `segments'
make[1]: *** [mki.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.25_pre7-gss-r2/arch/i386/mki-adapter'
make: *** [_mod_arch/i386/mki-adapter] Error 2



Reproducible: Always
Steps to Reproduce:
1. emerge sys-kernel/gs-sources-2.4.25_pre7-r2
2. configure kernel (see attached config file) 
3. make dep
4. make clean
5. make bzImage modules

Actual Results:  
compile error: 
 
mki24.c: In function `mkia_alloc_ldt': 
mki24.c:533: error: structure has no member named `segments' 
mki24.c:534: error: structure has no member named `segments' 
make[1]: *** [mki.o] Error 1 
make[1]: Leaving directory `/usr/src/linux-2.4.25_pre7-gss-r2/arch/i386/
mki-adapter' 
make: *** [_mod_arch/i386/mki-adapter] Error 2 

Expected Results:  
no compile error 

kernel config file will be attached.
Comment 1 Martin Janke 2004-02-21 14:12:21 UTC
Created attachment 26065 [details]
kernel configuration file
Comment 2 Antonio 2004-02-27 06:38:47 UTC
I have the same problem
Comment 3 Antonio 2004-02-27 06:42:51 UTC
with this features the kernel do not compile !!!
Comment 4 Bob Johnson (RETIRED) gentoo-dev 2004-02-27 13:52:18 UTC
known problem, working on fix for next version
Comment 5 John Steele Scott 2004-03-13 17:58:57 UTC
Bob, I can make it compile and load (i.e. win4lin runs) by doing this:

--- mki24.c.orig        2004-03-14 12:19:04.000000000 +1030
+++ mki24.c     2004-03-14 12:10:07.000000000 +1030
@@ -118,16 +118,8 @@
 #endif


-#ifdef MAX_LDT_PAGES
-#define GET_LINUX_LDTP(c)              (0)
-#define GET_LINUX_LDT_NUM_ENTRIES(c)   (0)
-#elif defined(MM_CONTEXT_HAS_LDT_FIELD)
 #define GET_LINUX_LDTP(c)              ((c)->ldt)
 #define GET_LINUX_LDT_NUM_ENTRIES(c)   ((c)->size)
-#else
-#define GET_LINUX_LDTP(c)              ((c)->segments)
-#define GET_LINUX_LDT_NUM_ENTRIES(c)   (((c)->segments) ? LDT_ENTRIES : 0 )
-#endif

I don't know much of the details of the memory mangement system. Will this be okay, or is it just asking for trouble?

Another point I noticed while working on this is that now /usr/include/asm/mmu.h is no longer in sync with /usr/src/linux/include/asm/mmu.h.
Comment 6 John Steele Scott 2004-03-19 00:41:57 UTC
Just a follow-up . . . the kernel I built using the above method has panicked three times in the last week . . . :(
Comment 7 Bob Johnson (RETIRED) gentoo-dev 2004-10-09 18:55:35 UTC
old bug, reopen if necessary