lizhong zhu
2007-May-14 22:01 UTC
[asterisk-users] `PATH_MAX' undeclared here (not in a function) in asterisk!
hello, asteriskers: 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: ranlib libmxml.a make[3]: Leaving directory `/usr/src/asterisk-1.4.2/menuselect/mxml' cc -Wall -o menuselect.o -g -c -D_GNU_SOURCE menuselect.c cc -Wall -o menuselect_curses.o -g -c -D_GNU_SOURCE menuselect_curses.c cc -Wall -o strcompat.o -g -c -D_GNU_SOURCE strcompat.c cc -g -Wall -o menuselect menuselect.o menuselect_curses.o strcompat.o mxml/libmxml.a -lncurses make[2]: Leaving directory `/usr/src/asterisk-1.4.2/menuselect' make[1]: Leaving directory `/usr/src/asterisk-1.4.2/menuselect' menuselect/menuselect --check-deps menuselect.makeopts [CC] stereorize.c -> stereorize.o [CC] frame.c -> frame.o [LD] stereorize.o frame.o -> stereorize [CC] streamplayer.c -> streamplayer.o [LD] streamplayer.o -> streamplayer [CC] aelparse.c -> aelparse.o In file included from /usr/src/asterisk-1.4.2/include/asterisk.h:32, from ael_lex.c:19: /usr/src/asterisk-1.4.2/include/asterisk/paths.h:23: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:24: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:25: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:26: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:27: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:28: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:29: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:30: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:31: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:32: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:33: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:34: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:35: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:36: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:37: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:38: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:39: `PATH_MAX' undeclared here (not in a function) /usr/src/asterisk-1.4.2/include/asterisk/paths.h:40: `PATH_MAX' undeclared here (not in a function) In file included from ael_lex.c:19: does anyone know that problem? please give me a help! thanks! zhulizhong --------------------------------- ????????3.5G???20M??? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070514/0cb55945/attachment.htm
James FitzGibbon
2007-May-15 06:19 UTC
[asterisk-users] `PATH_MAX' undeclared here (not in a function) in asterisk!
On 5/15/07, lizhong zhu <zhulizhongum@yahoo.com.cn> wrote:> 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: > ranlib libmxml.a > [...[ >/usr/src/asterisk-1.4.2/include/asterisk/paths.h:23: `PATH_MAX' undeclared> here (not in a function) > [...]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. 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 /* Define to 1 if you have the <sys/param.h> header file. */ #define HAVE_SYS_PARAM_H 1 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. 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: [root@pbxlab-01 asterisk-1.4.4]# rpm -q --whatprovides /usr/include/linux/limits.h kernel-headers-2.6.18-8.1.3.el5 [root@pbxlab-01 asterisk-1.4.4]# 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. -- j. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070515/ccddebb7/attachment.htm
Possibly Parallel Threads
- make: expand.c:489: allocated_variable_append: Assertion `current_variable_set_list->next != 0' failed.
- error - sources for the 2.6.18-92.1.22.el5xen kernel
- Re: zapata with Tiger3XX compilation error
- issue with installtion asterisk
- Can't compile on NSLU2 LE