On 5/15/07, <b class="gmail_sendername">lizhong zhu</b> <<a href="mailto:zhulizhongum@yahoo.com.cn">zhulizhongum@yahoo.com.cn</a>> wrote:<div><span class="gmail_quote"></span><div><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I compiled asterisk under arm-linux. i am using asterisk 1.4.2. i can run ./configure and menuselect with embedded modules. but running make comes out errors:<br>ranlib libmxml.a<br>[...[ <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
/usr/src/asterisk-1.4.2/include/asterisk/paths.h:23: `PATH_MAX' undeclared here (not in a function)<br>[...]</blockquote><div><br><br>PATH_MAX on the Linux systems I have comes from /usr/include/linux/limits.h, which gets pulled in by a few headers, sys/param.h being the most used one.
<br><br>In my 1.4.4 source tree, this gets pulled in via autoconf, which has this snippet in it's output file include/asterisk/autoconfig.h<br><br>/* Define to 1 if you have the <sys/param.h> header file. */<br>
#define HAVE_SYS_PARAM_H 1<br><br>Check that you indeed have all your headers installed. If PATH_MAX is in an include file, but not one that gets pulled in by including sys/param.h, then the configure script might need to be updated - best to open a bug and attach your
config.log as well as the basic info about your system.<br><br>I suspect that you're just missing the kernel-headers rpm (or equiv for your Linux flavor). That's where I get my linux/limits.h from:<br><br>[root@pbxlab-01
asterisk-1.4.4]# rpm -q --whatprovides /usr/include/linux/limits.h<br>kernel-headers-2.6.18-8.1.3.el5<br>[root@pbxlab-01 asterisk-1.4.4]#<br><br>Many default installs do not include the kernel headers - you either have to choose a "kernel development" package bundle at install time or install them manually after the fact.
<br></div></div><br>-- <br>j.