From owner-freebsd-questions Sat Feb 5 11:17:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.49]) by builder.freebsd.org (Postfix) with ESMTP id CFB0644F6 for ; Sat, 5 Feb 2000 11:17:06 -0800 (PST) Received: from 10.67.192.9 (adsl-196-149.adsl.xs4all.nl [194.109.196.149]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id UAA15019 for ; Sat, 5 Feb 2000 20:17:30 +0100 (CET) From: rene@xs4all.nl Date: Sat, 5 Feb 2000 20:22:41 +0100 X-Mailer: The Bat! (v1.38e) S/N B56A3CE9 / Personal Reply-To: rene@xs4all.nl Organization: XS4ALL Internet B.V. Nederland X-Priority: 3 (Normal) Message-ID: <18849.000205@xs4all.nl> To: questions@freebsd.org Subject: pptp not compiling... Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello freebsd-questions, I'm trying to compile pptp, but it fails. The output: :[root@messenger:/usr/ports/net/pptp-linux-1.0.2 date/time: Sat Feb 5/20:13:51] 33# make gcc -Wall -O9 '-DPPTP_LINUX_VERSION="1.0.2"' -g '-DPPPD_BINARY="/usr/sbin/pppd"' -c pptp.c pptp.c: In function `main': pptp.c:63: `PTYMAX' undeclared (first use this function) pptp.c:63: (Each undeclared identifier is reported only once pptp.c:63: for each function it appears in.) pptp.c:63: `TTYMAX' undeclared (first use this function) pptp.c:63: warning: unused variable `ttydev' pptp.c:63: warning: unused variable `ptydev' pptp_callmgr.c: In function `callmgr_main': In file included from pptp.c:252: pptp_callmgr.c:109: warning: variable `max_fd' might be clobbered by `longjmp' or `vfork' pptp_callmgr.c:110: warning: variable `first' might be clobbered by `longjmp' or `vfork' *** Error code 1 Stop. I've checked the following, and don't understand the situation. I could use a clue here ;) :[root@messenger:/usr/ports/net/pptp-linux-1.0.2 date/time: Sat Feb 5/20:13:29] 31# grep -e pppd Makefile # CHANGE THIS LINE to point to the location of your pppd binary. CFLAGS += '-DPPPD_BINARY="/usr/sbin/pppd"' :[root@messenger:/usr/ports/net/pptp-linux-1.0.2 date/time: Sat Feb 5/20:13:45] 32# ls /usr/sbin/pppd /usr/sbin/pppd* :[root@messenger:/usr/ports/net/pptp-linux-1.0.2 date/time: Sat Feb 5/20:14:01] 34# grep -e PTYMAX * pptp.c: char ptydev[PTYMAX], ttydev[TTYMAX]; pty.h:#define PTYMAX (strlen(PTYDEV)+1) pty.h: * at least PTYMAX characters long), and return file descriptor of :[root@messenger:/usr/ports/net/pptp-linux-1.0.2 date/time: Sat Feb 5/20:15:36] 35# grep -e pty.h pptp.c #include "pty.h" dmesg output seems irrelevant, but if anyone wants more info; just shout. Greetings, rene To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message