[Asterisk-bsd] Asterisk on NetBSD.

Robin-David Hammond %KB3IEN asterisk at kb3ien.us
Mon Aug 21 05:42:35 MST 2006


This is a new one:

include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                  from include/asterisk/linkedlists.h:23,
                  from include/asterisk/chanvars.h:26,
                  from include/asterisk/channel.h:111,
                  from include/asterisk/pbx.h:27,
                  from cli.c:41:
/usr/include/pthread.h:309:1: warning: this is the location of the 
previous definition
In file included from include/asterisk/linkedlists.h:23,
                  from include/asterisk/chanvars.h:26,
                  from include/asterisk/channel.h:111,
                  from include/asterisk/pbx.h:27,
                  from cli.c:41:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" 
redefined
In file included from include/asterisk/lock.h:26,
                  from include/asterisk/linkedlists.h:23,
                  from include/asterisk/chanvars.h:26,
                  from include/asterisk/channel.h:111,
                  from include/asterisk/pbx.h:27,
                  from cli.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the 
previous definition
cli.c:49:30: asterisk/version.h: No such file or directory
cli.c: In function `handle_version':
cli.c:414: error: `ASTERISK_VERSION' undeclared (first use in this 
function)
cli.c:414: error: (Each undeclared identifier is reported only once
cli.c:414: error: for each function it appears in.)
cli.c: In function `ast_cli_completion_matches':
cli.c:1249: warning: subscript has type `char'
cli.c:1249: warning: subscript has type `char'
gmake: *** [cli.o] Error 1

The only two files with 'version' in thier name are '.version' and 
./build_tools/make_version_h



On 
Sat, 19 Aug 2006, Kim Culhan wrote:

> From: "Kim Culhan" <w8hdkim at gmail.com>
> To: "Asterisk on BSD discussion" <asterisk-bsd at lists.digium.com>
> Subject: Re: [Asterisk-bsd] Asterisk on NetBSD.
> 
> On Fri, August 18, 2006 22:02, Robin-David Hammond %KB3IEN wrote:
> 
> > I tried gcc 3.3.3 with devel/ncurses installed via pksrc.But the linker
> > seems to not see it.
> >
> > This is asterisk 1.2.10 not the 1.2.9.1 in pkgsrc.
> >
> > Any one had any success with asterisk on netbsd?
> >
> > gcc -c -o buildinfo.o  -pipe  -Wall -Wstrict-prototypes
> > -Wmissing-prototypes
> > -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include
> > -D_REENTRANT -D_GNU_SOURCE  -O6 -I/usr/local/include -L/usr/local/lib
> > -pthread
> > -fomit-frame-pointer  buildinfo.c
> > gcc -g3  -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 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 utils.o
> > plc.o jitterbuf.o dnsmgr.o devicestate.o netsock.o slinfactory.o
> > ast_expr2.o ast_expr2f.o cryptostub.o buildinfo.o editline/libedit.a
> > db1-ast/libdb1.a stdtime/libtime.a -lncurses -lm -lpthread -lcrypto -lm
>                                                               ^^^^^^^^^
> This causes the linker to look for libncurses in the LD_LIBRARY_PATH
> 
> > -L/usr/pkg/lib -lncurses -lssla
>    ^^^^^^^^^^^^^
> This now causes the linker to look for libraries referenced with
> -l[whatever] in /usr/pkg/lib
> 
> Looks like you need to remove the second reference to -lncurses
> 
> You might take a look in the Makefile for this and remove -lncurses
> where it appears after -L/usr/pkg/src
> 
> Also, is there really a libssla.* ?
> 
> -kim
> 
> --
> w8hdkim at gmail.com
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>


Robin-David Hammond     KB3IEN
+1 347 350 34 00



More information about the Asterisk-BSD mailing list