Hi,
Compiling pppd.c fails if no chat support is enabled.
I've applied a patch which add CYGPKG_PPP_CHAT dependency for the
cyg_ppp_chat call.
Regards
Rainer
--
Kieback&Peter GmbH & Co. KG
Tempelhofer Weg 50
12347 Berlin
Tel.: +49 - 30 - 60095 345
Fax: +49 - 30 - 60095 540
[EMAIL PROTECTED]
www.kieback-peter.de
Amtsgericht Charlottenburg, HRA 9371
Geschäftsführer: Dipl.-Ing. Joachim-Friedrich Laeger, Dr.-Ing. Joachim
Horst Laeger
Komplementärin: Laeger GmbH
Tempelhofer Weg 50
12347 Berlin
Amtsgericht Charlottenburg, HRB 6219
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/ppp/current/ChangeLog,v
retrieving revision 1.18
diff -u -r1.18 ChangeLog
--- ChangeLog 1 May 2008 10:16:16 -0000 1.18
+++ ChangeLog 20 Aug 2008 09:01:00 -0000
@@ -1,3 +1,9 @@
+2008-08-19 Rainer Arndt <[EMAIL PROTECTED]>
+
+ * src/pppd.c (cyg_pppd_main): CYGPKG_PPP_CHAT must be enabled
+ to call cyg_ppp_chat()
+
+
2008-04-28 Daniel Néri <[EMAIL PROTECTED]>
* src/ipcp.c (ipcp_init): Negotiate both primary and secondary DNS
Index: src/pppd.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/ppp/current/src/pppd.c,v
retrieving revision 1.6
diff -u -r1.6 pppd.c
--- src/pppd.c 30 Jul 2005 13:21:01 -0000 1.6
+++ src/pppd.c 20 Aug 2008 08:25:46 -0000
@@ -316,6 +316,7 @@
/* set line speed, flow control, etc.; clear CLOCAL if modem option */
set_up_tty(tty_handle, 0);
+#ifdef CYGPKG_PPP_CHAT
if( script != NULL )
{
if( !cyg_ppp_chat( devnam, script ) )
@@ -324,6 +325,7 @@
goto fail;
}
}
+#endif
#ifdef CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS
if( modem )
@@ -370,7 +372,9 @@
clean_check();
disestablish_ppp(tty_handle);
+#ifdef CYGPKG_PPP_CHAT
fail:
+#endif
if (tty_handle != 0)
close_tty();