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

--
[EMAIL PROTECTED]
_______________________________________________
Asterisk-BSD mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Reply via email to