[uClibc]compiling errors for pppd with uClibc
Andrew Ip
aip at cwlinux.com
Wed Mar 6 07:54:48 UTC 2002
Here is a pppd patch which I have been using. Hope this help.
-Andrew
On Tue, Mar 05, 2002 at 09:59:05PM +0100, Karl Peters wrote:
> Geoffrey Espin wrote:
>
> >>pppd v. 2.4.1 is listed as an app which should compile with uClibc. I am trying to
> >>do this but cannot succeed. Any help is appreciated!
> >>
> >
> >Please check the mail archives -- I've posted (patches) about
> >this a few times very recently.
> >
>
--
Andrew Ip
Email: aip at cwlinux.com
Tel: (852) 2542 2046
Fax: (852) 2542 2046
Mobile: (852) 9201 9866
Cwlinux Limited
18B Tower 1 Tern Centre,
237 Queen's Road Central,
Hong Kong.
For my public pgp key, please check out http://www.keyserver.net/en.
-------------- next part --------------
diff -ur ppp-2.4.1.orig/pppd/Makefile.linux ppp-2.4.1/pppd/Makefile.linux
--- ppp-2.4.1.orig/pppd/Makefile.linux Wed Mar 7 21:00:35 2001
+++ ppp-2.4.1/pppd/Makefile.linux Mon Jul 9 14:00:02 2001
@@ -48,7 +48,7 @@
# doesn't yet.
#FILTER=y
-HAS_SHADOW=y
+#HAS_SHADOW=y
#USE_PAM=y
#HAVE_INET6=y
@@ -56,7 +56,7 @@
INCLUDE_DIRS= -I../include
-COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP
+COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DHAVE_MULTILINK -DHAVE_MMAP -DNO_DRAND48
CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)
@@ -66,6 +66,7 @@
LIBS := -ldes $(LIBS)
else
CFLAGS += -DUSE_CRYPT=1
+LIBS := -lcrypt $(LIBS)
ifneq ($(wildcard /usr/include/crypt.h),)
CFLAGS += -DHAVE_CRYPT_H=1
endif
diff -ur ppp-2.4.1.orig/pppd/auth.c ppp-2.4.1/pppd/auth.c
--- ppp-2.4.1.orig/pppd/auth.c Mon Mar 12 21:54:33 2001
+++ ppp-2.4.1/pppd/auth.c Mon Jul 9 14:00:06 2001
@@ -46,7 +46,7 @@
#include <sys/socket.h>
#include <utmp.h>
#include <fcntl.h>
-#if defined(_PATH_LASTLOG) && defined(_linux_)
+#if defined(_PATH_LASTLOG_FOO) && defined(_linux_)
#include <lastlog.h>
#endif
@@ -1185,7 +1185,7 @@
tty += 5;
logwtmp(tty, user, remote_name); /* Add wtmp login entry */
-#if defined(_PATH_LASTLOG) && !defined(USE_PAM)
+#if defined(_PATH_LASTLOG_FOO) && !defined(USE_PAM)
if (pw != (struct passwd *)NULL) {
struct lastlog ll;
int fd;
diff -ur ppp-2.4.1.orig/pppd/sys-linux.c ppp-2.4.1/pppd/sys-linux.c
--- ppp-2.4.1.orig/pppd/sys-linux.c Mon Mar 12 21:54:41 2001
+++ ppp-2.4.1/pppd/sys-linux.c Mon Jul 9 14:00:10 2001
@@ -2030,7 +2030,7 @@
{
struct utmp ut, *utp;
pid_t mypid = getpid();
-#if __GLIBC__ < 2
+#if __GLIBC__ < 2 || defined __UCLIBC__
int wtmp;
#endif
@@ -2081,7 +2081,7 @@
/*
* Update the wtmp file.
*/
-#if __GLIBC__ >= 2
+#if __GLIBC__ >= 2 && ! defined __UCLIBC__
updwtmp(_PATH_WTMP, &ut);
#else
wtmp = open(_PATH_WTMP, O_APPEND|O_WRONLY);
diff -ur ppp-2.4.1.orig/pppdump/pppdump.c ppp-2.4.1/pppdump/pppdump.c
--- ppp-2.4.1.orig/pppdump/pppdump.c Mon Mar 12 21:56:34 2001
+++ ppp-2.4.1/pppdump/pppdump.c Mon Jul 9 14:00:26 2001
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <unistd.h>
#include <time.h>
+#include <stdlib.h>
#include <sys/types.h>
#include "ppp_defs.h"
#include "ppp-comp.h"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020306/e8a66832/attachment.pgp
More information about the uClibc
mailing list