Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2000 20:22:41 +0100
From:      rene@xs4all.nl
To:        questions@freebsd.org
Subject:   pptp not compiling...
Message-ID:  <18849.000205@xs4all.nl>

next in thread | raw e-mail | index | archive | help
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 <mailto:rene@xs4all.nl>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18849.000205>