[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: errors compiling um-pppd



* Diego Roversi writes:
> On Tue, Jan 08, 2002 at 04:18:14PM +0100, Jeroen Dekkers wrote:
>> > > > cc1: warnings being treated as errors > > > datalink.c: In
>> function `datalink_ChoosePhoneNumber': > > > datalink.c:197:
>> warning: implicit declaration of function `__strsep' > > >
>> datalink.c:197: warning: pointer/integer type mismatch in
>> conditional expression > > > datalink.c:197: warning:
>> pointer/integer type mismatch in conditional expression > > >
>> datalink.c:199: warning: pointer/integer type mismatch in
>> conditional expression > > > datalink.c:199: warning:
>> pointer/integer type mismatch in conditional expression > > > make:
>> *** [build-stamp] Error 1
>> 
>> Try compiling without -Werror, that should work.
>> 

> I can't. Because -Werror is not explicitly indicated in the
> Makefile, so I can't remove it (NB: it uses pmake, not make).
Sure you can.  Apply this silly patch and it "should" work. :)

diff -ur um-pppd-0.20010804/Makefile um-pppd/Makefile
--- um-pppd-0.20010804/Makefile	Wed Jul 25 17:27:21 2001
+++ um-pppd/Makefile	Wed Jan  9 12:55:39 2002
@@ -1,4 +1,5 @@
 OS!=	uname -s
+NOGCCERROR=1
 
 .if ${.TARGET} != install
 SUBDIR += libhack
diff -ur um-pppd-0.20010804/libhack/Makefile um-pppd/libhack/Makefile
--- um-pppd-0.20010804/libhack/Makefile	Sun Jul 22 23:12:01 2001
+++ um-pppd/libhack/Makefile	Wed Jan  9 12:54:59 2002
@@ -9,7 +9,7 @@
 		alias_util.c
 INCS=		alias.h
 MAN=		libalias.3
-
+NOGCCERROR=1
 OS!=	uname -s
 .if ${OS} == GNU || ${OS} == Linux
 CFLAGS+=	-D_BSD_SOURCE -Drandom=rand
diff -ur um-pppd-0.20010804/ppp/Makefile um-pppd/ppp/Makefile
--- um-pppd-0.20010804/ppp/Makefile	Wed Aug  1 20:32:47 2001
+++ um-pppd/ppp/Makefile	Wed Jan  9 12:55:20 2002
@@ -1,4 +1,6 @@
 OS!=	uname -s
+NOGCCERROR=1
+
 .if ${OS} == FreeBSD
 MAN8=	ppp.8
 MANSECT=8
diff -ur um-pppd-0.20010804/pppctl/Makefile um-pppd/pppctl/Makefile
--- um-pppd-0.20010804/pppctl/Makefile	Wed Jul 25 12:59:40 2001
+++ um-pppd/pppctl/Makefile	Wed Jan  9 12:55:30 2002
@@ -1,4 +1,6 @@
 OS!=	uname -s
+NOGCCERROR=1
+
 .if ${OS} == FreeBSD
 MAN8=		pppctl.8
 MANSECT=8
-- 
Alfred M. Szmidt

Reply to: