Hello Im trying to install an old version of Asterisk. But it isnt working: when I run "make install": gcc -o gentone gentone.c -lm ./gentone busy 480 620 Wavelength 1 (in samples): 16.66667 Minimum samples (1): 50 (3.000000.3 wavelengths) Wavelength 1 (in samples): 12.90323 Minimum samples (1): 400 (31.000000.3 wavelengths) Need 400 samples Wrote busy.h ./gentone ringtone 440 480 Wavelength 1 (in samples): 18.18182 Minimum samples (1): 200 (11.000000.3 wavelengths) Wavelength 1 (in samples): 16.66667 Minimum samples (1): 50 (3.000000.3 wavelengths) Need 200 samples Wrote ringtone.h gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c -o chan_oss.o chan_oss.c gcc -shared -Xlinker -x -o chan_oss.so chan_oss.o -ldl -lpthread -lncurses -lm -lresolv -lssl gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c -o chan_phone.o chan_phone.c chan_phone.c:41:29: error: linux/compiler.h: No such file or directory make[1]: *** [chan_phone.o] Error 1 make[1]: Leaving directory `/services/asterisk/asterisk-1.2.10/channels' make: *** [subdirs] Error 1 [root@sip asterisk-1.2.10]# Whats happening? I already tried with 3 different versions downloaded from asterisk.org site. Thanks Regards Joao Pereira
On Thu, Apr 12, 2007 at 10:25:37AM +0100, Joao Pereira wrote:> Hello > Im trying to install an old version of Asterisk. > But it isnt working: > > when I run "make install": >> gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT > -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer > -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c > -o chan_phone.o chan_phone.c > chan_phone.c:41:29: error: linux/compiler.h: No such file or directory > make[1]: *** [chan_phone.o] Error 1 > make[1]: Leaving directory `/services/asterisk/asterisk-1.2.10/channels' > make: *** [subdirs] Error 1This is a known problem that has been fixed in later versions of asterisk 1.2 . Alternatively, build the same version withough building chan_phone.so . -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir