Re: [Linux-decnet-user] DAPFS 2.4.1+ Make error on Linux Kernel 2.4.18-3
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Steven W. <st...@gw...> - 2003-04-04 10:05:33
|
Hi, I've not looked at dapfs for quite a while now. You will be safe to change the malloc.h for slab.h as the comment suggests, thats the easy part. As for the rest of the code, it may need some work to get it going properly. The other problem you are seeing is probably due to missing prototypes in a header file or something similar, Steve. > > > > Hello DecNet Users, I am hoping someone can help with this problem. > > During the kernel make process , two undefined symbols are reported during the kallsyms phase: "dap_file_operations" and "dap_dir_operations" (see below for details). I am a complete novice at kernel rebuilds, and as a result have not been able to find the cause of (what I think is ) the linking problem. > As far as I can tell, these data structures are defined in /usr/src/linux/fs/dapfs/file.c and /usr/src/linux/fs/dapfs/dir.c. > There are no errors reported from gcc apart from a warning regarding the deprecated status of "malloc.h". > There was however, a problem in applying the dapfs patch to the 2.4.18-3 kernel source, but I believe it was because of a change related to the inclusion of jfss2 in the vfs somewhere between 2.4.1 and 2.4.18. The patch problem (also below) was inserted manually and seems to be ok. I have decnet connectivity to the target VMS 5.42 system after successfully compiling the source for dnprogs 2.20. The commands dncopy, dndir and dntype have all been successful but of course dnmount fails. > > My configuration is as follows: > RH 7.3 kernel 2.4.18-3 on an Armada E700 laptop > glibc 2.2.5 > gcc 2.96 > > My objective is to use the KDE gui to perform file housekeeping functions for an extremely user unfriendly application running on a VAX 4000 > > Can anyone shed a light on the kallsyms errors - all suggestions appreciated. > > TIA > > Mark G. > > > Error data extracted from nohup.out: > > make[1]: Entering directory `/usr/src/linux-2.4.18-3' > kallsyms pass 1 > ld -m elf_i386 -T /usr/src/linux-2.4.18-3/arch/i386/vmlinux.lds -e stext > arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o > init/do_mounts.o --start-group arch/i386/kernel/kernel.o arch/i386/mm/mm.o > kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o drivers/char/char.o > drivers/block/block.o drivers/misc/misc.o drivers/net/net.o > drivers/media/media.o drivers/char/drm/drm.o drivers/net/fc/fc.o > drivers/net/appletalk/appletalk.o drivers/net/tokenring/tr.o > drivers/net/wan/wan.o drivers/atm/atm.o drivers/ide/idedriver.o > drivers/cdrom/driver.o drivers/pci/driver.o drivers/net/pcmcia/pcmcia_net.o > drivers/net/wireless/wireless_net.o drivers/pnp/pnp.o drivers/video/video.o > drivers/md/mddev.o drivers/sensors/sensor.o net/network.o abi/abi.o > /usr/src/linux-2.4.18-3/arch/i386/lib/lib.a /usr/src/linux-2.4.18-3/lib/lib.a > /usr/src/linux-2.4.18-3/arch/i386/lib/lib.a --end-group -o .tmp_vmlinux1 > fs/fs.o: In function `dap_read_inode': > fs/fs.o(.text+0x2f2f1): undefined reference to `dap_dir_operations' > fs/fs.o(.text+0x2f30f): undefined reference to `dap_file_operations' > make[1]: *** [kallsyms] Error 1 > make[1]: Leaving directory `/usr/src/linux-2.4.18-3' > make: *** [vmlinux] Error 2 > -------------------------------------------------------------------------------------------------------- > Patch problem - only the second hunk for `/include/linux/fs.h was rejected > --------------------------------------------------------------------------------------------------------- > > Compiler warning re malloc.h ------ > > make[1]: Entering directory `/usr/src/linux-2.4.18-3/fs' > make -C dapfs > make[2]: Entering directory `/usr/src/linux-2.4.18-3/fs/dapfs' > make all_targets > make[3]: Entering directory `/usr/src/linux-2.4.18-3/fs/dapfs' > cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common > -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -Wno-unused > -DKBUILD_BASENAME=inode -c -o inode.o inode.c > In file included from inode.c:15: > /usr/src/linux-2.4.18-3/include/linux/malloc.h:4:2: warning: #warning > linux/malloc.h is deprecated, use linux/slab.h instead. > cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common > -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -Wno-unused > -DKBUILD_BASENAME=dir -c -o dir.o dir.c > cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common > -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -Wno-unused > -DKBUILD_BASENAME=file -c -o file.o file.c > cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common > -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -Wno-unused > -DKBUILD_BASENAME=dap_functions -c -o dap_functions.o dap_functions.c > rm -f dapfs.o > ld -m elf_i386 -r -o dapfs.o inode.o dir.o file.o dap_functions.o > make[3]: Leaving directory `/usr/src/linux-2.4.18-3/fs/dapfs' > make[2]: Leaving directory `/usr/src/linux-2.4.18-3/fs/dapfs' > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Linux-decnet-user mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-decnet-user > |