[Asterisk-bsd] Asterisk on NetBSD.

Robin-David Hammond %KB3IEN asterisk at kb3ien.us
Fri Aug 18 19:02:30 MST 2006



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 -L/usr/pkg/lib -lncurses -lssl
ld: cannot find -lncurses
gmake: *** [asterisk] Error 1





On Thu, 17 Aug 2006, Robin-David Hammond %KB3IEN wrote:

> Date: Thu, 17 Aug 2006 01:31:40 +0000 (UTC)
> From: Robin-David Hammond %KB3IEN <asterisk at kb3ien.us>
> Reply-To: Asterisk on BSD discussion <asterisk-bsd at lists.digium.com>
> To: asterisk-bsd at lists.digium.com
> Subject: [Asterisk-bsd] asterisk-1.2.9.1 from pkgsrc.
> 
> 
> This is a build from pkgsrc. It apears that the -arch option is not 
> understood.
> 
> This is a mono-processor system.
> 
> cpu0 at mainbus0: 603ev (Revision 2.1), ID 0 (primary)
> cpu0: HID0 90c001<DOZE,DPM,ICE,DCE,NOPTI>
> cpu0: ohare L2 cache enabled
> 
> The logicboard is a PowerComputing Valkyrie, the OS is netbsd-3.0.1
> 
> i would expect -mpowerpc and -mcpu=603 in this case. Any suggestions?
> 
> 
> /usr/include/pthread.h:306:1: warning: this is the location of the previous 
> definition
> In file included from codec_gsm.c:40:
> ../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
> In file included from ../include/asterisk/lock.h:26,
>                 from codec_gsm.c:40:
> /usr/include/pthread.h:311:1: warning: this is the location of the previous 
> definition
> In file included from codec_gsm.c:40:
> ../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
> In file included from ../include/asterisk/lock.h:26,
>                 from codec_gsm.c:40:
> /usr/include/pthread.h:307:1: warning: this is the location of the previous 
> definition
> In file included from codec_gsm.c:40:
> ../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
> In file included from ../include/asterisk/lock.h:26,
>                 from codec_gsm.c:40:
> /usr/include/pthread.h:308:1: warning: this is the location of the previous 
> definition
> In file included from codec_gsm.c:40:
> ../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
> In file included from ../include/asterisk/lock.h:26,
>                 from codec_gsm.c:40:
> /usr/include/pthread.h:309:1: warning: this is the location of the previous 
> definition
> In file included from codec_gsm.c:40:
> ../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
> In file included from ../include/asterisk/lock.h:26,
>                 from codec_gsm.c:40:
> /usr/include/pthread.h:310:1: warning: this is the location of the previous 
> definition
> /usr/local/bin/gmake -C gsm lib/libgsm.a
> gmake[2]: Entering directory 
> `/usr/pkgsrc/comms/asterisk/work/asterisk-1.2.9.1/codecs/gsm'
> if [ ! -d ./lib ] ; then mkdir ./lib ; fi
> gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/local/include 
> -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread 
> -fomit-frame-pointer  -fPIC -I/usr/local/include -L/usr/local/lib  -c 
> -DNeedFunctionPrototypes=1 -funroll-loops -march=powerpc -fPIC -DSASR 
> -DNDEBUG    -DWAV49   -I./inc src/add.c
> cc1: error: invalid option `arch=powerpc'
> gmake[2]: *** [src/add.o] Error 1
> gmake[2]: Leaving directory 
> `/usr/pkgsrc/comms/asterisk/work/asterisk-1.2.9.1/codecs/gsm'
> gmake[1]: *** [gsm/lib/libgsm.a] Error 2
> gmake[1]: Leaving directory 
> `/usr/pkgsrc/comms/asterisk/work/asterisk-1.2.9.1/codecs'
> gmake: *** [subdirs] Error 1
> *** Error code 2
> 
> 
> 
> 
> Robin-David Hammond     KB3IEN
> +1 347 350 34 00
> 
> _______________________________________________
> 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