Hello from Gregg C Levine I just attempted to build the contents of kexec-tools-1.7, on a Slackware 8.0 system running the 2.2.19 kernel. It ran make all the way until it found a missing library to complain about. Basically, I don't know what one it is talking about. I promptly ran make again, after issuing a make clean. It repeated. I then created a script file, containing the efforts of my third time around. Also it happened when I issued the same commands, on version 1.0. Eric is the collection being built static, rather then dynamic? Anyway, I've attached the script file. Gregg C Levine drwho8@worldnet.att.net Magic word is "Grok!"
Script started on Fri Nov 22 22:49:59 2002 root@drwho:/usr/src/lobos/kernel-patches/kexec/kexec-tools-1.7# make mkdir -p objdir/build/sbin gcc -Wall -g -O2 -fno-strict-aliasing -I./util_lib/include -DVERSION='"1.7"' -DRELEASE_DATE='"18 November 2002"' -static -o objdir/build/sbin/kexec ./objdir/kexec/kexec.o ./objdir/kexec/kexec-syscall.o ./objdir/kexec/kexec-x86.o ./objdir/kexec/kexec-elf32-x86.o ./objdir/kexec/kexec-bzImage.o ./objdir/kexec/ifdown.o ./objdir/kexec/x86-setup-32.o ./objdir/kexec/x86-setup-16.o ./objdir/kexec/x86-setup-16-debug.o ./objdir/libutil.a /usr/i386-slackware-linux/bin/ld: cannot find -lc collect2: ld returned 1 exit status make: *** [objdir/build/sbin/kexec] Error 1 root@drwho:/usr/src/lobos/kernel-patches/kexec/kexec-tools-1.7# exit
Script done on Fri Nov 22 22:50:12 2002
Gregg Levine hansolofalcon@worldnet.att.net writes:
Hello from Gregg C Levine I just attempted to build the contents of kexec-tools-1.7, on a Slackware 8.0 system running the 2.2.19 kernel. It ran make all the way until it found a missing library to complain about. Basically, I don't know what one it is talking about. I promptly ran make again, after issuing a make clean. It repeated. I then created a script file, containing the efforts of my third time around. Also it happened when I issued the same commands, on version 1.0. Eric is the collection being built static, rather then dynamic?
Yep. It looks that way. Oops. There are other pieces that need to be built static but the basic kexec utility should need to be. It's probably an accidental hold over from something else.
Anyway remove the -static from the final build line kexec/Makefile and it should compile dynamically.
$(KEXEC_S_OBJS): $(OBJDIR)/%.o: %.S $(OBJDIR)/%.d mkdir -p $(@D) $(CC) $(CFLAGS) -o $@ -c $<
$(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB) mkdir -p $(@D) - $(CC) $(CFLAGS) -static -o $@ $(KEXEC_OBJS) $(UTIL_LIB) + $(CC) $(CFLAGS) -o $@ $(KEXEC_OBJS) $(UTIL_LIB)
echo:: @echo "KEXEC_C_SRCS $(KEXEC_C_SRCS)" @echo "KEXEC_C_DEPS $(KEXEC_C_DEPS)" @echo "KEXEC_C_OBJS $(KEXEC_C_OBJS)"
Eric