[Asterisk-bsd] Compile Asterisk with FreeBSD
Kim Culhan
w8hdkim at gmail.com
Sun Jul 30 06:48:06 MST 2006
On Sat, July 29, 2006 20:54, Matthias Fechner wrote:
> Hi,
>
>
> i tried to compile today the new version of Asterisk (1.2.9.1_1) on
> FreeBSD 6.1, but the port devel/newt fails.
> I got the following errormessage:
> ===> Building for newt-0.51.0_3
> cc -g -L/usr/local/lib -L/usr/local/lib -o test test.o libnewt.a -lslang
> -lm -lpopt -lncurses -static
> /usr/local/lib/libslang.a(sldisply.o)(.text+0x2bdc): In function
> SLtt_tgetstr':
> : undefined reference to tgetstr'
> /usr/local/lib/libslang.a(sldisply.o)(.text+0x2c3b): In function
> SLtt_tgetnum':
> : undefined reference to tgetnum'
> /usr/local/lib/libslang.a(sldisply.o)(.text+0x2c6b): In function
> SLtt_tgetflag':
> : undefined reference to tgetflag'
> /usr/local/lib/libslang.a(sldisply.o)(.text+0x2e83): In function
> SLtt_initialize':
> : undefined reference to tgetent'
> *** Error code 1
>
>
> Has anyone success in compiling newt?
Just tried it and it compiles with no problems..
Looks like there is something causing the linker to not find libraries in the
/usr/lib location
The references above appear to be in libncurses which is located in /usr/lib
Looking for these symbols in libncurses:
nm libncurses.a|grep tget
00000138 T tgetent
0000068c T tgetflag
00000718 T tgetnum
000007b8 T tgetstr
Try running this:
ldconfig -aout -elf /usr/lib
-kim
--
w8hdkim at gmail.com
More information about the Asterisk-BSD
mailing list