|
楼主 |
发表于 2004-6-29 13:08:49
|
显示全部楼层
Now I am pleased with my resolution.
I have installed LFS 5.1 and Gnome2.6 a few weeks ago.
I tried to install module-init-tools-0.9.14, for the purpose of fixing the problem that my ATI 128 rage module cannot be loaded automatically under the kernel 2.6.0. Then I was installing the kernel again. However, during making the package, I got the errors as below:
-----------------------------------------------------------------------------------------------
source='moduleops.c' object='moduleops.o' libtool=no \
depfile='.deps/moduleops.Po' tmpdepfile='.deps/moduleops.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"0.9.14\" -I. -I. -g -O2 -Wunused -Wall -Wcast-align -c `test -f 'moduleops.c' || echo './'`moduleops.c
In file included from moduleops.c:15:
moduleops_core.c: In function `calculate_deps32':
moduleops_core.c:118: error: `STT_REGISTER' undeclared (first use in this function)
moduleops_core.c:118: error: (Each undeclared identifier is reported only once
moduleops_core.c:118: error: for each function it appears in.)
In file included from moduleops.c:23:
moduleops_core.c: In function `calculate_deps64':
moduleops_core.c:118: error: `STT_REGISTER' undeclared (first use in this function)
make: *** [moduleops.o] Error 1
------------------------------------------------------------------------------------------------
Here I noticed the error 'STT_REGISTER' so that I looked it up into some relative *.h files (e.g files in /usr/include), but no such string. Ok, using the command:
----------------------------------------
for i in /usr/include/*.h; do
grep 'STT' $i
done
-----------------------------------------
I got some files contianing the STT. One of these files was elf.h, in which at the line 1138, there was:
---------------------------------------------------------------------------------------------------
1138 #define STT_SPARC_REGISTER 13 /* Global register reserved to a pp. */
---------------------------------------------------------------------------------------------------
I was doubt about this line. So I opened the same file under the Red Hat Linux 9, the line was:
------------------------------------------------------------------------------------------------
1125 #define STT_REGISTER 13 /* Global register reserved to a pp. */
------------------------------------------------------------------------------------------------
So I backupped the elf.h under the LFS, then changed then line as that in RHL. Now complied again, no errors. |
|