Messages in this thread Patch in this message | | | From | Jos Vos <> | Subject | Re: ___strtok undeclared...problem | Date | Fri, 15 Mar 1996 12:16:09 +0100 (MET) |
| |
> Quickly when upgrading your kernel you find out you need the new procps. > However I can not compile the procps-0.99 release (i can use the binaries of > course, but I want to be able to compile).
I made some patches to the procps-0.99 sources, which I included below. Furthermore, I used the following commands to compile:
( cd xcpustate ; xmkmf ; make depend ) ( cd xproc ; xmkmf ; make depend ) ( cd proc ; make signames.h ) make
==============CUT HERE============= --- ./proc/readproc.c.ORIGINAL Tue Feb 27 18:02:30 1996 +++ ./proc/readproc.c Tue Feb 27 18:02:43 1996 @@ -8,7 +8,8 @@ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> -#include <asm/string.h> +/* #include <asm/string.h> */ +#include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/dir.h> --- ./xproc/Imakefile.ORIGINAL Tue Feb 27 18:13:14 1996 +++ ./xproc/Imakefile Tue Feb 27 18:13:20 1996 @@ -1,6 +1,6 @@ DEPLIBS = XawClientDepLibs -LOCAL_LIBRARIES = XawClientLibs -L../libproc -lproc +LOCAL_LIBRARIES = XawClientLibs -L../proc -lproc SRCS = xload.c get_load.c LOBJS = xload.o get_load.o MOBJS = xmem.o get_mem.o --- ./free.c.ORIGINAL Tue Feb 27 17:58:55 1996 +++ ./free.c Tue Feb 27 17:59:09 1996 @@ -5,7 +5,8 @@ #include "proc/version.h" #include <stdio.h> #include <stdlib.h> -#include <asm/string.h> +/* #include <asm/string.h> */ +#include <string.h> #include <unistd.h> #include <fcntl.h> #include <getopt.h> --- ./ps.c.ORIGINAL Tue Feb 27 17:59:24 1996 +++ ./ps.c Tue Feb 27 18:01:58 1996 @@ -26,7 +26,8 @@ #include <stdio.h> #include <stdlib.h> #include <ctype.h> -#include <asm/string.h> +/* #include <asm/string.h> */ +#include <string.h> char* strdup(const char*); /* not in in-line asm/string.h */ #include <unistd.h> #include <fcntl.h> --- ./w.c.ORIGINAL Tue Feb 27 18:02:10 1996 +++ ./w.c Tue Feb 27 18:02:16 1996 @@ -55,7 +55,8 @@ #include <stdio.h> #include <stdlib.h> #include <ctype.h> -#include <asm/string.h> +/* #include <asm/string.h> */ +#include <string.h> #include <unistd.h> #include <time.h> #include <utmp.h> --- ./Makefile.ORIGINAL Tue Feb 27 18:06:25 1996 +++ ./Makefile Tue Feb 27 18:06:41 1996 @@ -19,7 +19,7 @@ SUBDIRS = skill psmisc xproc xcpustate # sub-packages to build/install CC = gcc -O4 # -ggdb # easy to override these on the command-line -CFLAGS = -I. -Wall +CFLAGS = -I. -I/usr/include/ncurses -Wall #SHARED = 1# build/install both a static and ELF shared library SHLIBDIR = /lib ==============CUT HERE============= -- -- Jos Vos <jos@xos.nl> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204
| |