2001-04-12 09:06:07

by info

[permalink] [raw]
Subject: Repeating 2.4.3 compile error with ipx makefile patch

???, 11 ??? 2001 ? ????????? ?? ???? "Re: 2.4.3 compile error No 3" ?? ????????:
> diff -urdN linux/net/ipx/Makefile linux/net/ipx/Makefile
................

Petr, first of all I save text of patch you sent me to file
"ipx-makefile.patch" in /usr/src and try to patch.
Result:
-------------------------------------------------------------------
[root@sh src]# patch -p0 < ipx-makefile.patch
patching file linux/net/ipx/Makefile
patch: **** malformed patch at line 6: export-objs = af_ipx.o af_spx.o

[root@sh src]#
--------------------------------------------

So I try to patched linux/net/ipx/Makefile manually with you text.
Resulting Makefile:

_______________________________________________________
#
# Makefile for the Linux IPX layer.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now in the main makefile...

# We only get in/to here if CONFIG_IPX = 'y' or 'm'

O_TARGET := ipx.o

export-objs = af_ipx.o af_spx.o

obj-y := af_ipx.o sysctl_net_ipx.o

ifeq ($(CONFIG_IPX),m)
obj-m += $(O_TARGET)
endif

obj-$(CONFIG_SPX) += af_spx.o

include $(TOPDIR)/Rules.make

tar:
tar -cvf /dev/f1 .
________________________________
Then try to compile
Result - the same error.

_______________________________________________________________________
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.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/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/parport/driver.o drivers/ide/idedriver.o
drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o \
net/network.o \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
net/network.o(.data+0x2c84): undefined reference to `sysctl_ipx_pprop_broadcasting'
_________________________________________________


2001-04-12 12:53:24

by Petr Vandrovec

[permalink] [raw]
Subject: Re: Repeating 2.4.3 compile error with ipx makefile patch

On 12 Apr 01 at 12:49, info wrote:
> /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
> --end-group \
> -o vmlinux
> net/network.o(.data+0x2c84): undefined reference to `sysctl_ipx_pprop_broadcasting'

Yes. This error is already fixed in 2.4.3-ac4, as I already wrote. Use newer
kernel or compile IPX as module. I believe that it is fixed in 2.4.4-pre2
too. Patch I sent fixed compilation with disabled CONFIG_SYSCTL. As
I use zerocopy patches from Alan tree, I cannot create tested patch
for Linus tree (and I try to avoid creation of untested patches)...
Petr Vandrovec
[email protected]