Re: PPPD 2.2.0e: Failing to compile under linux

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Tue, 9 Apr 1996 23:51:43 -0300 (EST)


Finally I get it running... Here are the patches:
And as another guy said, put #ifdef __KERNEL__ surrounding the strtok inline
function in /usr/src/linux/asm/string.h.

Arnaldo Carvalho de Melo acme@conectiva.com.br
R&D Director http://conectiva.com.br
Conectiva Internet Solutions Curitiba - Parana' - Brazil

--- cut here... ---
Only in ../ppp-2.2.0e-acme: Makefile
Only in ../ppp-2.2.0e-acme/chat: Makefile
Only in ../ppp-2.2.0e-acme/pppd: Makefile
diff -rc ../ppp-2.2.0e/pppd/Makefile.linux ../ppp-2.2.0e-acme/pppd/Makefile.linux
*** ../ppp-2.2.0e/pppd/Makefile.linux Thu Dec 14 02:18:18 1995
--- ../ppp-2.2.0e-acme/pppd/Makefile.linux Tue Apr 9 23:13:34 1996
***************
*** 23,29 ****
# CC = gcc
# DEBUG_FLAGS = -DDEBUGALL
COMPILE_FLAGS = -D_linux_=1 -DHAVE_PATHS_H
! COPTS = -g # -O2
VER = 0.2.8
LIBS = -lbsd

--- 23,29 ----
# CC = gcc
# DEBUG_FLAGS = -DDEBUGALL
COMPILE_FLAGS = -D_linux_=1 -DHAVE_PATHS_H
! COPTS = -O2
VER = 0.2.8
LIBS = -lbsd

diff -rc ../ppp-2.2.0e/pppd/main.c ../ppp-2.2.0e-acme/pppd/main.c
*** ../ppp-2.2.0e/pppd/main.c Tue Nov 21 04:53:48 1995
--- ../ppp-2.2.0e-acme/pppd/main.c Tue Apr 9 23:00:14 1996
***************
*** 21,26 ****
--- 21,27 ----
static char rcsid[] = "$Id: main.c,v 1.27 1995/08/16 01:39:08 paulus Exp $";
#endif

+ #include <sys/bitypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff -rc ../ppp-2.2.0e/pppd/pppd.h ../ppp-2.2.0e-acme/pppd/pppd.h
*** ../ppp-2.2.0e/pppd/pppd.h Wed Nov 22 11:48:54 1995
--- ../ppp-2.2.0e-acme/pppd/pppd.h Tue Apr 9 23:08:06 1996
***************
*** 26,31 ****
--- 26,32 ----
#ifndef __PPPD_H__
#define __PPPD_H__

+ #include <sys/bitypes.h> /* for u_int32_t, if defined */
#include <sys/param.h> /* for MAXPATHLEN and BSD4_4, if defined */
#include <sys/types.h> /* for u_int32_t, if defined */
#include <net/ppp_defs.h>
diff -rc ../ppp-2.2.0e/pppd/sys-linux.c ../ppp-2.2.0e-acme/pppd/sys-linux.c
*** ../ppp-2.2.0e/pppd/sys-linux.c Thu Dec 28 03:58:09 1995
--- ../ppp-2.2.0e-acme/pppd/sys-linux.c Tue Apr 9 23:12:33 1996
***************
*** 22,27 ****
--- 22,28 ----
* TODO:
*/

+ #include <linux/netdevice.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
Only in ../ppp-2.2.0e-acme/pppstats: Makefile
--- and cut again here... ---