After doing "cvs checkout -r v1-0_stable asterisk" and typing the usual "make clean ; make install", I got these messages: ... make[1]: Entering directory `/usr/src/asterisk/codecs' make -C gsm lib/libgsm.a make[2]: Entering directory `/usr/src/asterisk/codecs/gsm' /var/spool/asterisk -o src/k6opt.o src/k6opt.s make[2]: execvp: /var/spool/asterisk: Permission denied make[2]: *** [src/k6opt.o] Error 127 make[2]: Leaving directory `/usr/src/asterisk/codecs/gsm' make[1]: *** [gsm/lib/libgsm.a] Error 2 make[1]: Leaving directory `/usr/src/asterisk/codecs' make: *** [subdirs] Error 1 # It looks like something has gone badly wrong here, but I can't make any sense out of it. I dug around looking for 'k6opt*', and found them in codecs/gsm/src, and presumably that's what it was trying to compile, but this isn't much of a clue. There's no libgsm.a in any directory. From the look of the line starting with "/var/spool/asterisk", I'd guess that some macro in some makefile has come up undefined, but that's not much info, either. Any idea what it might be trying to tell me?
Could you have asterisk running and not allowing you to overwrite while trying to install? Do you have root rights to create files in the asterisk folders? John Chambers wrote:>After doing "cvs checkout -r v1-0_stable asterisk" and typing the >usual "make clean ; make install", I got these messages: > >... >make[1]: Entering directory `/usr/src/asterisk/codecs' >make -C gsm lib/libgsm.a >make[2]: Entering directory `/usr/src/asterisk/codecs/gsm' >/var/spool/asterisk -o src/k6opt.o src/k6opt.s >make[2]: execvp: /var/spool/asterisk: Permission denied >make[2]: *** [src/k6opt.o] Error 127 >make[2]: Leaving directory `/usr/src/asterisk/codecs/gsm' >make[1]: *** [gsm/lib/libgsm.a] Error 2 >make[1]: Leaving directory `/usr/src/asterisk/codecs' >make: *** [subdirs] Error 1 ># > >It looks like something has gone badly wrong here, but I can't make any sense >out of it. I dug around looking for 'k6opt*', and found them in >codecs/gsm/src, and presumably that's what it was trying to compile, but this >isn't much of a clue. There's no libgsm.a in any directory. From the look of >the line starting with "/var/spool/asterisk", I'd guess that some macro in >some makefile has come up undefined, but that's not much info, either. > >Any idea what it might be trying to tell me? > > > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >
On Tue, 30 Mar 2004, John Chambers wrote:> Another worrying thing that I've noticed: The stuff at the start > of the make (that scrolls off the top too fast to read ;-) first does > a mkdep, and then these messages appear: > > cli.c:31:19: build.h: No such file or directory > dlfcn.c:40:25: mach-o/dyld.h: No such file or directory > dlfcn.c:41:26: mach-o/nlist.h: No such file or directory > dlfcn.c:42:28: mach-o/getsect.h: No such file or directory > > Sure enough, those files don't exist. Some time later, build.h does > appear, when the Makefile runs make_build.h. It seems a bit odd that > the Makefile would attempt to use build.h before creating it. This > looks like a sign of something wrong, but I can't tell what. Any > idea how to fix this? Or is it actually a problem?The mkdep simply builds .depend files in each directory of the source tree. make uses this to determine what needs to be rebuilt if one of the header files has changed. There is nothing to worry about at all with that part. It looks like either your CC line in the Makefile has been changed, or perhaps your overriding it somehow. Make sure your using unmodified code. /var/spool/asterisk is a directory not an executable, and make should be calling gcc instead of /var/spool/asterisk James