###
### Thu Feb 14 20:59:21 UTC 2008
### pkgsrc build log for asterisk-1.2.24
###

BULK> Bulk building asterisk-1.2.24
===> Cleaning for asterisk-1.2.24
BULK> Currently installed packages:
* digest-20070803
* checkperms-1.10
* unzip-5.52nb3
* gmake-3.81
* asterisk-sounds-de-x9media-20060714
* pkg_install-20071224
===> Removing installed packages which are not needed to build asterisk-1.2.24
=> Keeping dependency digest-20070803.
=> Keeping dependency checkperms-1.10.
=> Deinstalling unzip-5.52nb3
=> Keeping dependency gmake-3.81.
=> Deinstalling asterisk-sounds-de-x9media-20060714
Executing `/bin/rmdir /usr/pkg/libdata/asterisk/sounds/digits/de 2>/dev/null || true'
Executing `/bin/rmdir /usr/pkg/libdata/asterisk/sounds/de 2>/dev/null || true'
Executing `/bin/rmdir /usr/pkg/libdata/asterisk/sounds 2>/dev/null || true'
=> Deinstalling pkg_install-20071224
Package `pkg_install-20071224' is marked as not for deletion
BULK> Installing dependencies for asterisk-1.2.24.
BULK> Installing /usr/pkgsrc/packages/mipsel/All/bison-2.3.tgz
m4-1.4.10nb2: registering info file /usr/pkg/info/m4.info
bison-2.3: registering info file /usr/pkg/info/bison.info
BULK> Dependency m4-1.4.10nb2 is already installed
BULK> Dependency digest-20070803 is already installed
BULK> Dependency checkperms-1.10 is already installed
BULK> Dependency gmake-3.81 is already installed
BULK> Installing /usr/pkgsrc/packages/mipsel/All/perl-5.8.8nb6.tgz
BULK> Dependency digest-20070803 is already installed
/usr/bin/make package (asterisk-1.2.24)
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Bootstrap dependency checkperms>=1.1: found checkperms-1.10
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `download-vulnerability-list'.
=> Fetching asterisk-1.2.24.tar.gz
=> Total size: 10644451 bytes
ftp: no file after directory (you must specify an output file) `http://ftp.digium.com/'
fetch: Unable to fetch expected file asterisk-1.2.24.tar.gz
=> Checksum SHA1 OK for asterisk-1.2.24.tar.gz
=> Checksum RMD160 OK for asterisk-1.2.24.tar.gz
=> Checksum SHA1 OK for asterisk-1.2.24.tar.gz
=> Checksum RMD160 OK for asterisk-1.2.24.tar.gz
===> Installing dependencies for asterisk-1.2.24
==========================================================================
The supported build options for asterisk are:

	gtk zaptel

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.asterisk (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
asterisk-1.2.24.  Their current value is shown below:

        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Build dependency bison>=1.0: found bison-2.3
=> Build dependency gmake>=3.78: found gmake-3.81
=> Full dependency perl>=5.0: found perl-5.8.8nb6
===> Overriding tools for asterisk-1.2.24
===> Extracting for asterisk-1.2.24
===> Patching for asterisk-1.2.24
=> Applying pkgsrc patches for asterisk-1.2.24
===> Creating toolchain wrappers for asterisk-1.2.24
===> Configuring for asterisk-1.2.24
INFO: [subst.mk:asterisk] Nothing changed in ./Makefile.
=> Replacing Perl interpreter in agi/agi-test.agi.
=> Checking for portability problems in extracted files
===> Building for asterisk-1.2.24
if cmp -s .cleancount .lastclean ; then echo ; else \
		/usr/pkg/bin/gmake clean; cp -f .cleancount .lastclean;\
	fi

build_tools/make_version_h > include/asterisk/version.h.tmp
if cmp -s include/asterisk/version.h.tmp include/asterisk/version.h ; then echo; else \
		mv include/asterisk/version.h.tmp include/asterisk/version.h ; \
	fi
rm -f include/asterisk/version.h.tmp
build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  acl.c aescrypt.c aeskey.c aestab.c alaw.c app.c ast_expr2.c ast_expr2f.c asterisk.c astmm.c autoservice.c buildinfo.c callerid.c cdr.c channel.c chanvars.c cli.c config.c cryptostub.c db.c devicestate.c dlfcn.c dns.c dnsmgr.c dsp.c enum.c file.c frame.c fskmodem.c image.c indications.c io.c jitterbuf.c loader.c logger.c manager.c md5.c muted.c netsock.c pbx.c plc.c poll.c privacy.c rtp.c say.c sched.c slinfactory.c srv.c strcompat.c tdd.c term.c translate.c ulaw.c utils.c
build_tools/make_defaults_h > defaults.h.tmp
if cmp -s defaults.h.tmp defaults.h ; then echo ; else \
		mv defaults.h.tmp defaults.h ; \
	fi
rm -f defaults.h.tmp
for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do /usr/pkg/bin/gmake -C $x depend || exit 1 ; done
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/res'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC `ls *.c`	
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/res'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/channels'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/channels'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/pbx'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/pbx'
curl-config: not found
[[: not found
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/apps'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/apps'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/formats'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/formats'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/agi'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -DNO_AST_MM -I/usr/local/include -L/usr/local/lib `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/agi'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/cdr'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -fPIC -I/usr/local/include `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/cdr'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/funcs'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/funcs'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/utils'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -DNO_AST_MM -I/usr/local/include -L/usr/local/lib `ls *.c`
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/utils'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/stdtime'
../build_tools/mkdep -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  *.c
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/stdtime'
cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="" ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) works... yes
checking whether the C compiler (gcc  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... cpp
checking host system type... mipsel-unknown-netbsd4.0.
checking ABI... elf
checking for a BSD compatible install... install
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for tgetent in -ltermcap... yes
checking for termcap.h... yes
checking for sys/cdefs.h... yes
checking for vis.h... yes
checking for issetugid... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for fgetln... yes
checking for strvis... yes
checking for strunvis... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
/usr/pkg/bin/gmake -C editline libedit.a
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/editline'
/bin/sh makelist -h common.c > common.h
/bin/sh makelist -h emacs.c> emacs.h
/bin/sh makelist -h vi.c > vi.h
/bin/sh makelist -fh common.h emacs.h vi.h > fcns.h
/bin/sh makelist -fc common.h emacs.h vi.h > fcns.c
if uname -s | grep -qi cygwin; then cat fcns.c | sed -e s/"sys\.h"/"config.h"/g > fcns.c.copy; mv --force fcns.c.copy fcns.c; fi
/bin/sh makelist -bh common.c emacs.c vi.c > help.h
/bin/sh makelist -bc common.c emacs.c vi.c > help.c
if uname -s | grep -qi cygwin; then cat help.c | sed -e s/"sys\.h"/"config.h"/g > help.c.copy; mv --force help.c.copy help.c; fi
/bin/sh makelist -e common.c emacs.c vi.c chared.c el.c hist.c key.c map.c parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c fcns.c help.c > editline.c
gcc -c  -Wall -pipe -g3 -I/usr/include '-D_DIAGASSERT(x)=' -I. editline.c -o editline.o_a
In file included from editline.c:5:
emacs.c: In function 'em_upper_case':
emacs.c:297: warning: array subscript has type 'char'
emacs.c: In function 'em_capitol_case':
emacs.c:322: warning: array subscript has type 'char'
emacs.c:329: warning: array subscript has type 'char'
emacs.c: In function 'em_lower_case':
emacs.c:353: warning: array subscript has type 'char'
gcc -c  -Wall -pipe -g3 -I/usr/include '-D_DIAGASSERT(x)=' -I. history.c -o history.o_a
gcc -c  -Wall -pipe -g3 -I/usr/include '-D_DIAGASSERT(x)=' -I. tokenizer.c -o tokenizer.o_a
gcc -c  -Wall -pipe -g3 -I/usr/include '-D_DIAGASSERT(x)=' -I. readline.c -o readline.o_a
/usr/bin/ar cru libedit.a editline.o_a history.o_a tokenizer.o_a readline.o_a
ranlib libedit.a
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/editline'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/db1-ast'
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o hash.o hash/hash.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o hash_bigkey.o hash/hash_bigkey.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o hash_buf.o hash/hash_buf.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o hash_func.o hash/hash_func.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o hash_log2.o hash/hash_log2.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o hash_page.o hash/hash_page.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o ndbm.o hash/ndbm.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_close.o btree/bt_close.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_conv.o btree/bt_conv.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_debug.o btree/bt_debug.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_delete.o btree/bt_delete.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_get.o btree/bt_get.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_open.o btree/bt_open.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_overflow.o btree/bt_overflow.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_page.o btree/bt_page.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_put.o btree/bt_put.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_search.o btree/bt_search.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_seq.o btree/bt_seq.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_split.o btree/bt_split.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o bt_utils.o btree/bt_utils.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -o db.o db/db.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -o mpool.o mpool/mpool.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_close.o recno/rec_close.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_delete.o recno/rec_delete.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_get.o recno/rec_get.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_open.o recno/rec_open.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_put.o recno/rec_put.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_search.o recno/rec_search.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_seq.o recno/rec_seq.c
gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Irecno -o rec_utils.o recno/rec_utils.c
rm -f libdb1.a
ar cq libdb1.a hash.o hash_bigkey.o hash_buf.o hash_func.o hash_log2.o hash_page.o ndbm.o bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o bt_open.o bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o bt_split.o bt_utils.o db.o mpool.o rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o rec_search.o rec_seq.o rec_utils.o 
ranlib libdb1.a
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/db1-ast'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/stdtime'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o localtime.o localtime.c
In file included from localtime.c:57:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from localtime.c:57:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from localtime.c:57:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
ar rv libtime.a localtime.o
ar: creating libtime.a
a - localtime.o
ranlib libtime.a
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/stdtime'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o io.o io.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o sched.o sched.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from sched.c:43:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 sched.c:43:
/usr/include/pthread.h:285: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 sched.c:43:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 sched.c:43:
/usr/include/pthread.h:287: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 sched.c:43:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 sched.c:43:
/usr/include/pthread.h:286: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 sched.c:43:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 sched.c:43:
/usr/include/pthread.h:284: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 sched.c:43:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 sched.c:43:
/usr/include/pthread.h:288: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 sched.c:43:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 sched.c:43:
/usr/include/pthread.h:306: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 sched.c:43:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 sched.c:43:
/usr/include/pthread.h:311: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 sched.c:43:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 sched.c:43:
/usr/include/pthread.h:307: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 sched.c:43:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 sched.c:43:
/usr/include/pthread.h:308: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 sched.c:43:
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 sched.c:43:
/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 sched.c:43:
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 sched.c:43:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o logger.o logger.c
In file included from logger.c:57:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from logger.c:57:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from logger.c:57:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o frame.o frame.c
In file included from frame.c:35:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from frame.c:35:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from frame.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o loader.o loader.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from loader.c:39:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 loader.c:39:
/usr/include/pthread.h:285: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 loader.c:39:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 loader.c:39:
/usr/include/pthread.h:287: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 loader.c:39:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 loader.c:39:
/usr/include/pthread.h:286: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 loader.c:39:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 loader.c:39:
/usr/include/pthread.h:284: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 loader.c:39:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 loader.c:39:
/usr/include/pthread.h:288: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 loader.c:39:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 loader.c:39:
/usr/include/pthread.h:306: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 loader.c:39:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 loader.c:39:
/usr/include/pthread.h:311: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 loader.c:39:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 loader.c:39:
/usr/include/pthread.h:307: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 loader.c:39:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 loader.c:39:
/usr/include/pthread.h:308: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 loader.c:39:
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 loader.c:39:
/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 loader.c:39:
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 loader.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o config.o config.c
In file included from config.c:48:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from config.c:48:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from config.c:48:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o channel.o channel.c
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 channel.c:50:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 channel.c:50:
/usr/include/pthread.h:285: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 channel.c:50:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 channel.c:50:
/usr/include/pthread.h:287: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 channel.c:50:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 channel.c:50:
/usr/include/pthread.h:286: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 channel.c:50:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 channel.c:50:
/usr/include/pthread.h:284: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 channel.c:50:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 channel.c:50:
/usr/include/pthread.h:288: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 channel.c:50:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 channel.c:50:
/usr/include/pthread.h:306: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 channel.c:50:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 channel.c:50:
/usr/include/pthread.h:311: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 channel.c:50:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 channel.c:50:
/usr/include/pthread.h:307: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 channel.c:50:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 channel.c:50:
/usr/include/pthread.h:308: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 channel.c:50:
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 channel.c:50:
/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 channel.c:50:
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 channel.c:50:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o translate.o translate.c
In file included from translate.c:37:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from translate.c:37:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from translate.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o file.o file.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from include/asterisk/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:285: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:287: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:286: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:284: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:288: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:306: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:311: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:307: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/file.h:30,
                 from file.c:41:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:308: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/file.h:30,
                 from file.c:41:
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/file.h:30,
                 from file.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/file.h:30,
                 from file.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/file.h:30,
                 from file.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o say.o say.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from include/asterisk/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:285: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:287: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:286: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:284: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:288: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:306: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:311: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:307: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/file.h:30,
                 from say.c:45:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:308: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/file.h:30,
                 from say.c:45:
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/file.h:30,
                 from say.c:45:
/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/file.h:30,
                 from say.c:45:
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/file.h:30,
                 from say.c:45:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o pbx.o pbx.c
In file included from pbx.c:39:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from pbx.c:39:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from pbx.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
pbx.c: In function 'ast_extension_match':
pbx.c:729: warning: array subscript has type 'char'
pbx.c: In function 'ast_extension_close':
pbx.c:748: warning: array subscript has type 'char'
pbx.c: In function 'get_timerange':
pbx.c:3887: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o cli.o cli.c
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:646:1: warning: "pthread_mutex_lock" 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:285: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:647:1: warning: "pthread_mutex_unlock" 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:287: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:648:1: warning: "pthread_mutex_trylock" 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:286: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:649:1: warning: "pthread_mutex_init" 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:284: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:650:1: warning: "pthread_mutex_destroy" 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:288: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:652:1: warning: "pthread_cond_init" 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:306: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:653:1: warning: "pthread_cond_destroy" 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:311: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:654:1: warning: "pthread_cond_signal" 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:307: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:655:1: warning: "pthread_cond_broadcast" 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:308: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: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: In function 'ast_cli_completion_matches':
cli.c:1249: warning: array subscript has type 'char'
cli.c:1249: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o md5.o md5.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o term.o term.c
In file included from term.c:42:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from term.c:42:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from term.c:42:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o ulaw.o ulaw.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o alaw.o alaw.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o callerid.o callerid.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from callerid.c:40:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 callerid.c:40:
/usr/include/pthread.h:285: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 callerid.c:40:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 callerid.c:40:
/usr/include/pthread.h:287: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 callerid.c:40:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 callerid.c:40:
/usr/include/pthread.h:286: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 callerid.c:40:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 callerid.c:40:
/usr/include/pthread.h:284: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 callerid.c:40:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 callerid.c:40:
/usr/include/pthread.h:288: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 callerid.c:40:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 callerid.c:40:
/usr/include/pthread.h:306: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 callerid.c:40:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 callerid.c:40:
/usr/include/pthread.h:311: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 callerid.c:40:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 callerid.c:40:
/usr/include/pthread.h:307: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 callerid.c:40:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 callerid.c:40:
/usr/include/pthread.h:308: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 callerid.c:40:
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 callerid.c:40:
/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 callerid.c:40:
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 callerid.c:40:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
callerid.c: In function 'callerid_get_dtmf':
callerid.c:207: warning: array subscript has type 'char'
callerid.c:214: warning: array subscript has type 'char'
callerid.c:220: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o fskmodem.o fskmodem.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o image.o image.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from image.c:40:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 image.c:40:
/usr/include/pthread.h:285: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 image.c:40:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 image.c:40:
/usr/include/pthread.h:287: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 image.c:40:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 image.c:40:
/usr/include/pthread.h:286: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 image.c:40:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 image.c:40:
/usr/include/pthread.h:284: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 image.c:40:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 image.c:40:
/usr/include/pthread.h:288: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 image.c:40:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 image.c:40:
/usr/include/pthread.h:306: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 image.c:40:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 image.c:40:
/usr/include/pthread.h:311: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 image.c:40:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 image.c:40:
/usr/include/pthread.h:307: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 image.c:40:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 image.c:40:
/usr/include/pthread.h:308: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 image.c:40:
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 image.c:40:
/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 image.c:40:
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 image.c:40:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o app.o app.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from app.c:41:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app.c:41:
/usr/include/pthread.h:285: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 app.c:41:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app.c:41:
/usr/include/pthread.h:287: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 app.c:41:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app.c:41:
/usr/include/pthread.h:286: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 app.c:41:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app.c:41:
/usr/include/pthread.h:284: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 app.c:41:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app.c:41:
/usr/include/pthread.h:288: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 app.c:41:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app.c:41:
/usr/include/pthread.h:306: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 app.c:41:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app.c:41:
/usr/include/pthread.h:311: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 app.c:41:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app.c:41:
/usr/include/pthread.h:307: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 app.c:41:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app.c:41:
/usr/include/pthread.h:308: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 app.c:41:
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 app.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 app.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 app.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o cdr.o cdr.c
In file included from cdr.c:42:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from cdr.c:42:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from cdr.c:42:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o tdd.o tdd.c
tdd.c: In function 'tdd_generate':
tdd.c:263: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o acl.o acl.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from acl.c:66:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 acl.c:66:
/usr/include/pthread.h:285: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 acl.c:66:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 acl.c:66:
/usr/include/pthread.h:287: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 acl.c:66:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 acl.c:66:
/usr/include/pthread.h:286: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 acl.c:66:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 acl.c:66:
/usr/include/pthread.h:284: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 acl.c:66:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 acl.c:66:
/usr/include/pthread.h:288: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 acl.c:66:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 acl.c:66:
/usr/include/pthread.h:306: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 acl.c:66:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 acl.c:66:
/usr/include/pthread.h:311: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 acl.c:66:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 acl.c:66:
/usr/include/pthread.h:307: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 acl.c:66:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 acl.c:66:
/usr/include/pthread.h:308: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 acl.c:66:
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 acl.c:66:
/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 acl.c:66:
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 acl.c:66:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o rtp.o rtp.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from include/asterisk/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:285: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:287: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:286: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:284: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:288: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:306: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:311: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:307: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/rtp.h:32,
                 from rtp.c:43:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:308: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/rtp.h:32,
                 from rtp.c:43:
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/rtp.h:32,
                 from rtp.c:43:
/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/rtp.h:32,
                 from rtp.c:43:
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/rtp.h:32,
                 from rtp.c:43:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o manager.o manager.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from manager.c:51:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 manager.c:51:
/usr/include/pthread.h:285: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 manager.c:51:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 manager.c:51:
/usr/include/pthread.h:287: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 manager.c:51:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 manager.c:51:
/usr/include/pthread.h:286: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 manager.c:51:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 manager.c:51:
/usr/include/pthread.h:284: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 manager.c:51:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 manager.c:51:
/usr/include/pthread.h:288: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 manager.c:51:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 manager.c:51:
/usr/include/pthread.h:306: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 manager.c:51:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 manager.c:51:
/usr/include/pthread.h:311: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 manager.c:51:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 manager.c:51:
/usr/include/pthread.h:307: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 manager.c:51:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 manager.c:51:
/usr/include/pthread.h:308: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 manager.c:51:
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 manager.c:51:
/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 manager.c:51:
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 manager.c:51:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o asterisk.o asterisk.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from asterisk.c:98:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 asterisk.c:98:
/usr/include/pthread.h:285: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 asterisk.c:98:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 asterisk.c:98:
/usr/include/pthread.h:287: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 asterisk.c:98:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 asterisk.c:98:
/usr/include/pthread.h:286: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 asterisk.c:98:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 asterisk.c:98:
/usr/include/pthread.h:284: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 asterisk.c:98:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 asterisk.c:98:
/usr/include/pthread.h:288: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 asterisk.c:98:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 asterisk.c:98:
/usr/include/pthread.h:306: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 asterisk.c:98:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 asterisk.c:98:
/usr/include/pthread.h:311: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 asterisk.c:98:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 asterisk.c:98:
/usr/include/pthread.h:307: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 asterisk.c:98:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 asterisk.c:98:
/usr/include/pthread.h:308: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 asterisk.c:98:
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 asterisk.c:98:
/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 asterisk.c:98:
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 asterisk.c:98:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
asterisk.c: In function 'remoteconsolehandler':
asterisk.c:1038: warning: array subscript has type 'char'
asterisk.c: In function 'cli_complete':
asterisk.c:1584: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o dsp.o dsp.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from dsp.c:54:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 dsp.c:54:
/usr/include/pthread.h:285: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 dsp.c:54:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 dsp.c:54:
/usr/include/pthread.h:287: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 dsp.c:54:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 dsp.c:54:
/usr/include/pthread.h:286: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 dsp.c:54:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 dsp.c:54:
/usr/include/pthread.h:284: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 dsp.c:54:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 dsp.c:54:
/usr/include/pthread.h:288: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 dsp.c:54:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 dsp.c:54:
/usr/include/pthread.h:306: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 dsp.c:54:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 dsp.c:54:
/usr/include/pthread.h:311: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 dsp.c:54:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 dsp.c:54:
/usr/include/pthread.h:307: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 dsp.c:54:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 dsp.c:54:
/usr/include/pthread.h:308: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 dsp.c:54:
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 dsp.c:54:
/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 dsp.c:54:
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 dsp.c:54:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o chanvars.o chanvars.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:285: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 chanvars.c:32:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:287: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 chanvars.c:32:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:286: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 chanvars.c:32:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:284: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 chanvars.c:32:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:288: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 chanvars.c:32:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:306: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 chanvars.c:32:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:311: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 chanvars.c:32:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:307: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 chanvars.c:32:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from chanvars.c:32:
/usr/include/pthread.h:308: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 chanvars.c:32:
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 chanvars.c:32:
/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 chanvars.c:32:
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 chanvars.c:32:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o indications.o indications.c
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from include/asterisk/indications.h:35,
                 from indications.c:40:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/indications.h:35,
                 from indications.c:40:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o autoservice.o autoservice.c
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 autoservice.c:38:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 autoservice.c:38:
/usr/include/pthread.h:285: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 autoservice.c:38:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 autoservice.c:38:
/usr/include/pthread.h:287: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 autoservice.c:38:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 autoservice.c:38:
/usr/include/pthread.h:286: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 autoservice.c:38:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 autoservice.c:38:
/usr/include/pthread.h:284: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 autoservice.c:38:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 autoservice.c:38:
/usr/include/pthread.h:288: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 autoservice.c:38:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 autoservice.c:38:
/usr/include/pthread.h:306: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 autoservice.c:38:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 autoservice.c:38:
/usr/include/pthread.h:311: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 autoservice.c:38:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 autoservice.c:38:
/usr/include/pthread.h:307: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 autoservice.c:38:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 autoservice.c:38:
/usr/include/pthread.h:308: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 autoservice.c:38:
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 autoservice.c:38:
/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 autoservice.c:38:
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 autoservice.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o db.o db.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from db.c:43:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 db.c:43:
/usr/include/pthread.h:285: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 db.c:43:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 db.c:43:
/usr/include/pthread.h:287: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 db.c:43:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 db.c:43:
/usr/include/pthread.h:286: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 db.c:43:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 db.c:43:
/usr/include/pthread.h:284: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 db.c:43:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 db.c:43:
/usr/include/pthread.h:288: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 db.c:43:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 db.c:43:
/usr/include/pthread.h:306: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 db.c:43:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 db.c:43:
/usr/include/pthread.h:311: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 db.c:43:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 db.c:43:
/usr/include/pthread.h:307: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 db.c:43:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 db.c:43:
/usr/include/pthread.h:308: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 db.c:43:
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 db.c:43:
/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 db.c:43:
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 db.c:43:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o privacy.o privacy.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from privacy.c:38:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 privacy.c:38:
/usr/include/pthread.h:285: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 privacy.c:38:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 privacy.c:38:
/usr/include/pthread.h:287: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 privacy.c:38:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 privacy.c:38:
/usr/include/pthread.h:286: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 privacy.c:38:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 privacy.c:38:
/usr/include/pthread.h:284: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 privacy.c:38:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 privacy.c:38:
/usr/include/pthread.h:288: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 privacy.c:38:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 privacy.c:38:
/usr/include/pthread.h:306: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 privacy.c:38:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 privacy.c:38:
/usr/include/pthread.h:311: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 privacy.c:38:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 privacy.c:38:
/usr/include/pthread.h:307: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 privacy.c:38:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 privacy.c:38:
/usr/include/pthread.h:308: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 privacy.c:38:
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 privacy.c:38:
/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 privacy.c:38:
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 privacy.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o astmm.o astmm.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o enum.o enum.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from include/asterisk/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:285: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:287: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:286: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:284: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:288: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:306: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:311: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:307: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/enum.h:26,
                 from enum.c:48:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:308: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/enum.h:26,
                 from enum.c:48:
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/enum.h:26,
                 from enum.c:48:
/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/enum.h:26,
                 from enum.c:48:
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/enum.h:26,
                 from enum.c:48:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
enum.c: In function 'parse_naptr':
enum.c:107: warning: pointer targets in initialization differ in signedness
enum.c:133: warning: pointer targets in passing argument 1 of 'parse_ie' differ in signedness
enum.c:140: warning: pointer targets in passing argument 1 of 'parse_ie' differ in signedness
enum.c:147: warning: pointer targets in passing argument 1 of 'parse_ie' differ in signedness
enum.c:164: warning: array subscript has type 'char'
enum.c:230: warning: pointer targets in passing argument 2 of 'regexec' differ in signedness
enum.c:240: warning: array subscript has type 'char'
enum.c:251: warning: array subscript has type 'char'
enum.c:260: warning: pointer targets in passing argument 1 of 'ast_copy_string' differ in signedness
enum.c: In function 'enum_callback':
enum.c:344: warning: pointer targets in passing argument 1 of 'parse_naptr' differ in signedness
enum.c:344: warning: pointer targets in passing argument 5 of 'parse_naptr' differ in signedness
enum.c:344: warning: pointer targets in passing argument 7 of 'parse_naptr' differ in signedness
enum.c: In function 'ast_get_enum':
enum.c:448: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o srv.o srv.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from srv.c:44:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 srv.c:44:
/usr/include/pthread.h:285: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 srv.c:44:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 srv.c:44:
/usr/include/pthread.h:287: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 srv.c:44:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 srv.c:44:
/usr/include/pthread.h:286: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 srv.c:44:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 srv.c:44:
/usr/include/pthread.h:284: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 srv.c:44:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 srv.c:44:
/usr/include/pthread.h:288: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 srv.c:44:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 srv.c:44:
/usr/include/pthread.h:306: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 srv.c:44:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 srv.c:44:
/usr/include/pthread.h:311: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 srv.c:44:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 srv.c:44:
/usr/include/pthread.h:307: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 srv.c:44:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 srv.c:44:
/usr/include/pthread.h:308: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 srv.c:44:
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 srv.c:44:
/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 srv.c:44:
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 srv.c:44:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o dns.o dns.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from dns.c:40:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 dns.c:40:
/usr/include/pthread.h:285: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 dns.c:40:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 dns.c:40:
/usr/include/pthread.h:287: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 dns.c:40:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 dns.c:40:
/usr/include/pthread.h:286: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 dns.c:40:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 dns.c:40:
/usr/include/pthread.h:284: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 dns.c:40:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 dns.c:40:
/usr/include/pthread.h:288: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 dns.c:40:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 dns.c:40:
/usr/include/pthread.h:306: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 dns.c:40:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 dns.c:40:
/usr/include/pthread.h:311: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 dns.c:40:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 dns.c:40:
/usr/include/pthread.h:307: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 dns.c:40:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 dns.c:40:
/usr/include/pthread.h:308: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 dns.c:40:
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 dns.c:40:
/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 dns.c:40:
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 dns.c:40:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o aescrypt.o aescrypt.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o aestab.o aestab.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o aeskey.o aeskey.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o utils.o utils.c
In file included from utils.c:43:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from utils.c:43:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from utils.c:43:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
utils.c: In function 'ast_gethostbyname':
utils.c:191: warning: array subscript has type 'char'
utils.c: In function 'upper':
utils.c:656: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o plc.o plc.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o jitterbuf.o jitterbuf.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o dnsmgr.o dnsmgr.c
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from include/asterisk/linkedlists.h:23,
                 from dnsmgr.c:42:
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 dnsmgr.c:42:
/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 dnsmgr.c:42:
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 dnsmgr.c:42:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o devicestate.o devicestate.c
In file included from include/asterisk/linkedlists.h:23,
                 from include/asterisk/chanvars.h:26,
                 from include/asterisk/channel.h:111,
                 from devicestate.c:35:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 devicestate.c:35:
/usr/include/pthread.h:285: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 devicestate.c:35:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 devicestate.c:35:
/usr/include/pthread.h:287: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 devicestate.c:35:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 devicestate.c:35:
/usr/include/pthread.h:286: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 devicestate.c:35:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 devicestate.c:35:
/usr/include/pthread.h:284: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 devicestate.c:35:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 devicestate.c:35:
/usr/include/pthread.h:288: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 devicestate.c:35:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 devicestate.c:35:
/usr/include/pthread.h:306: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 devicestate.c:35:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 devicestate.c:35:
/usr/include/pthread.h:311: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 devicestate.c:35:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 devicestate.c:35:
/usr/include/pthread.h:307: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 devicestate.c:35:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 devicestate.c:35:
/usr/include/pthread.h:308: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 devicestate.c:35:
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 devicestate.c:35:
/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 devicestate.c:35:
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 devicestate.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o netsock.o netsock.c
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from include/asterisk/lock.h:26,
                 from include/asterisk/astobj.h:28,
                 from include/asterisk/netsock.h:33,
                 from netsock.c:55:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o slinfactory.o slinfactory.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o ast_expr2.o ast_expr2.c
ast_expr2.y: In function 'make_str':
ast_expr2.y:286: warning: array subscript has type 'char'
ast_expr2.y:290: warning: array subscript has type 'char'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o ast_expr2f.o ast_expr2f.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/include  -c -o cryptostub.o cryptostub.c
build_tools/make_build_h > include/asterisk/build.h.tmp
if cmp -s include/asterisk/build.h.tmp include/asterisk/build.h ; then echo ; else \
		mv include/asterisk/build.h.tmp include/asterisk/build.h ; \
	fi
rm -f include/asterisk/build.h.tmp
gcc -c -o buildinfo.o -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -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 -R/usr/pkg/lib -lncurses -lssl
for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do /usr/pkg/bin/gmake -C $x || exit 1 ; done
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/res'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_indications.o res_indications.c
In file included from res_indications.c:40:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from res_indications.c:40:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_indications.c:40:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
res_indications.c: In function 'ind_load_module':
res_indications.c:280: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -L/usr/local/lib -o res_indications.so  res_indications.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_monitor.o res_monitor.c
In file included from res_monitor.c:37:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from res_monitor.c:37:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_monitor.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -L/usr/local/lib -o res_monitor.so  res_monitor.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_adsi.o res_adsi.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from res_adsi.c:44:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 res_adsi.c:44:
/usr/include/pthread.h:285: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 res_adsi.c:44:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 res_adsi.c:44:
/usr/include/pthread.h:287: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 res_adsi.c:44:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 res_adsi.c:44:
/usr/include/pthread.h:286: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 res_adsi.c:44:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 res_adsi.c:44:
/usr/include/pthread.h:284: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 res_adsi.c:44:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 res_adsi.c:44:
/usr/include/pthread.h:288: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 res_adsi.c:44:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 res_adsi.c:44:
/usr/include/pthread.h:306: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 res_adsi.c:44:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 res_adsi.c:44:
/usr/include/pthread.h:311: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 res_adsi.c:44:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 res_adsi.c:44:
/usr/include/pthread.h:307: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 res_adsi.c:44:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 res_adsi.c:44:
/usr/include/pthread.h:308: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 res_adsi.c:44:
../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 res_adsi.c:44:
/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 res_adsi.c:44:
../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 res_adsi.c:44:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -L/usr/local/lib -o res_adsi.so  res_adsi.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_agi.o res_agi.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:285: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:287: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:286: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:284: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:288: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:306: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:311: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:307: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/file.h:30,
                 from res_agi.c:46:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:308: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/file.h:30,
                 from res_agi.c:46:
../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/file.h:30,
                 from res_agi.c:46:
/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/file.h:30,
                 from res_agi.c:46:
../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/file.h:30,
                 from res_agi.c:46:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -L/usr/local/lib -o res_agi.so  res_agi.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_features.o res_features.c
In file included from res_features.c:40:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from res_features.c:40:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from res_features.c:25:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
res_features.c: In function 'ast_park_call':
res_features.c:354: warning: implicit declaration of function 'pthread_kill'
gcc -shared -Xlinker -x -L/usr/local/lib -o res_features.so  res_features.o  
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_crypto.o res_crypto.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:285: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:287: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:286: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:284: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:288: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:306: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:311: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:307: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/file.h:30,
                 from res_crypto.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:308: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/file.h:30,
                 from res_crypto.c:39:
../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/file.h:30,
                 from res_crypto.c:39:
/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/file.h:30,
                 from res_crypto.c:39:
../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/file.h:30,
                 from res_crypto.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -L/usr/local/lib -o res_crypto.so  res_crypto.o  -lssl -lcrypto
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include  -DOPENSSL_NO_KRB5 -fPIC -I/usr/include  -c -o res_musiconhold.o res_musiconhold.c
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from res_musiconhold.c:56:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from res_musiconhold.c:56:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -L/usr/local/lib -o res_musiconhold.so  res_musiconhold.o 
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/res'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/channels'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_sip.o chan_sip.c
In file included from chan_sip.c:55:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_sip.c:55:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_sip.c:55:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
chan_sip.c: In function 'determine_firstline_parts':
chan_sip.c:4791: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o chan_sip.so  chan_sip.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_agent.o chan_agent.c
In file included from chan_agent.c:47:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_agent.c:47:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_agent.c:47:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o chan_agent.so  chan_agent.o  
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_mgcp.o chan_mgcp.c
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_mgcp.c:93:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_mgcp.c:93:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o chan_mgcp.so  chan_mgcp.o  -lncurses -lm -lpthread -lcrypto -lm -L/usr/pkg/lib -R/usr/pkg/lib -lncurses -lssl
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_iax2.o chan_iax2.c
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_iax2.c:63:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_iax2.c:63:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o iax2-parser.o iax2-parser.c
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from iax2-parser.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o iax2-provision.o iax2-provision.c
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from iax2-provision.c:41:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from iax2-provision.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o chan_iax2.so  chan_iax2.o iax2-parser.o iax2-provision.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_local.o chan_local.c
In file included from chan_local.c:42:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_local.c:42:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_local.c:42:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o chan_local.so  chan_local.o  -lncurses -lm -lpthread -lcrypto -lm -L/usr/pkg/lib -R/usr/pkg/lib -lncurses -lssl
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_skinny.o chan_skinny.c
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_skinny.c:49:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_skinny.c:49:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o chan_skinny.so  chan_skinny.o  -lncurses -lm -lpthread -lcrypto -lm -L/usr/pkg/lib -R/usr/pkg/lib -lncurses -lssl
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_features.o chan_features.c
In file included from chan_features.c:44:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_features.c:44:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_features.c:44:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o chan_features.so  chan_features.o  -lncurses -lm -lpthread -lcrypto -lm -L/usr/pkg/lib -R/usr/pkg/lib -lncurses -lssl
gcc -o gentone gentone.c -lm
./gentone busy 480 620
Wavelength 1 (in samples):   16.66667
Minimum samples (1): 50 (3.000000.3 wavelengths)
Wavelength 1 (in samples):   12.90323
Minimum samples (1): 400 (31.000000.3 wavelengths)
Need 400 samples
Wrote busy.h
./gentone ringtone 440 480
Wavelength 1 (in samples):   18.18182
Minimum samples (1): 200 (11.000000.3 wavelengths)
Wavelength 1 (in samples):   16.66667
Minimum samples (1): 50 (3.000000.3 wavelengths)
Need 200 samples
Wrote ringtone.h
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/pkg/include -L/usr/pkg/lib -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC  -I/usr/include  -c -o chan_oss.o chan_oss.c
In file included from chan_oss.c:55:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from chan_oss.c:55:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from chan_oss.c:55:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
chan_oss.c: In function 'store_mixer':
chan_oss.c:1265: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o chan_oss.so chan_oss.o -lossaudio
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/channels'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/pbx'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o pbx_config.o pbx_config.c
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 pbx_config.c:37:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 pbx_config.c:37:
/usr/include/pthread.h:285: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 pbx_config.c:37:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 pbx_config.c:37:
/usr/include/pthread.h:287: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 pbx_config.c:37:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 pbx_config.c:37:
/usr/include/pthread.h:286: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 pbx_config.c:37:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 pbx_config.c:37:
/usr/include/pthread.h:284: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 pbx_config.c:37:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 pbx_config.c:37:
/usr/include/pthread.h:288: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 pbx_config.c:37:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 pbx_config.c:37:
/usr/include/pthread.h:306: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 pbx_config.c:37:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 pbx_config.c:37:
/usr/include/pthread.h:311: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 pbx_config.c:37:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 pbx_config.c:37:
/usr/include/pthread.h:307: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 pbx_config.c:37:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 pbx_config.c:37:
/usr/include/pthread.h:308: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 pbx_config.c:37:
../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 pbx_config.c:37:
/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 pbx_config.c:37:
../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 pbx_config.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
pbx_config.c: In function 'handle_context_remove_extension':
pbx_config.c:389: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o pbx_config.so  pbx_config.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o pbx_spool.o pbx_spool.c
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from pbx_spool.c:41:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from pbx_spool.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o pbx_spool.so  pbx_spool.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o dundi-parser.o dundi-parser.c
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from ../include/asterisk/utils.h:33,
                 from dundi-parser.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o pbx_dundi.o pbx_dundi.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:285: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:287: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:286: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:284: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:288: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:306: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:311: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:307: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/file.h:30,
                 from pbx_dundi.c:51:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:308: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/file.h:30,
                 from pbx_dundi.c:51:
../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/file.h:30,
                 from pbx_dundi.c:51:
/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/file.h:30,
                 from pbx_dundi.c:51:
../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/file.h:30,
                 from pbx_dundi.c:51:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
pbx_dundi.c: In function 'cache_lookup_internal':
pbx_dundi.c:1158: warning: dereferencing type-punned pointer will break strict-aliasing rules
pbx_dundi.c: In function 'load_password':
pbx_dundi.c:2053: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -shared -Xlinker -x -o pbx_dundi.so  pbx_dundi.o dundi-parser.o -lz 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o pbx_loopback.o pbx_loopback.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from pbx_loopback.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from pbx_loopback.c:35:
../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/file.h:30,
                 from pbx_loopback.c:35:
/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/file.h:30,
                 from pbx_loopback.c:35:
../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/file.h:30,
                 from pbx_loopback.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o pbx_loopback.so  pbx_loopback.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o pbx_realtime.o pbx_realtime.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from pbx_realtime.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from pbx_realtime.c:36:
../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/file.h:30,
                 from pbx_realtime.c:36:
/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/file.h:30,
                 from pbx_realtime.c:36:
../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/file.h:30,
                 from pbx_realtime.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o pbx_realtime.so  pbx_realtime.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o pbx_ael.o pbx_ael.c
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 pbx_ael.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 pbx_ael.c:36:
/usr/include/pthread.h:285: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 pbx_ael.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 pbx_ael.c:36:
/usr/include/pthread.h:287: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 pbx_ael.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 pbx_ael.c:36:
/usr/include/pthread.h:286: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 pbx_ael.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 pbx_ael.c:36:
/usr/include/pthread.h:284: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 pbx_ael.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 pbx_ael.c:36:
/usr/include/pthread.h:288: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 pbx_ael.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 pbx_ael.c:36:
/usr/include/pthread.h:306: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 pbx_ael.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 pbx_ael.c:36:
/usr/include/pthread.h:311: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 pbx_ael.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 pbx_ael.c:36:
/usr/include/pthread.h:307: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 pbx_ael.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 pbx_ael.c:36:
/usr/include/pthread.h:308: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 pbx_ael.c:36:
../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 pbx_ael.c:36:
/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 pbx_ael.c:36:
../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 pbx_ael.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o pbx_ael.so  pbx_ael.o 
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/pbx'
curl-config: not found
[[: not found
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/apps'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_dial.o app_dial.c
In file included from app_dial.c:41:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_dial.c:41:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_dial.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_dial.so  app_dial.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_playback.o app_playback.c
In file included from app_playback.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_playback.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_playback.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_playback.so  app_playback.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_voicemail.o app_voicemail.c
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_voicemail.c:57:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_voicemail.c:57:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_voicemail.so  app_voicemail.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_directory.o app_directory.c
In file included from app_directory.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_directory.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_directory.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
app_directory.c: In function 'convert':
app_directory.c:192: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o app_directory.so  app_directory.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_mp3.o app_mp3.c
In file included from app_mp3.c:38:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_mp3.c:38:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_mp3.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_mp3.so  app_mp3.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_system.o app_system.c
In file included from app_system.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_system.c:36:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_system.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_system.so  app_system.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_echo.o app_echo.c
In file included from app_echo.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_echo.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_echo.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_echo.so  app_echo.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_record.o app_record.c
In file included from app_record.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_record.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_record.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_record.so  app_record.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_image.o app_image.c
In file included from app_image.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_image.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_image.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_image.so  app_image.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_url.o app_url.c
In file included from app_url.c:33:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_url.c:33:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_url.c:33:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_url.so  app_url.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_disa.o app_disa.c
In file included from app_disa.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_disa.c:39:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_disa.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_disa.so  app_disa.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_adsiprog.o app_adsiprog.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_adsiprog.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_adsiprog.c:39:
../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/file.h:30,
                 from app_adsiprog.c:39:
/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/file.h:30,
                 from app_adsiprog.c:39:
../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/file.h:30,
                 from app_adsiprog.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
app_adsiprog.c: In function 'process_token':
app_adsiprog.c:203: warning: array subscript has type 'char'
app_adsiprog.c:213: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o app_adsiprog.so  app_adsiprog.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_getcpeid.o app_getcpeid.c
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_getcpeid.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_getcpeid.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_getcpeid.so  app_getcpeid.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_milliwatt.o app_milliwatt.c
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_milliwatt.c:36:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_milliwatt.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_milliwatt.so  app_milliwatt.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_zapateller.o app_zapateller.c
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_zapateller.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_zapateller.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_zapateller.so  app_zapateller.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_setcallerid.o app_setcallerid.c
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_setcallerid.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcallerid.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_setcallerid.so  app_setcallerid.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_festival.o app_festival.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_festival.c:47:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_festival.c:47:
../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/file.h:30,
                 from app_festival.c:47:
/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/file.h:30,
                 from app_festival.c:47:
../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/file.h:30,
                 from app_festival.c:47:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_festival.so  app_festival.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_queue.o app_queue.c
In file included from app_queue.c:71:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_queue.c:71:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_queue.c:71:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_queue.so  app_queue.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_senddtmf.o app_senddtmf.c
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_senddtmf.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_senddtmf.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_senddtmf.so  app_senddtmf.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_parkandannounce.o app_parkandannounce.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_parkandannounce.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_parkandannounce.c:39:
../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/file.h:30,
                 from app_parkandannounce.c:39:
/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/file.h:30,
                 from app_parkandannounce.c:39:
../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/file.h:30,
                 from app_parkandannounce.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_parkandannounce.so  app_parkandannounce.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_setcidname.o app_setcidname.c
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_setcidname.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidname.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_setcidname.so  app_setcidname.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_lookupcidname.o app_lookupcidname.c
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_lookupcidname.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupcidname.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_lookupcidname.so  app_lookupcidname.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_macro.o app_macro.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_macro.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_macro.c:36:
../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/file.h:30,
                 from app_macro.c:36:
/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/file.h:30,
                 from app_macro.c:36:
../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/file.h:30,
                 from app_macro.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_macro.so  app_macro.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_authenticate.o app_authenticate.c
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_authenticate.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_authenticate.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_authenticate.so  app_authenticate.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_softhangup.o app_softhangup.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_softhangup.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_softhangup.c:36:
../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/file.h:30,
                 from app_softhangup.c:36:
/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/file.h:30,
                 from app_softhangup.c:36:
../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/file.h:30,
                 from app_softhangup.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_softhangup.so  app_softhangup.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_lookupblacklist.o app_lookupblacklist.c
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_lookupblacklist.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_lookupblacklist.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_lookupblacklist.so  app_lookupblacklist.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_waitforring.o app_waitforring.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_waitforring.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_waitforring.c:36:
../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/file.h:30,
                 from app_waitforring.c:36:
/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/file.h:30,
                 from app_waitforring.c:36:
../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/file.h:30,
                 from app_waitforring.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_waitforring.so  app_waitforring.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_privacy.o app_privacy.c
In file included from app_privacy.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_privacy.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_privacy.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_privacy.so  app_privacy.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_db.o app_db.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_db.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_db.c:39:
../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/file.h:30,
                 from app_db.c:39:
/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/file.h:30,
                 from app_db.c:39:
../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/file.h:30,
                 from app_db.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_db.so  app_db.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_chanisavail.o app_chanisavail.c
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_chanisavail.c:37:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_chanisavail.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_chanisavail.so  app_chanisavail.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_enumlookup.o app_enumlookup.c
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_enumlookup.c:36:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_enumlookup.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
app_enumlookup.c: In function 'enumlookup_exec':
app_enumlookup.c:176: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o app_enumlookup.so  app_enumlookup.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_transfer.o app_transfer.c
In file included from app_transfer.c:37:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_transfer.c:37:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_transfer.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_transfer.so  app_transfer.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_setcidnum.o app_setcidnum.c
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_setcidnum.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setcidnum.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_setcidnum.so  app_setcidnum.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_cdr.o app_cdr.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_cdr.c:32:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_cdr.c:32:
/usr/include/pthread.h:285: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 app_cdr.c:32:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_cdr.c:32:
/usr/include/pthread.h:287: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 app_cdr.c:32:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_cdr.c:32:
/usr/include/pthread.h:286: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 app_cdr.c:32:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_cdr.c:32:
/usr/include/pthread.h:284: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 app_cdr.c:32:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_cdr.c:32:
/usr/include/pthread.h:288: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 app_cdr.c:32:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_cdr.c:32:
/usr/include/pthread.h:306: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 app_cdr.c:32:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_cdr.c:32:
/usr/include/pthread.h:311: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 app_cdr.c:32:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_cdr.c:32:
/usr/include/pthread.h:307: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 app_cdr.c:32:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_cdr.c:32:
/usr/include/pthread.h:308: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 app_cdr.c:32:
../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 app_cdr.c:32:
/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 app_cdr.c:32:
../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 app_cdr.c:32:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_cdr.so  app_cdr.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_hasnewvoicemail.o app_hasnewvoicemail.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_hasnewvoicemail.c:41:
../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/file.h:30,
                 from app_hasnewvoicemail.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/file.h:30,
                 from app_hasnewvoicemail.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/file.h:30,
                 from app_hasnewvoicemail.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_hasnewvoicemail.so  app_hasnewvoicemail.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_sayunixtime.o app_sayunixtime.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_sayunixtime.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_sayunixtime.c:34:
../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/file.h:30,
                 from app_sayunixtime.c:34:
/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/file.h:30,
                 from app_sayunixtime.c:34:
../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/file.h:30,
                 from app_sayunixtime.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_sayunixtime.so  app_sayunixtime.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_cut.o app_cut.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_cut.c:33:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_cut.c:33:
../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/file.h:30,
                 from app_cut.c:33:
/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/file.h:30,
                 from app_cut.c:33:
../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/file.h:30,
                 from app_cut.c:33:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_cut.so  app_cut.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_read.o app_read.c
In file included from app_read.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_read.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_read.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_read.so  app_read.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_setcdruserfield.o app_setcdruserfield.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_setcdruserfield.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:285: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:287: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:286: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:284: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:288: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:306: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:311: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:307: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 app_setcdruserfield.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_setcdruserfield.c:34:
/usr/include/pthread.h:308: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 app_setcdruserfield.c:34:
../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 app_setcdruserfield.c:34:
/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 app_setcdruserfield.c:34:
../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 app_setcdruserfield.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_setcdruserfield.so  app_setcdruserfield.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_random.o app_random.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_random.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_random.c:35:
../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/file.h:30,
                 from app_random.c:35:
/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/file.h:30,
                 from app_random.c:35:
../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/file.h:30,
                 from app_random.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_random.so  app_random.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_ices.o app_ices.c
In file included from app_ices.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_ices.c:39:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_ices.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_ices.so  app_ices.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_eval.o app_eval.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_eval.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_eval.c:35:
../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/file.h:30,
                 from app_eval.c:35:
/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/file.h:30,
                 from app_eval.c:35:
../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/file.h:30,
                 from app_eval.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_eval.so  app_eval.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_nbscat.o app_nbscat.c
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_nbscat.c:39:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_nbscat.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_nbscat.so  app_nbscat.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_sendtext.o app_sendtext.c
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_sendtext.c:36:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sendtext.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_sendtext.so  app_sendtext.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_exec.o app_exec.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_exec.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_exec.c:36:
../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/file.h:30,
                 from app_exec.c:36:
/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/file.h:30,
                 from app_exec.c:36:
../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/file.h:30,
                 from app_exec.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_exec.so  app_exec.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_groupcount.o app_groupcount.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_groupcount.c:37:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_groupcount.c:37:
../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/file.h:30,
                 from app_groupcount.c:37:
/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/file.h:30,
                 from app_groupcount.c:37:
../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/file.h:30,
                 from app_groupcount.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_groupcount.so  app_groupcount.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_txtcidname.o app_txtcidname.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_txtcidname.c:37:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_txtcidname.c:37:
/usr/include/pthread.h:285: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 app_txtcidname.c:37:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_txtcidname.c:37:
/usr/include/pthread.h:287: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 app_txtcidname.c:37:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_txtcidname.c:37:
/usr/include/pthread.h:286: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 app_txtcidname.c:37:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_txtcidname.c:37:
/usr/include/pthread.h:284: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 app_txtcidname.c:37:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_txtcidname.c:37:
/usr/include/pthread.h:288: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 app_txtcidname.c:37:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_txtcidname.c:37:
/usr/include/pthread.h:306: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 app_txtcidname.c:37:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_txtcidname.c:37:
/usr/include/pthread.h:311: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 app_txtcidname.c:37:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_txtcidname.c:37:
/usr/include/pthread.h:307: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 app_txtcidname.c:37:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_txtcidname.c:37:
/usr/include/pthread.h:308: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 app_txtcidname.c:37:
../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 app_txtcidname.c:37:
/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 app_txtcidname.c:37:
../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 app_txtcidname.c:37:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_txtcidname.so  app_txtcidname.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_controlplayback.o app_controlplayback.c
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_controlplayback.c:33:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_controlplayback.c:33:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_controlplayback.so  app_controlplayback.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_talkdetect.o app_talkdetect.c
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_talkdetect.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_talkdetect.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_talkdetect.so  app_talkdetect.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_alarmreceiver.o app_alarmreceiver.c
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_alarmreceiver.c:44:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_alarmreceiver.c:44:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_alarmreceiver.so  app_alarmreceiver.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_userevent.o app_userevent.c
In file included from app_userevent.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_userevent.c:34:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_userevent.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_userevent.so  app_userevent.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_verbose.o app_verbose.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_verbose.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_verbose.c:36:
/usr/include/pthread.h:285: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 app_verbose.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_verbose.c:36:
/usr/include/pthread.h:287: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 app_verbose.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_verbose.c:36:
/usr/include/pthread.h:286: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 app_verbose.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_verbose.c:36:
/usr/include/pthread.h:284: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 app_verbose.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_verbose.c:36:
/usr/include/pthread.h:288: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 app_verbose.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_verbose.c:36:
/usr/include/pthread.h:306: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 app_verbose.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_verbose.c:36:
/usr/include/pthread.h:311: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 app_verbose.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_verbose.c:36:
/usr/include/pthread.h:307: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 app_verbose.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_verbose.c:36:
/usr/include/pthread.h:308: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 app_verbose.c:36:
../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 app_verbose.c:36:
/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 app_verbose.c:36:
../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 app_verbose.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_verbose.so  app_verbose.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_test.o app_test.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_test.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_test.c:39:
/usr/include/pthread.h:285: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 app_test.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_test.c:39:
/usr/include/pthread.h:287: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 app_test.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_test.c:39:
/usr/include/pthread.h:286: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 app_test.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_test.c:39:
/usr/include/pthread.h:284: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 app_test.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_test.c:39:
/usr/include/pthread.h:288: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 app_test.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_test.c:39:
/usr/include/pthread.h:306: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 app_test.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_test.c:39:
/usr/include/pthread.h:311: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 app_test.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_test.c:39:
/usr/include/pthread.h:307: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 app_test.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_test.c:39:
/usr/include/pthread.h:308: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 app_test.c:39:
../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 app_test.c:39:
/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 app_test.c:39:
../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 app_test.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_test.so  app_test.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_forkcdr.o app_forkcdr.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_forkcdr.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_forkcdr.c:34:
../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/file.h:30,
                 from app_forkcdr.c:34:
/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/file.h:30,
                 from app_forkcdr.c:34:
../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/file.h:30,
                 from app_forkcdr.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_forkcdr.so  app_forkcdr.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_math.o app_math.c
In file included from app_math.c:44:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_math.c:44:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_math.c:44:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_math.so  app_math.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_realtime.o app_realtime.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_realtime.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_realtime.c:36:
../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/file.h:30,
                 from app_realtime.c:36:
/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/file.h:30,
                 from app_realtime.c:36:
../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/file.h:30,
                 from app_realtime.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_realtime.so  app_realtime.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_dumpchan.o app_dumpchan.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_dumpchan.c:38:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_dumpchan.c:38:
../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/file.h:30,
                 from app_dumpchan.c:38:
/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/file.h:30,
                 from app_dumpchan.c:38:
../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/file.h:30,
                 from app_dumpchan.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_dumpchan.so  app_dumpchan.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_waitforsilence.o app_waitforsilence.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_waitforsilence.c:41:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_waitforsilence.c:41:
../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/file.h:30,
                 from app_waitforsilence.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/file.h:30,
                 from app_waitforsilence.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/file.h:30,
                 from app_waitforsilence.c:41:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_waitforsilence.so  app_waitforsilence.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_while.o app_while.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_while.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_while.c:35:
../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/file.h:30,
                 from app_while.c:35:
/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/file.h:30,
                 from app_while.c:35:
../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/file.h:30,
                 from app_while.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_while.so  app_while.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_setrdnis.o app_setrdnis.c
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_setrdnis.c:35:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_setrdnis.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_setrdnis.so  app_setrdnis.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_md5.o app_md5.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_md5.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_md5.c:35:
../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/file.h:30,
                 from app_md5.c:35:
/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/file.h:30,
                 from app_md5.c:35:
../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/file.h:30,
                 from app_md5.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_md5.so  app_md5.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_readfile.o app_readfile.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_readfile.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_readfile.c:35:
../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/file.h:30,
                 from app_readfile.c:35:
/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/file.h:30,
                 from app_readfile.c:35:
../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/file.h:30,
                 from app_readfile.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_readfile.so  app_readfile.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_chanspy.o app_chanspy.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_chanspy.c:36:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_chanspy.c:36:
../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/file.h:30,
                 from app_chanspy.c:36:
/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/file.h:30,
                 from app_chanspy.c:36:
../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/file.h:30,
                 from app_chanspy.c:36:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
app_chanspy.c: In function 'chanspy_exec':
app_chanspy.c:497: warning: array subscript has type 'char'
gcc -shared -Xlinker -x -o app_chanspy.so  app_chanspy.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_settransfercapability.o app_settransfercapability.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_settransfercapability.c:34:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:285: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:287: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:286: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:284: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:288: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:306: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:311: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:307: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 app_settransfercapability.c:34:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_settransfercapability.c:34:
/usr/include/pthread.h:308: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 app_settransfercapability.c:34:
../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 app_settransfercapability.c:34:
/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 app_settransfercapability.c:34:
../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 app_settransfercapability.c:34:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_settransfercapability.so  app_settransfercapability.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_dictate.o app_dictate.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_dictate.c:38:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_dictate.c:38:
../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/file.h:30,
                 from app_dictate.c:38:
/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/file.h:30,
                 from app_dictate.c:38:
../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/file.h:30,
                 from app_dictate.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_dictate.so  app_dictate.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_externalivr.o app_externalivr.c
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_externalivr.c:40:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_externalivr.c:40:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_externalivr.so  app_externalivr.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_directed_pickup.o app_directed_pickup.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_directed_pickup.c:35:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_directed_pickup.c:35:
../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/file.h:30,
                 from app_directed_pickup.c:35:
/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/file.h:30,
                 from app_directed_pickup.c:35:
../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/file.h:30,
                 from app_directed_pickup.c:35:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_directed_pickup.so  app_directed_pickup.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_mixmonitor.o app_mixmonitor.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from ../include/asterisk/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:285: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:287: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:286: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:284: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:288: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:306: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:311: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:307: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/file.h:30,
                 from app_mixmonitor.c:38:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:308: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/file.h:30,
                 from app_mixmonitor.c:38:
../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/file.h:30,
                 from app_mixmonitor.c:38:
/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/file.h:30,
                 from app_mixmonitor.c:38:
../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/file.h:30,
                 from app_mixmonitor.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_mixmonitor.so  app_mixmonitor.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_stack.o app_stack.c
In file included from ../include/asterisk/linkedlists.h:23,
                 from ../include/asterisk/chanvars.h:26,
                 from ../include/asterisk/channel.h:111,
                 from app_stack.c:33:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" 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 app_stack.c:33:
/usr/include/pthread.h:285: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 app_stack.c:33:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" 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 app_stack.c:33:
/usr/include/pthread.h:287: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 app_stack.c:33:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" 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 app_stack.c:33:
/usr/include/pthread.h:286: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 app_stack.c:33:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" 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 app_stack.c:33:
/usr/include/pthread.h:284: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 app_stack.c:33:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" 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 app_stack.c:33:
/usr/include/pthread.h:288: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 app_stack.c:33:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" 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 app_stack.c:33:
/usr/include/pthread.h:306: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 app_stack.c:33:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" 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 app_stack.c:33:
/usr/include/pthread.h:311: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 app_stack.c:33:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" 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 app_stack.c:33:
/usr/include/pthread.h:307: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 app_stack.c:33:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" 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 app_stack.c:33:
/usr/include/pthread.h:308: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 app_stack.c:33:
../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 app_stack.c:33:
/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 app_stack.c:33:
../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 app_stack.c:33:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
gcc -shared -Xlinker -x -o app_stack.so  app_stack.o 
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/include -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/include -L/usr/local/lib  -pthread         -fomit-frame-pointer  -I//usr/pkg/include -L//usr/pkg/lib -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/include  -c -o app_sms.o app_sms.c
In file included from app_sms.c:38:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from app_sms.c:38:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from app_sms.c:38:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
app_sms.c: In function 'numcpy':
app_sms.c:206: warning: array subscript has type 'char'
app_sms.c: In function 'packaddress':
app_sms.c:624: warning: array subscript has type 'char'
app_sms.c: In function 'sms_readfile':
app_sms.c:698: warning: pointer targets in assignment differ in signedness
app_sms.c:700: warning: pointer targets in assignment differ in signedness
app_sms.c:725: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
app_sms.c:726: warning: pointer targets in passing argument 2 of 'numcpy' differ in signedness
app_sms.c:727: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
app_sms.c:728: warning: pointer targets in passing argument 2 of 'numcpy' differ in signedness
app_sms.c:730: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
app_sms.c:733: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
app_sms.c:736: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
app_sms.c:738: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
app_sms.c:740: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
app_sms.c:742: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness
app_sms.c:751: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness
app_sms.c: In function 'sms_exec':
app_sms.c:1395: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
app_sms.c:1399: warning: pointer targets in assignment differ in signedness
app_sms.c:1437: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
app_sms.c:1442: warning: pointer targets in passing argument 2 of 'ast_copy_string' differ in signedness
app_sms.c:1444: warning: pointer targets in passing argument 2 of 'ast_copy_string' differ in signedness
gcc -shared -Xlinker -x -o app_sms.so  app_sms.o 
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/apps'
gmake[1]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -I/usr/include  -c -o codec_ilbc.o codec_ilbc.c
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:306:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:653:1: warning: "pthread_cond_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:311:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:654:1: warning: "pthread_cond_signal" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:307:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:655:1: warning: "pthread_cond_broadcast" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:308:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:656:1: warning: "pthread_cond_wait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:309:1: warning: this is the location of the previous definition
In file included from codec_ilbc.c:39:
../include/asterisk/lock.h:657:1: warning: "pthread_cond_timedwait" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_ilbc.c:39:
/usr/include/pthread.h:310:1: warning: this is the location of the previous definition
/usr/pkg/bin/gmake -C ilbc all
gmake[2]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs/ilbc'
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o anaFilter.o anaFilter.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o iCBSearch.o iCBSearch.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o packing.o packing.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o constants.o constants.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o gainquant.o gainquant.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o iLBC_decode.o iLBC_decode.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o StateConstructW.o StateConstructW.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o createCB.o createCB.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o getCBvec.o getCBvec.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o iLBC_encode.o iLBC_encode.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o StateSearchW.o StateSearchW.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o doCPLC.o doCPLC.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o helpfun.o helpfun.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o syntFilter.o syntFilter.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o enhancer.o enhancer.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o hpInput.o hpInput.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o LPCdecode.o LPCdecode.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o filter.o filter.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o hpOutput.o hpOutput.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o LPCencode.o LPCencode.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o FrameClassify.o FrameClassify.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o iCBConstruct.o iCBConstruct.c
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -Wall -O3 -funroll-loops -fPIC -I/usr/include  -c -o lsf.o lsf.c
ar cr libilbc.a anaFilter.o iCBSearch.o packing.o constants.o gainquant.o iLBC_decode.o StateConstructW.o createCB.o getCBvec.o iLBC_encode.o StateSearchW.o doCPLC.o helpfun.o syntFilter.o enhancer.o hpInput.o LPCdecode.o filter.o hpOutput.o LPCencode.o FrameClassify.o  iCBConstruct.o lsf.o
ranlib libilbc.a
gmake[2]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs/ilbc'
gcc -shared -Xlinker -x -o codec_ilbc.so  codec_ilbc.o  ilbc/libilbc.a
gcc -O2 -I/usr/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -I/usr/pkg/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 -I/usr/include  -c -o codec_gsm.o codec_gsm.c
In file included from codec_gsm.c:40:
../include/asterisk/lock.h:646:1: warning: "pthread_mutex_lock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_gsm.c:40:
/usr/include/pthread.h:285:1: warning: this is the location of the previous definition
In file included from codec_gsm.c:40:
../include/asterisk/lock.h:647:1: warning: "pthread_mutex_unlock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_gsm.c:40:
/usr/include/pthread.h:287:1: warning: this is the location of the previous definition
In file included from codec_gsm.c:40:
../include/asterisk/lock.h:648:1: warning: "pthread_mutex_trylock" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_gsm.c:40:
/usr/include/pthread.h:286:1: warning: this is the location of the previous definition
In file included from codec_gsm.c:40:
../include/asterisk/lock.h:649:1: warning: "pthread_mutex_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_gsm.c:40:
/usr/include/pthread.h:284:1: warning: this is the location of the previous definition
In file included from codec_gsm.c:40:
../include/asterisk/lock.h:650:1: warning: "pthread_mutex_destroy" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_gsm.c:40:
/usr/include/pthread.h:288:1: warning: this is the location of the previous definition
In file included from codec_gsm.c:40:
../include/asterisk/lock.h:652:1: warning: "pthread_cond_init" redefined
In file included from ../include/asterisk/lock.h:26,
                 from codec_gsm.c:40:
/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
codec_gsm.c: In function 'gsmtolin_framein':
../formats/msgsm.h:459: warning: 'xmc[48]' may be used uninitialized in this function
/usr/pkg/bin/gmake -C gsm lib/libgsm.a
gmake[2]: Entering directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/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/pkg/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=mipsel -fPIC -DSASR -DNDEBUG    -DWAV49   -I./inc src/add.c
Assembler messages:
Error: cc1: error: unrecognized command line option "-march=mipsel"Bad value (mipsel) for -march

gmake[2]: *** [src/add.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs/gsm'
gmake[1]: *** [gsm/lib/libgsm.a] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24/codecs'
gmake: *** [subdirs] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/comms/asterisk
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/comms/asterisk

===> Warnings from the wrapper log (sorted):
WARNING: [transform-gcc] passing unknown option -R/usr/pkg/lib
WARNING: [transform-gcc] passing unknown option -Wno-missing-declarations
WARNING: [transform-gcc] passing unknown option -Wno-missing-prototypes
WARNING: [transform-gcc] passing unknown option -g3
WARNING: [transform-gcc] passing unknown option -xc

File versions:
	Makefile: $NetBSD: Makefile,v 1.44 2007/08/10 00:03:27 mjl Exp $
	PLIST.DragonFly: $NetBSD: PLIST.DragonFly,v 1.2 2006/01/13 20:32:38 riz Exp $
	PLIST.FreeBSD: $NetBSD: PLIST.FreeBSD,v 1.2 2006/01/13 20:32:38 riz Exp $
	PLIST.Linux: $NetBSD: PLIST.Linux,v 1.2 2006/01/13 20:32:38 riz Exp $
	PLIST.NetBSD: $NetBSD: PLIST.NetBSD,v 1.2 2006/01/13 20:32:38 riz Exp $
	PLIST.OpenBSD: $NetBSD: PLIST.OpenBSD,v 1.2 2006/01/13 20:32:38 riz Exp $
	PLIST.common: $NetBSD: PLIST.common,v 1.9 2007/07/19 09:39:57 mjl Exp $
	PLIST.common_end: $NetBSD: PLIST.common_end,v 1.4 2006/12/20 11:34:55 mjl Exp $
	distinfo: $NetBSD: distinfo,v 1.31 2007/08/10 00:03:28 mjl Exp $
	files/asterisk.sh: $NetBSD: asterisk.sh,v 1.2 2006/11/01 18:59:16 mjl Exp $
	options.mk: $NetBSD: options.mk,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-aa: $NetBSD: patch-aa,v 1.11 2006/08/18 11:32:51 adam Exp $
	patches/patch-ab: $NetBSD: patch-ab,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-ac: $NetBSD: patch-ac,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-ad: $NetBSD: patch-ad,v 1.7 2007/07/19 09:39:57 mjl Exp $
	patches/patch-ae: $NetBSD: patch-ae,v 1.3 2006/04/13 08:47:06 adam Exp $
	patches/patch-af: $NetBSD: patch-af,v 1.6 2006/08/18 11:32:51 adam Exp $
	patches/patch-ag: $NetBSD: patch-ag,v 1.2 2006/04/13 08:47:06 adam Exp $
	patches/patch-ai: $NetBSD: patch-ai,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-aj: $NetBSD: patch-aj,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-ak: $NetBSD: patch-ak,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-al: $NetBSD: patch-al,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-am: $NetBSD: patch-am,v 1.2 2006/01/13 20:32:38 riz Exp $
	patches/patch-an: $NetBSD: patch-an,v 1.1 2006/01/13 20:32:38 riz Exp $
	work.lily/asterisk-1.2.24/build_tools/mkdep: $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $
	work.lily/asterisk-1.2.24/poll.c: $Id: poll.c 7221 2005-11-29 18:24:39Z kpfleming $
	work.lily/asterisk-1.2.24/channels/h323/chan_h323.h: $Id: chan_h323.h 7221 2005-11-29 18:24:39Z kpfleming $
	work.lily/asterisk-1.2.24/channels/h323/ast_h323.cpp: $Id: ast_h323.cpp 7221 2005-11-29 18:24:39Z kpfleming $
	work.lily/asterisk-1.2.24/channels/h323/ast_h323.h: $Id: ast_h323.h 7221 2005-11-29 18:24:39Z kpfleming $
	work.lily/asterisk-1.2.24/channels/gentone: $NetBSD: crt0.c,v 1.19 2005/12/24 22:02:10 perry Exp $
	work.lily/asterisk-1.2.24/include/asterisk/poll-compat.h: $Id: poll-compat.h 7221 2005-11-29 18:24:39Z kpfleming $
	work.lily/asterisk-1.2.24/contrib/init.d/rc.slackware.asterisk: $Id: rc.slackware.asterisk 67060 2007-06-04 17:10:30Z tilghman $
	work.lily/asterisk-1.2.24/contrib/init.d/rc.mandrake.asterisk: $Id: rc.mandrake.asterisk 67060 2007-06-04 17:10:30Z tilghman $
	work.lily/asterisk-1.2.24/contrib/init.d/rc.gentoo.asterisk: $Id: rc.gentoo.asterisk 67060 2007-06-04 17:10:30Z tilghman $
	work.lily/asterisk-1.2.24/contrib/init.d/rc.mandrake.zaptel: $Id: rc.mandrake.zaptel 67060 2007-06-04 17:10:30Z tilghman $
	work.lily/asterisk-1.2.24/contrib/init.d/rc.debian.asterisk: $Id: rc.debian.asterisk 67060 2007-06-04 17:10:30Z tilghman $
	work.lily/asterisk-1.2.24/contrib/init.d/rc.redhat.asterisk: $Id: rc.redhat.asterisk 67060 2007-06-04 17:10:30Z tilghman $
	work.lily/asterisk-1.2.24/contrib/scripts/ast_grab_core: $Id: ast_grab_core 77842 2007-07-31 19:19:35Z murf $
	work.lily/asterisk-1.2.24/contrib/scripts/retrieve_extensions_from_sql.pl: $Id: retrieve_extensions_from_sql.pl 7221 2005-11-29 18:24:39Z kpfleming $
	work.lily/asterisk-1.2.24/editline/np/fgetln.c: $NetBSD: fgetln.c,v 1.1.1.1 1999/04/12 07:43:21 crooksa Exp $
	work.lily/asterisk-1.2.24/editline/np/unvis.c: $NetBSD: unvis.c,v 1.22 2002/03/23 17:38:27 christos Exp $
	work.lily/asterisk-1.2.24/editline/np/vis.c: $NetBSD: vis.c,v 1.22 2002/03/23 17:38:27 christos Exp $
	work.lily/asterisk-1.2.24/editline/np/vis.h: $NetBSD: vis.h,v 1.12 2002/03/23 17:39:05 christos Exp $
	work.lily/asterisk-1.2.24/editline/read.c: $NetBSD: read.c,v 1.21 2002/03/18 16:00:57 christos Exp $
	work.lily/asterisk-1.2.24/editline/term.c: $NetBSD: term.c,v 1.35 2002/03/18 16:00:59 christos Exp $
	work.lily/asterisk-1.2.24/editline/el.c: $NetBSD: el.c,v 1.29 2002/03/18 16:00:52 christos Exp $
	work.lily/asterisk-1.2.24/editline/refresh.c: $NetBSD: refresh.c,v 1.18 2002/03/18 16:00:58 christos Exp $
	work.lily/asterisk-1.2.24/editline/history.c: $NetBSD: history.c,v 1.19 2002/03/18 16:00:54 christos Exp $
	work.lily/asterisk-1.2.24/editline/el.h: $NetBSD: el.h,v 1.11 2002/03/18 16:00:52 christos Exp $
	work.lily/asterisk-1.2.24/editline/TEST/test.c: $NetBSD: test.c,v 1.9 2000/09/04 23:36:41 lukem Exp $
	work.lily/asterisk-1.2.24/editline/refresh.h: $NetBSD: refresh.h,v 1.4 2001/01/10 07:45:42 jdolecek Exp $
	work.lily/asterisk-1.2.24/editline/histedit.h: $NetBSD: histedit.h,v 1.19 2002/03/18 16:00:54 christos Exp $
	work.lily/asterisk-1.2.24/editline/prompt.c: $NetBSD: prompt.c,v 1.9 2002/03/18 16:00:56 christos Exp $
	work.lily/asterisk-1.2.24/editline/term.h: $NetBSD: term.h,v 1.13 2002/03/18 16:01:00 christos Exp $
	work.lily/asterisk-1.2.24/editline/read.h: $NetBSD: read.h,v 1.1 2001/09/27 19:29:50 christos Exp $
	work.lily/asterisk-1.2.24/editline/readline/readline.h: $NetBSD: readline.h,v 1.1 2001/01/05 21:15:50 jdolecek Exp $
	work.lily/asterisk-1.2.24/editline/sys.h: $NetBSD: sys.h,v 1.5 2002/03/18 16:00:59 christos Exp $
	work.lily/asterisk-1.2.24/editline/chared.c: $NetBSD: chared.c,v 1.15 2002/03/18 16:00:50 christos Exp $
	work.lily/asterisk-1.2.24/editline/prompt.h: $NetBSD: prompt.h,v 1.5 2000/09/04 22:06:31 lukem Exp $
	work.lily/asterisk-1.2.24/editline/emacs.c: $NetBSD: emacs.c,v 1.10 2002/03/18 16:00:52 christos Exp $
	work.lily/asterisk-1.2.24/editline/chared.h: $NetBSD: chared.h,v 1.8 2002/03/18 16:00:51 christos Exp $
	work.lily/asterisk-1.2.24/editline/editrc.5: $NetBSD: editrc.5,v 1.12 2002/01/15 02:46:44 wiz Exp $
	work.lily/asterisk-1.2.24/editline/parse.h: $NetBSD: parse.h,v 1.4 2000/09/04 22:06:31 lukem Exp $
	work.lily/asterisk-1.2.24/editline/vi.c: $NetBSD: vi.c,v 1.9 2002/03/18 16:01:01 christos Exp $
	work.lily/asterisk-1.2.24/editline/tokenizer.c: $NetBSD: tokenizer.c,v 1.10 2002/03/18 16:01:00 christos Exp $
	work.lily/asterisk-1.2.24/editline/search.c: $NetBSD: search.c,v 1.12 2002/03/18 16:00:58 christos Exp $
	work.lily/asterisk-1.2.24/editline/hist.c: $NetBSD: hist.c,v 1.10 2002/03/18 16:00:53 christos Exp $
	work.lily/asterisk-1.2.24/editline/parse.c: $NetBSD: parse.c,v 1.15 2002/03/18 16:00:56 christos Exp $
	work.lily/asterisk-1.2.24/editline/search.h: $NetBSD: search.h,v 1.5 2000/09/04 22:06:32 lukem Exp $
	work.lily/asterisk-1.2.24/editline/editline.3: $NetBSD: editline.3,v 1.25 2002/01/15 02:46:22 wiz Exp $
	work.lily/asterisk-1.2.24/editline/hist.h: $NetBSD: hist.h,v 1.7 2002/03/18 16:00:53 christos Exp $
	work.lily/asterisk-1.2.24/editline/map.c: $NetBSD: map.c,v 1.15 2002/03/18 16:00:55 christos Exp $
	work.lily/asterisk-1.2.24/editline/tokenizer.h: $NetBSD: tokenizer.h,v 1.5 2002/03/18 16:01:00 christos Exp $
	work.lily/asterisk-1.2.24/editline/tty.c: $NetBSD: tty.c,v 1.16 2002/03/18 16:01:01 christos Exp $
	work.lily/asterisk-1.2.24/editline/map.h: $NetBSD: map.h,v 1.7 2002/03/18 16:00:56 christos Exp $
	work.lily/asterisk-1.2.24/editline/sig.c: $NetBSD: sig.c,v 1.9 2002/03/18 16:00:58 christos Exp $
	work.lily/asterisk-1.2.24/editline/readline.c: $NetBSD: readline.c,v 1.21 2002/03/18 16:20:36 christos Exp $
	work.lily/asterisk-1.2.24/editline/tty.h: $NetBSD: tty.h,v 1.9 2002/03/18 16:01:01 christos Exp $
	work.lily/asterisk-1.2.24/editline/sig.h: $NetBSD: sig.h,v 1.3 2000/09/04 22:06:32 lukem Exp $
	work.lily/asterisk-1.2.24/editline/makelist: $NetBSD: makelist,v 1.7 2001/01/09 19:22:31 jdolecek Exp $
	work.lily/asterisk-1.2.24/editline/key.c: $NetBSD: key.c,v 1.13 2002/03/18 16:00:55 christos Exp $
	work.lily/asterisk-1.2.24/editline/common.c: $NetBSD: common.c,v 1.11 2002/03/18 16:00:51 christos Exp $
	work.lily/asterisk-1.2.24/editline/key.h: $NetBSD: key.h,v 1.6 2002/03/18 16:00:55 christos Exp $
	work.lily/asterisk-1.2.24/editline/history.o_a: $NetBSD: history.c,v 1.19 2002/03/18 16:00:54 christos Exp $
	work.lily/asterisk-1.2.24/editline/tokenizer.o_a: $NetBSD: tokenizer.c,v 1.10 2002/03/18 16:01:00 christos Exp $
	work.lily/asterisk-1.2.24/editline/readline.o_a: $NetBSD: readline.c,v 1.21 2002/03/18 16:20:36 christos Exp $
	work.lily/asterisk-1.2.24/editline/libedit.a: $NetBSD: history.c,v 1.19 2002/03/18 16:00:54 christos Exp $
	work.lily/asterisk-1.2.24/asterisk: $NetBSD: readline.c,v 1.21 2002/03/18 16:20:36 christos Exp $

TOOLS:
	AWK=/usr/bin/awk
	BASENAME=/usr/bin/basename
	YACC=yacc
	CAT=/bin/cat
	CHGRP=/usr/bin/chgrp
	CHMOD=/bin/chmod
	CHOWN=/usr/sbin/chown
	CMP=/usr/bin/cmp
	CP=/bin/cp
	CUT=/usr/bin/cut
	DATE=/bin/date
	DIFF=/usr/bin/diff
	DIGEST=/usr/pkg/bin/digest
	DIRNAME=/usr/bin/dirname
	ECHO=echo
	EGREP=/usr/bin/egrep
	SETENV=/usr/bin/env
	EXPR=/bin/expr
	FALSE=false
	FILE_CMD=/usr/bin/file
	FIND=/usr/bin/find
	GMAKE=/usr/pkg/bin/gmake
	GREP=/usr/bin/grep
	GZCAT=/usr/bin/gzcat
	HEAD=/usr/bin/head
	HOSTNAME_CMD=/bin/hostname
	ID=/usr/bin/id
	INSTALL=/usr/bin/install
	LN=/bin/ln
	LS=/bin/ls
	MKDIR=/bin/mkdir -p
	MV=/bin/mv
	PATCH=/usr/bin/patch
	PAX=/bin/pax
	PERL5=/usr/pkg/bin/perl
	PRINTF=/usr/bin/printf
	PWD_CMD=/bin/pwd
	RM=/bin/rm
	RMDIR=/bin/rmdir
	SED=/usr/bin/sed
	SH=/bin/sh
	SORT=/usr/bin/sort
	TAIL=/usr/bin/tail
	TAR=/bin/tar
	TEE=/usr/bin/tee
	TEST=test
	TOUCH=/usr/bin/touch
	TR=/usr/bin/tr
	TRUE=true
	TSORT=tsort -q
	WC=/usr/bin/wc
	XARGS=/usr/bin/xargs

CONFIGURE_DIRS:
	/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24

CONFIGURE_ENV (sorted alphabetically):
	CC=cc
	CFLAGS=-O2
	COMPILER_RPATH_FLAG=-Wl,-R
	CPPFLAGS=
	CXX=c++
	CXXCPP=cpp
	CXXFLAGS=-O2
	F77=f77
	FC=f77
	FFLAGS=-O
	INSTALL_INFO=
	LANG=C
	LC_COLLATE=C
	LC_CTYPE=C
	LC_MESSAGES=C
	LC_MONETARY=C
	LC_NUMERIC=C
	LC_TIME=C
	LDFLAGS=
	LINKER_RPATH_FLAG=-R
	MAKE=make
	MAKEINFO=/usr/pkgsrc/comms/asterisk/work.lily/.tools/bin/makeinfo
	PATH=/usr/pkgsrc/comms/asterisk/work.lily/.wrapper/bin:/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/bin:/usr/pkgsrc/comms/asterisk/work.lily/.gcc/bin:/usr/pkgsrc/comms/asterisk/work.lily/.tools/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R6/bin
	PKG_CONFIG=
	PKG_CONFIG_LIBDIR=/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/lib/pkgconfig:/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/share/pkgconfig
	PKG_CONFIG_LOG=/usr/pkgsrc/comms/asterisk/work.lily/.pkg-config.log
	PKG_SYSCONFDIR=/usr/pkg/etc/asterisk
	PREFIX=/usr/pkg
	PTHREADBASE=/usr
	PTHREAD_CFLAGS= -pthread 
	PTHREAD_LDFLAGS= -pthread
	PTHREAD_LIBS=
	WRAPPER_DEBUG=no
	WRAPPER_UPDATE_CACHE=yes

CONFIGURE_SCRIPT:
	./configure

CONFIGURE_ARGS:

WARNING: No config header found in /usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24.

PKGSRC_MAKE_ENV (sorted alphabetically):
	MAKECONF=/etc/mk.conf
	PATH=/usr/pkgsrc/comms/asterisk/work.lily/.wrapper/bin:/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/bin:/usr/pkgsrc/comms/asterisk/work.lily/.gcc/bin:/usr/pkgsrc/comms/asterisk/work.lily/.tools/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin

BUILD_DIRS:
	/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24

MAKE_ENV (sorted alphabetically):
	BSD_INSTALL=/usr/bin/install
	BSD_INSTALL_DATA=/usr/bin/install -c -o root -g wheel -m 444
	BSD_INSTALL_DATA_DIR=/usr/bin/install -d -o root -g wheel -m 755
	BSD_INSTALL_GAME=/usr/bin/install -c -s -o root -g wheel -m 555
	BSD_INSTALL_GAME_DATA=/usr/bin/install -c -o root -g wheel -m 444
	BSD_INSTALL_GAME_DIR=/usr/bin/install -d -o root -g wheel -m 755
	BSD_INSTALL_LIB=/usr/bin/install -c -o root -g wheel -m 555
	BSD_INSTALL_LIB_DIR=/usr/bin/install -d -o root -g wheel -m 755
	BSD_INSTALL_MAN=/usr/bin/install -c -o root -g wheel -m 444
	BSD_INSTALL_MAN_DIR=/usr/bin/install -d -o root -g wheel -m 755
	BSD_INSTALL_PROGRAM=/usr/bin/install -c -s -o root -g wheel -m 555
	BSD_INSTALL_PROGRAM_DIR=/usr/bin/install -d -o root -g wheel -m 755
	BSD_INSTALL_SCRIPT=/usr/bin/install -c -o root -g wheel -m 555
	BSD_INSTALL_SCRIPT_DIR=/usr/bin/install -d -o root -g wheel -m 755
	CC=cc
	CFLAGS=-O2
	COMPILER_RPATH_FLAG=-Wl,-R
	CPP=cpp
	CPPFLAGS=
	CXX=c++
	CXXCPP=cpp
	CXXFLAGS=-O2
	F77=f77
	FC=f77
	FFLAGS=-O
	INSTALL_INFO=
	LANG=C
	LC_COLLATE=C
	LC_CTYPE=C
	LC_MESSAGES=C
	LC_MONETARY=C
	LC_NUMERIC=C
	LC_TIME=C
	LDFLAGS=
	LINKER_RPATH_FLAG=-R
	LINK_ALL_LIBGCC_HACK=
	LOCALBASE=/usr/pkg
	MAKECONF=/dev/null
	MAKEINFO=/usr/pkgsrc/comms/asterisk/work.lily/.tools/bin/makeinfo
	NO_WHOLE_ARCHIVE_FLAG=-Wl,--no-whole-archive
	OBJECT_FMT=ELF
	PATH=/usr/pkgsrc/comms/asterisk/work.lily/.wrapper/bin:/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/bin:/usr/pkgsrc/comms/asterisk/work.lily/.gcc/bin:/usr/pkgsrc/comms/asterisk/work.lily/.tools/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R6/bin
	PKGMANDIR=man
	PKG_CONFIG=
	PKG_CONFIG_LIBDIR=/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/lib/pkgconfig:/usr/pkgsrc/comms/asterisk/work.lily/.buildlink/share/pkgconfig
	PKG_CONFIG_LOG=/usr/pkgsrc/comms/asterisk/work.lily/.pkg-config.log
	PKG_SYSCONFDIR=/usr/pkg/etc/asterisk
	PREFIX=/usr/pkg
	PTHREADBASE=/usr
	PTHREAD_CFLAGS= -pthread 
	PTHREAD_LDFLAGS= -pthread
	PTHREAD_LIBS=
	USETOOLS=no
	USETOOLS=no
	VARBASE=/var
	VIEWBASE=/usr/pkg
	WHOLE_ARCHIVE_FLAG=-Wl,--whole-archive
	WRAPPER_DEBUG=no
	WRAPPER_REORDER=yes
	WRAPPER_UPDATE_CACHE=yes
	X11BASE=/usr/X11R6
	X11PREFIX=/usr/pkg

MAKE_PROGRAM:
	/usr/pkg/bin/gmake

MAKE_FLAGS:
	WITHOUT_ZAPTEL=1
	INSTALL_PREFIX=/usr/pkg

BUILD_MAKE_FLAGS:

INSTALL_DIRS:
	/usr/pkgsrc/comms/asterisk/work.lily/asterisk-1.2.24

INSTALL_MAKE_FLAGS:

PLIST_SUBST (sorted alphabetically):
	CHGRP=/usr/bin/chgrp
	CHMOD=/bin/chmod
	CHOWN=/usr/sbin/chown
	GTK=@comment 
	LN=/bin/ln
	LOCALBASE=/usr/pkg
	LOWER_OPSYS=netbsd
	LOWER_OS_VERSION=4.0_stable
	LOWER_VENDOR=
	MACHINE_ARCH=mipsel
	MACHINE_GNU_ARCH=mipsel
	MACHINE_GNU_PLATFORM=mipsel--netbsd
	MKDIR=/bin/mkdir -p
	OPSYS=NetBSD
	OS_VERSION=4.0_STABLE
	PERL5_SUB_INSTALLARCHLIB=lib/perl5/5.8.0/mipsel-netbsd-thread-multi
	PERL5_SUB_INSTALLSCRIPT=lib/perl5/bin
	PERL5_SUB_INSTALLVENDORARCH=lib/perl5/vendor_perl/5.8.0/mipsel-netbsd-thread-multi
	PERL5_SUB_INSTALLVENDORBIN=lib/perl5/vendor_perl/bin
	PERL5_SUB_INSTALLVENDORLIB=lib/perl5/vendor_perl/5.8.0
	PERL5_SUB_INSTALLVENDORMAN1DIR=lib/perl5/vendor_perl/man/man1
	PERL5_SUB_INSTALLVENDORMAN3DIR=lib/perl5/vendor_perl/man/man3
	PERL5_SUB_INSTALLVENDORSCRIPT=lib/perl5/vendor_perl/bin
	PKGBASE=asterisk
	PKGLOCALEDIR=share
	PKGMANDIR=man
	PKGNAME=asterisk-1.2.24
	PKGVERSION=1.2.24
	RM=/bin/rm
	RMDIR=/bin/rmdir
	SVR4_PKGNAME=asterisk-1.2.24
	TRUE=true
	VIEWBASE=/usr/pkg
	X11BASE=/usr/X11R6
	X11PREFIX=/usr/pkg
	ZAPTEL=@comment 

Please view the work log for asterisk-1.2.24

BULK> asterisk-1.2.24 was marked as broken:
-rw-r--r--  1 root  wheel  810311 Feb 14 22:32 /usr/pkgsrc/comms/asterisk/.broken.lily.html
/usr/bin/make deinstall
===> Deinstalling for asterisk-1.2.24
BULK> Marking all packages which depend upon asterisk-1.2.24 as broken: BULK> Build for asterisk-1.2.24 was not successful, aborting.