Posted: Sat Apr 01, 2000 2:52 am Post subject: [Asterisk] Compile
Trying to compile asterisk-0.1.2 I get the following errors.
Im sure its something Im doing stupid. I would appreciate any help at all.
Thanks
gcc -o asterisk -rdynamic 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 asterisk.o -ldl -lpthread
-lreadline
/usr/lib/libreadline.a(display.o): In function `rl_redisplay':
display.o(.text+0xb6e): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `update_line':
display.o(.text+0x10de): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `_rl_update_final':
display.o(.text+0x16a7): undefined reference to `tputs'
display.o(.text+0x16e8): undefined reference to `tputs'
display.o(.text+0x177c): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o)(.text+0x17e2): more undefined references to
`tputs' follow
/usr/lib/libreadline.a(display.o): In function `delete_chars':
display.o(.text+0x2059): undefined reference to `tgoto'
display.o(.text+0x2068): undefined reference to `tputs'
display.o(.text+0x2095): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `insert_some_chars':
display.o(.text+0x20c7): undefined reference to `tgoto'
display.o(.text+0x20d7): undefined reference to `tputs'
display.o(.text+0x210a): undefined reference to `tputs'
display.o(.text+0x2138): undefined reference to `tputs'
display.o(.text+0x216b): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o): In function `cr':
display.o(.text+0x2194): undefined reference to `tputs'
/usr/lib/libreadline.a(display.o)(.text+0x222c): more undefined references to
`tputs' follow
/usr/lib/libreadline.a(terminal.o): In function `_rl_get_screen_size':
terminal.o(.text+0x8e): undefined reference to `tgetnum'
terminal.o(.text+0xea): undefined reference to `tgetnum'
/usr/lib/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
terminal.o(.text+0x1f3): undefined reference to `tgetent'
terminal.o(.text+0x2d5): undefined reference to `tgetstr'
terminal.o(.text+0x30c): undefined reference to `PC'
terminal.o(.text+0x311): undefined reference to `BC'
terminal.o(.text+0x31b): undefined reference to `UP'
terminal.o(.text+0x36f): undefined reference to `tgetflag'
terminal.o(.text+0x385): undefined reference to `tgetflag'
terminal.o(.text+0x3d9): undefined reference to `tgetflag'
terminal.o(.text+0x3ed): undefined reference to `tgetflag'
/usr/lib/libreadline.a(terminal.o): In function `ding':
terminal.o(.text+0x636): undefined reference to `tputs'
/usr/lib/libreadline.a(terminal.o): In function `_rl_backspace':
terminal.o(.text+0x711): undefined reference to `tputs'
/usr/lib/libreadline.a(terminal.o): In function `_rl_enable_meta_key':
terminal.o(.text+0x765): undefined reference to `tputs'
/usr/lib/libreadline.a(terminal.o): In function `_rl_control_keypad':
terminal.o(.text+0x796): undefined reference to `tputs'
collect2: ld returned 1 exit status
make: *** [asterisk] Error 1
Gary Dewrell
We love feedback
Please let us know how
we are doing. Email
feedback@vvm.com
Gary Dewrell
We love feedback
Please let us know how
we are doing. Email
feedback@vvm.com
Hi Gary (and others)
I'm getting the exact same error message.
Stats: Mandrake Linux 7.0 (Air)
glibc-2.1.2-9mdk
readline-4.0-6mdk
readline-devel-4.0-6mdk
Hmmm...
so,
grep "tputs" /usr/include/readline/*
yields absolutely nothing, evidently, readline is higher-level, and just
wrapping around some low-level put-string function (I'm guessing that
the "t" of tputs is "T"erminal, and the puts is "PUT-String")
I'm new to this mail-list, but have been reading the archives on
asteriskpbx.com... I'm trying to get up to speed asap on this
codebase. This is my first day. I'll have plenty of questions myself.
I've got two Quicknet Internet PhoneJACK(tm) cards, and two USR Voice
modems, (usable by vgetty, I think)
I'm planning on having a 2-line PBX running by end-of-weekend. Wish me
luck! :)
Thank you that solved that one now on to the next one hehehehe
Supidity Flames accepted! hehe
for x in channels pbx apps codecs formats; do make -C $x || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk-0.1.2/channels'
gcc -pipe -Wall -Werror -Wmissing-prototypes -Wmissing-declarations -O6 -g
-Iinclude -I../include -D_REENTRANT -march=i586 -c chan_phone.c -o
chan_phone.o
chan_phone.c: In function `mkif':
chan_phone.c:798: `PHONE_VAD' undeclared (first use in this function)
chan_phone.c:798: (Each undeclared identifier is reported only once
chan_phone.c:798: for each function it appears in.)
make[1]: *** [chan_phone.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-0.1.2/channels'
make: *** [subdirs] Error 1
Gary Dewrell
We love feedback
Please let us know how
we are doing. Email
feedback@vvm.com
>
I am not sure what "Supidity Flames" are... but you could have at least
read the archive of this mailing list.
This issue has been discussed a few times. I know there's no "search"
capability on the Asterisk mailing list archive, but there's only a
hundred or so messages for each of Feb, & Mar., you could at least scan
the summaries very quickly to look for similar error messages, since
that would save you lots of time rather than sending the same question
to the list again, and having to wait for the response(s).
Basically, you need to upgrade your quicknet driver. There is one built
into the kernel source that your compiler is referencing the ixj.h
header file from, but there is a newer one available on Quicknet's site.
Eventually, there should be a autoconf configuration, so Asterisk would
have a "./configure;make" step, which would be able to discover WHICH
version of ixj.h/.c you have... :)
--
David Kaiser, Senior Linux Consultant, Linuxcare, Inc.
888.546.4878 x521 tel
dkaiser@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
Thank you that solved that one now on to the next one hehehehe
Supidity Flames accepted! hehe
for x in channels pbx apps codecs formats; do make -C $x || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk-0.1.2/channels'
gcc -pipe -Wall -Werror -Wmissing-prototypes -Wmissing-declarations -O6 -g
-Iinclude -I../include -D_REENTRANT -march=i586 -c chan_phone.c -o
chan_phone.o
chan_phone.c: In function `mkif':
chan_phone.c:798: `PHONE_VAD' undeclared (first use in this function)
chan_phone.c:798: (Each undeclared identifier is reported only once
chan_phone.c:798: for each function it appears in.)
make[1]: *** [chan_phone.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-0.1.2/channels'
make: *** [subdirs] Error 1
Gary Dewrell
We love feedback
Please let us know how
we are doing. Email
feedback@vvm.com
On Sat, 1 Apr 2000, David Kaiser wrote:
Quote:
Date: Sat, 01 Apr 2000 15:05:36 -0800
From: David Kaiser <dkaiser@linuxcare.com>
Reply-To: asterisk@marko.net
To: asterisk@marko.net
Subject: Re: [Asterisk] Compile
Gary Dewrell wrote:
>
> Trying to compile asterisk-0.1.2 I get the following errors.
>
> Im sure its something Im doing stupid. I would appreciate any help at all.
>
> Thanks
>
> gcc -o asterisk -rdynamic 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 asterisk.o -ldl -lpthread
> -lreadline
> /usr/lib/libreadline.a(display.o): In function `rl_redisplay':
> display.o(.text+0xb6e): undefined reference to `tputs'
[[PORTIONS DELETED]]
> Gary Dewrell
> We love feedback
> Please let us know how
> we are doing. Email
> feedback@vvm.com
Hi Gary (and others)
I'm getting the exact same error message.
Stats: Mandrake Linux 7.0 (Air)
glibc-2.1.2-9mdk
readline-4.0-6mdk
readline-devel-4.0-6mdk
Hmmm...
so,
grep "tputs" /usr/include/readline/*
yields absolutely nothing, evidently, readline is higher-level, and just
wrapping around some low-level put-string function (I'm guessing that
the "t" of tputs is "T"erminal, and the puts is "PUT-String")
I'm new to this mail-list, but have been reading the archives on
asteriskpbx.com... I'm trying to get up to speed asap on this
codebase. This is my first day. I'll have plenty of questions myself.
I've got two Quicknet Internet PhoneJACK(tm) cards, and two USR Voice
modems, (usable by vgetty, I think)
I'm planning on having a 2-line PBX running by end-of-weekend. Wish me
luck! :)
Eventually, there should be a autoconf configuration, so Asterisk would
have a "./configure;make" step, which would be able to discover WHICH
version of ixj.h/.c you have... :)
Yes, I'm working on this right now :) I've been slow because I must pack
everything to move to Denver next week.
For what it's worth, I've put #ifdef PHONE_VAD's around that in CVS, so
that build problem won't exist with the next release.
Mark
-------------------------------------------------------------------------
Mark Spencer, President Free and Commercial Linux Support
Linux Support Services, LLC On the web or on the phone
923 Stage Road Suite F
Auburn, AL 36830 http://www.linux-support.net
(334) 887-1042 staff@linux-support.net
Toll free: (877) LINUX-ME
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum