Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42331 - problem with md driver compilation in gs-sources-2.4.25_pre7-r2
Summary: problem with md driver compilation in gs-sources-2.4.25_pre7-r2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-20 23:32 UTC by vtkstef
Modified: 2004-10-11 13:17 UTC (History)
1 user (show)

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


Attachments
My kernel configuration file (.sms-config,41.31 KB, text/plain)
2004-02-20 23:33 UTC, vtkstef
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vtkstef 2004-02-20 23:32:41 UTC
When I compile dm-io.c in /usr/src/linux-2.4.25_pre7-gss-r2/drivers/md

I get the following error:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.25_pre7-gss-r2/include -Wall -Wstrict-prot
otypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-sta
ck-boundary=2 -march=athlon   -nostdinc -iwithprefix include -DKBUILD_BASENAME=d
m_io  -DEXPORT_SYMTAB -c dm-io.c
dm-io.c: In function `resize_pool':
dm-io.c:88: error: `mempool_free_slab' undeclared (first use in this function)
dm-io.c:88: error: (Each undeclared identifier is reported only once
dm-io.c:88: error: for each function it appears in.)


Reproducible: Always
Steps to Reproduce:
1. Installed gs-sources-2.4.25_pre7-r2
2. make mrproper depend bzImage
3.

Actual Results:  
I get the above compilation error 

Expected Results:  
compile without error 

I am attaching my config file.
Comment 1 vtkstef 2004-02-20 23:33:51 UTC
Created attachment 26033 [details]
My kernel configuration file
Comment 2 vtkstef 2004-02-21 01:26:29 UTC
FYI: I have the crypt use flag enabled
Comment 3 vtkstef 2004-02-22 01:11:21 UTC
Hi,

 I have done some looking around and for what I gather, it seems that the mempool_free_slab interface defintion is missing from <linux/mempool.h>

Please see link at

http://people.sistina.com/~thornber/patches/2.4-stable/2.4.23/2.4.23-dm1/00002.patch

Comment 4 Antonio 2004-02-27 06:41:19 UTC
I have the same problem !!!
Comment 5 Joe Saland 2004-03-05 08:56:57 UTC
Same problem here :(  Combine that with the fact vmware isn't running properly on 2.4.22-gentoo-r7 and I'm starting to run out of kernels I can use to keep my system running safely with the features I need.   

Considering that 2.4.25_pre7-gss-r1 specifically added device mapper support,  how could it have been released as stable when it won't even compile out of the box when that support is enabled?
Comment 6 Joe Saland 2004-03-05 09:48:42 UTC
Replacing the include/linux/mempool.h and mm/mempool.c files from linux-2.4.25_pre7-r2, with those in the above patch from Sistina, allowed my kernel to compile ok.  We'll see how stable/functional it is :)

Comment 7 Joe Saland 2004-03-10 08:51:55 UTC
Been up and running since my last post with no apparent problems from the code replacement mentioned above.  LVM2 has been working and stable and I haven't run into any other problems on any portion of my system since.

I hope we can get the proper patches to gs-sources soon,  but in the meantime following the above proceedure seems to work fine.

--joe
Comment 8 Bob Johnson (RETIRED) gentoo-dev 2004-10-09 18:55:23 UTC
old bug, reopen if necessary
Comment 9 vtkstef 2004-10-09 21:12:20 UTC
The problem is still there and unfortunatelly it has not faded away with age
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2004-10-11 13:17:29 UTC
gs-sources is no longer in portage as its outdated and unmaintained. Please use gentoo-sources for 2.4 or gentoo-dev-sources for 2.6.