Update Question 14.10:

- Rephrase the make(1) command for ppp(8)
- Redirect all the variable hacks to /etc/make.conf
- Use pgrep(1) instead of ps(1) and fgrep(1) combo (suggested by
  trhodes)

Reviewed by:  trhodes
Approved by:  gabor
This commit is contained in:
Gabor Pali 2008-07-05 02:24:32 +00:00
parent 27cafff24a
commit 1a7cfa690e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32436

View file

@ -8568,12 +8568,12 @@ deny pred1 deflate deflate24 protocomp acfcomp shortseq vj</programlisting>
<answer>
<para>Your best bet here is to rebuild &man.ppp.8; by adding
<literal>CFLAGS+=-g</literal> and
<literal>STRIP=</literal> to the end of the Makefile, then
doing a <command>make clean &amp;&amp; make &amp;&amp;
make install</command>. When &man.ppp.8; hangs, find the
&man.ppp.8; process id with <command>ps ajxww | fgrep
<literal>STRIP=</literal> to the end of the <filename>/etc/make.conf</filename>, then
doing a <command>make <maketarget>install</maketarget>
<maketarget>clean</maketarget></command> in <filename>/usr/src/usr.sbin/ppp</filename>. When &man.ppp.8; hangs, find the
&man.ppp.8; process ID with <command>pgrep
ppp</command> and run <command>gdb ppp
<replaceable>PID</replaceable></command>. From the <command>gdb</command>
<replaceable>PID</replaceable></command> (as <command>gdb ppp `pgrep ppp`</command>). From the <command>gdb</command>
prompt, you can then use <command>bt</command> to get a
stack trace.</para>