Re: make moduels failed on linux-2.4.21-15.EL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On May 25, 2004, at 12:11 PM, Yasushi Okubo wrote:



I just applied patches to our WS3.0 machines through up2date and got kernel-source too. However, it failed to compile kernel. The following is the steps I took. Please advise me how to get rid of errors.


1. I opened make menuconfig/xconfig
2. Turn on IEEE1394 option
3. save & exit
4. make dep <-- it looked okay
5. make modules failed with many "implicit declaration of function" errors


So, after make clean, I turned off IEEE1394 option and saved it, but it looks like it still produced the same errors with make modules. It looks like kenern-source for linux-2.4.21-15.EL never be able to be compiled due to anomalities in many libraries.

Here is the example of output:

/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:142: syntax error before numeric constant
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:142: warning: function declaration isn't a prototype
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:143: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:545: invalid suffix on integer constant
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:545: syntax error before numeric constant
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:545: `free_pages_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:545: warning: function declaration isn't a prototype
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:641: syntax error before numeric constant
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:641: `__get_free_pages_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:641: warning: function declaration isn't a prototype
/usr/src/linux-2.4.21-15.EL/include/linux/mm.h:642: invalid suffix on integer constant
.....
......
...
/usr/src/linux-2.4.21-15.EL/include/net/sock.h:1361: warning: implicit declaration of function `put_cmsg_Rsmp_f39bf4d9'
/usr/src/linux-2.4.21-15.EL/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.21-15.EL/include/linux/skbuff.h:1152: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.21-15.EL/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.21-15.EL/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21-15.EL/drivers'
make: *** [_mod_drivers] Error 2




after you enable your specific options with xconfig, mv the .config file created in /usr/src/linux out of the src tree, make mrproper, then mv .config back, do a make oldconfig, make dep; make clean, make bzImage, make modules... this worked for me the last time i got a slough of cryptic compilation errors on make modules.


hth,
Jurvis LaSalle



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux