Robin CalmegÄrd Siurua
2004-Jun-17 14:30 UTC
[Asterisk-Users] Compiling problem on Debian
Hi, I can't compile Asterisk on a Debian machine. gcc -g -o asterisk -Wl,-E io.o sched.o logger.o frame.o loader.o config.o channel.o translate.o file.o say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o ast_expr.o dsp.o chanvars.o indications.o autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o -ldl -lpthread -lncurses -lm -lresolv editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a qeditline/libedit.a(editline.o_a)(.text+0x7e6a): In function `term_move_to_line': /home/robin/asterisk-0.9.0/editline/term.c:554: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x7e7e):/home/robin/asterisk-0.9.0/editline/term.c:554: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x7ef7):/home/robin/asterisk-0.9.0/editline/term.c:567: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x7f0b):/home/robin/asterisk-0.9.0/editline/term.c:567: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x7f40):/home/robin/asterisk-0.9.0/editline/term.c:572: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x7fc0): In function `term_move_to_char': /home/robin/asterisk-0.9.0/editline/term.c:607: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x800e):/home/robin/asterisk-0.9.0/editline/term.c:611: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x80bc):/home/robin/asterisk-0.9.0/editline/term.c:643: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x80d0):/home/robin/asterisk-0.9.0/editline/term.c:643: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x824c): In function `term_deletechars': /home/robin/asterisk-0.9.0/editline/term.c:734: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x8289):/home/robin/asterisk-0.9.0/editline/term.c:739: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x82be):/home/robin/asterisk-0.9.0/editline/term.c:743: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x82f0):/home/robin/asterisk-0.9.0/editline/term.c:746: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x836a): In function `term_insertwrite': /home/robin/asterisk-0.9.0/editline/term.c:775: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x837e):/home/robin/asterisk-0.9.0/editline/term.c:775: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x83d9):/home/robin/asterisk-0.9.0/editline/term.c:782: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x8417):/home/robin/asterisk-0.9.0/editline/term.c:790: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x8435):/home/robin/asterisk-0.9.0/editline/term.c:792: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x8463):/home/robin/asterisk-0.9.0/editline/term.c:797: undefined reference to `tputs' editline/libedit.a(editline.o_a)(.text+0x849e):/home/robin/asterisk-0.9.0/editline/term.c:805: more undefined references to `tputs' follow editline/libedit.a(editline.o_a)(.text+0x86e2): In function `term_set': /home/robin/asterisk-0.9.0/editline/term.c:911: undefined reference to `tgetent' editline/libedit.a(editline.o_a)(.text+0x87d6):/home/robin/asterisk-0.9.0/editline/term.c:929: undefined reference to `tgetflag' editline/libedit.a(editline.o_a)(.text+0x87ea):/home/robin/asterisk-0.9.0/editline/term.c:930: undefined reference to `tgetflag' editline/libedit.a(editline.o_a)(.text+0x87ff):/home/robin/asterisk-0.9.0/editline/term.c:932: undefined reference to `tgetflag' editline/libedit.a(editline.o_a)(.text+0x8811):/home/robin/asterisk-0.9.0/editline/term.c:933: undefined reference to `tgetflag' editline/libedit.a(editline.o_a)(.text+0x8823):/home/robin/asterisk-0.9.0/editline/term.c:935: undefined reference to `tgetflag' editline/libedit.a(editline.o_a)(.text+0x8835):/home/robin/asterisk-0.9.0/editline/term.c:936: more undefined references to `tgetflag' follow editline/libedit.a(editline.o_a)(.text+0x8847): In function `term_set': /home/robin/asterisk-0.9.0/editline/term.c:938: undefined reference to `tgetnum' editline/libedit.a(editline.o_a)(.text+0x8859):/home/robin/asterisk-0.9.0/editline/term.c:939: undefined reference to `tgetnum' editline/libedit.a(editline.o_a)(.text+0x8881):/home/robin/asterisk-0.9.0/editline/term.c:941: undefined reference to `tgetstr' editline/libedit.a(editline.o_a)(.text+0x96b4): In function `term_echotc': /home/robin/asterisk-0.9.0/editline/term.c:1439: undefined reference to `tgetstr' editline/libedit.a(editline.o_a)(.text+0x9843):/home/robin/asterisk-0.9.0/editline/term.c:1518: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x99f9):/home/robin/asterisk-0.9.0/editline/term.c:1574: undefined reference to `tgoto' editline/libedit.a(editline.o_a)(.text+0x9a0d):/home/robin/asterisk-0.9.0/editline/term.c:1574: undefined reference to `tputs' collect2: ld returned 1 exit status make: *** [asterisk] Fel 1 homer:/home/robin/asterisk-0.9.0# uname -a Linux homer 2.4.26-1-386 #2 Sat May 1 16:31:24 EST 2004 i686 GNU/Linux homer:/home/robin/asterisk-0.9.0# What is wrong? :/ /Robin -- Robin Calmeg?rd Siurua CEO/developer RoCaS - development & support tel +46 8 505 556 80 fax +46 8 505 556 79 mobile +46 73 643 68 05 robin@rocas.se www.rocas.se
If you use the mepis debian release, it's a piece of cake to install *. It takes about 15 minutes to install Mepis and *. www.mepis.org Paul Paul Mahler pmahler@signate.com Signate, LLC 665 Third Street Suite 100 San Francisco, CA 94107-1901 Asterisk Services and Training> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Robin Calmeg?rd Siurua > Sent: Thursday, June 17, 2004 1:30 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Compiling problem on Debian > > Hi, > > I can't compile Asterisk on a Debian machine. > > gcc -g -o asterisk -Wl,-E io.o sched.o logger.o frame.o > loader.o config.o channel.o translate.o file.o say.o pbx.o > cli.o md5.o term.o ulaw.o alaw.o callerid.o fskmodem.o > image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o > ast_expr.o dsp.o chanvars.o indications.o autoservice.o db.o > privacy.o astmm.o enum.o srv.o dns.o aescrypt.o aestab.o > aeskey.o -ldl -lpthread -lncurses -lm -lresolv > editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a > qeditline/libedit.a(editline.o_a)(.text+0x7e6a): In function > `term_move_to_line': > /home/robin/asterisk-0.9.0/editline/term.c:554: undefined > reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x7e7e):/home/robin/ast > erisk-0.9.0/editline/term.c:554: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x7ef7):/home/robin/ast > erisk-0.9.0/editline/term.c:567: undefined reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x7f0b):/home/robin/ast > erisk-0.9.0/editline/term.c:567: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x7f40):/home/robin/ast > erisk-0.9.0/editline/term.c:572: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x7fc0): In function > `term_move_to_char': > /home/robin/asterisk-0.9.0/editline/term.c:607: undefined > reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x800e):/home/robin/ast > erisk-0.9.0/editline/term.c:611: undefined reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x80bc):/home/robin/ast > erisk-0.9.0/editline/term.c:643: undefined reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x80d0):/home/robin/ast > erisk-0.9.0/editline/term.c:643: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x824c): In function > `term_deletechars': > /home/robin/asterisk-0.9.0/editline/term.c:734: undefined > reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x8289):/home/robin/ast > erisk-0.9.0/editline/term.c:739: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x82be):/home/robin/ast > erisk-0.9.0/editline/term.c:743: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x82f0):/home/robin/ast > erisk-0.9.0/editline/term.c:746: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x836a): In function > `term_insertwrite': > /home/robin/asterisk-0.9.0/editline/term.c:775: undefined > reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x837e):/home/robin/ast > erisk-0.9.0/editline/term.c:775: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x83d9):/home/robin/ast > erisk-0.9.0/editline/term.c:782: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x8417):/home/robin/ast > erisk-0.9.0/editline/term.c:790: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x8435):/home/robin/ast > erisk-0.9.0/editline/term.c:792: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x8463):/home/robin/ast > erisk-0.9.0/editline/term.c:797: undefined reference to `tputs' > editline/libedit.a(editline.o_a)(.text+0x849e):/home/robin/ast > erisk-0.9.0/editline/term.c:805: more undefined references to > `tputs' follow > editline/libedit.a(editline.o_a)(.text+0x86e2): In function > `term_set': > /home/robin/asterisk-0.9.0/editline/term.c:911: undefined > reference to `tgetent' > editline/libedit.a(editline.o_a)(.text+0x87d6):/home/robin/ast > erisk-0.9.0/editline/term.c:929: undefined reference to `tgetflag' > editline/libedit.a(editline.o_a)(.text+0x87ea):/home/robin/ast > erisk-0.9.0/editline/term.c:930: undefined reference to `tgetflag' > editline/libedit.a(editline.o_a)(.text+0x87ff):/home/robin/ast > erisk-0.9.0/editline/term.c:932: undefined reference to `tgetflag' > editline/libedit.a(editline.o_a)(.text+0x8811):/home/robin/ast > erisk-0.9.0/editline/term.c:933: undefined reference to `tgetflag' > editline/libedit.a(editline.o_a)(.text+0x8823):/home/robin/ast > erisk-0.9.0/editline/term.c:935: undefined reference to `tgetflag' > editline/libedit.a(editline.o_a)(.text+0x8835):/home/robin/ast > erisk-0.9.0/editline/term.c:936: more undefined references to > `tgetflag' follow > editline/libedit.a(editline.o_a)(.text+0x8847): In function > `term_set': > /home/robin/asterisk-0.9.0/editline/term.c:938: undefined > reference to `tgetnum' > editline/libedit.a(editline.o_a)(.text+0x8859):/home/robin/ast > erisk-0.9.0/editline/term.c:939: undefined reference to `tgetnum' > editline/libedit.a(editline.o_a)(.text+0x8881):/home/robin/ast > erisk-0.9.0/editline/term.c:941: undefined reference to `tgetstr' > editline/libedit.a(editline.o_a)(.text+0x96b4): In function > `term_echotc': > /home/robin/asterisk-0.9.0/editline/term.c:1439: undefined > reference to `tgetstr' > editline/libedit.a(editline.o_a)(.text+0x9843):/home/robin/ast > erisk-0.9.0/editline/term.c:1518: undefined reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x99f9):/home/robin/ast > erisk-0.9.0/editline/term.c:1574: undefined reference to `tgoto' > editline/libedit.a(editline.o_a)(.text+0x9a0d):/home/robin/ast > erisk-0.9.0/editline/term.c:1574: undefined reference to `tputs' > collect2: ld returned 1 exit status > make: *** [asterisk] Fel 1 > > homer:/home/robin/asterisk-0.9.0# uname -a Linux homer > 2.4.26-1-386 #2 Sat May 1 16:31:24 EST 2004 i686 GNU/Linux > homer:/home/robin/asterisk-0.9.0# > > What is wrong? :/ > > /Robin > > > > > -- > Robin Calmeg?rd Siurua > CEO/developer > RoCaS - development & support > > tel +46 8 505 556 80 > fax +46 8 505 556 79 > mobile +46 73 643 68 05 > robin@rocas.se > www.rocas.se > > _______________________________________________ > 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 Thu, 17 Jun 2004, [ISO-8859-15] Robin Calmeg?rd Siurua wrote:> I can't compile Asterisk on a Debian machine. > What is wrong? :/debian... :-( I was only able to "compile" asterisk when I gave up on doing it by myself and decided to use the debian package (.deb). Do it via apt-get. Remember to add your sites at /etc/apt/sources.list apt-get -t sarge install asterisk/unstable Check this also: http://users.pandora.be/Asterisk-PBX/InstallAsterisk.htm and http://parc.styx.org/asterisk/ Now I have 3 boxes running Asterisk with Debian. Not the most "up to date" CVS but it is working...
On Thu, Jun 17, 2004 at 11:30:11PM +0200, Robin Calmeg?rd Siurua wrote:> Hi, > > I can't compile Asterisk on a Debian machine.I couldn't get asterisk to compile with the default openh323 and libpt packages in debian so I went and grabbed the original source for: pwlib v1.5.2 openh323 v1.12.2 asterisk v1.0 And compiled them all from stratch. Make sure you don't have any old packages lying around to confuse things. Version skew is a problem with the openh323 stuff, if you're going to upgrade any of them to CVS versions you'll probably need to get CVS versions of all of them. Also, I had an issue with openh323 where it didn't use the right c++ compiler, but that's just my setup. Hope this helps, -- Martijn van Oosterhout IT Manager Ecomtel
I had a bit of a problem compiling CVS Asterisk on Debian-Woody, but www.voip-info.org has a debian-specific page that lists the debian packages you will need to apt-get: http://voip-info.org/wiki-Linux+Debian ...after installing these, it compiled without a hitch!
Also, make sure you have the kernel-headers package that matches your kernel-source package.
or a lot easier: Pull the patch i use for my cvs snapshot Debian packages: http://loke.home.marlow.dk/dists/sid/asterisk/patches/01-debian-marlow.diff Apply it to latest cvs. chmod +x debian/rules And compile. Have fun. Kind regards, Martin List-Petersen martin (at) list (dash) petersen (dot) net On Fri, 2004-06-18 at 14:05, Asterisk Developer wrote:> I had a bit of a problem compiling CVS Asterisk on Debian-Woody, but > www.voip-info.org has a debian-specific page that lists the debian > packages you will need to apt-get: > > http://voip-info.org/wiki-Linux+Debian > > ...after installing these, it compiled without a hitch! > > _______________________________________________ > 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