Asterisk in FreeBSD 7.0 jail fails... Ideas?

G’Day,

    I have Asterisk without zaptel running fine inside a jail on FreeBSD 7.0. I want to use ztdummy for IAX2 timing and also to run app_meetme.

Also ideas?

exchange# asterisk -fdvvv -U asterisk -G asterisk
Asterisk 1.4.20.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

== Parsing ‘/usr/local/etc/asterisk/asterisk.conf’:
Parsing /usr/local/etc/asterisk/asterisk.conf
Found
== Parsing ‘/usr/local/etc/asterisk/extconfig.conf’:
Parsing /usr/local/etc/asterisk/extconfig.conf
Found
== Parsing ‘/usr/local/etc/asterisk/logger.conf’:
Parsing /usr/local/etc/asterisk/logger.conf
Found
Asterisk Event Logger Started /var/log/asterisk/event_log

21239 p0 I+J 0:00.03 asterisk -fdvvv

Runs into a dead lock up which i can’t kill PID

Here’s my build output

########################################################

Installed ZAPTEL-FreeBSD Port

pbxpress.com/~gonzo/zaptel-bsd-1.4.6.tar.gz

make
make install

zaptel.ko and ztdummy.ko loaded into kernel fine

Jail from /etc/rc.conf

JAIL EXCHANGE

jail_exchange_rootdir=“/usr/jail/exchange” # jail’s root directory
jail_exchange_hostname=“exchange.REMOVED.com” # jail’s hostname
jail_exchange_ip=“xxxx.xxx.xxx.xxx” # jail’s IP address
#jail_exchange_interface=“” # Interface to create the IP alias on
jail_exchange_exec_start=“/bin/sh /etc/rc” # command to execute in jail for
starting
#jail_exchange_exec_afterstart0=“/bin/sh command” # command to execute after
the one for
# starting the jail. More than one can be
# specified using a trailing number
jail_exchange_exec_stop=“/bin/sh /etc/rc.shutdown” # command to execute in
jail for stopping
jail_exchange_devfs_enable=“YES” # mount devfs in the jail
#jail_exchange_fdescfs_enable=“NO” # mount fdescfs in the jail
#jail_exchange_procfs_enable=“NO” # mount procfs in jail
jail_exchange_mount_enable=“NO” # mount/umount jail’s fs
jail_exchange_devfs_ruleset=“devfsrules_asterisk_jail” # devfs ruleset to
apply to jail
#jail_exchange_fstab=“” # fstab(5) for mount/umount
jail_exchange_flags=“-s 3” # flags for jail(8)

JAIL EXCHANGE

devfs.rules for Asterisk jail

Zap devices (for asterisk)

[devfsrules_unhide_zap=5]
add path zap unhide
add path ‘zap/’ unhide
add path zap user 200
add path zap group 200
add path 'zap/
’ user 200
add path ‘zap/*’ group 200

Devices for an asterisk jail

[devfsrules_asterisk_jail=6]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_unhide_zap

  • Note: asterisk user and group id inside jail is 200

host# ls -la /usr/jail/exchange/dev/zap/
total 0
crw-rw-r-- 1 200 200 0, 21 Jun 10 15:50 ctl

exchange# ls -la /dev/zap/
total 0
crw-rw-r-- 1 asterisk asterisk 0, 21 Jun 10 15:50 ctl

Asterisk build from source code asterisk-1.4.20.1

./configure --with-zaptel --with-usb --with-tonezone
gmake gmake menuselect
gmake
gmake install DESTDIR=/usr/jail/exchange

host# ./configure --with-zaptel --with-usb --with-tonezone
checking build system type… i386-unknown-freebsd7.0
checking host system type… i386-unknown-freebsd7.0
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for AIX… no
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking for uname… /usr/bin/uname
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking how to run the C preprocessor… gcc -E
checking how to run the C++ preprocessor… g++ -E
checking for a sed that does not truncate output… /usr/bin/sed
checking for egrep… grep -E
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for gawk… no
checking for mawk… no
checking for nawk… nawk
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking for ranlib… ranlib
checking for GNU make… gmake
checking for strip… /usr/bin/strip
checking for ar… /usr/bin/ar
checking for awk… /usr/bin/awk
checking for grep… (cached) /usr/bin/grep
checking for find… /usr/bin/find
checking for compress… /usr/bin/compress
checking for basename… /usr/bin/basename
checking for id… /usr/bin/id
checking for dirname… /usr/bin/dirname
checking for sh… /bin/sh
checking for ln… /bin/ln
checking for dot… :
checking for wget… :
checking for fetch… /usr/bin/fetch
checking for soxmix… no
checking for the pthreads library -lpthreads… no
checking whether pthreads work without any flags… no
checking whether pthreads work with -Kthread… no
checking whether pthreads work with -kthread… no
checking for the pthreads library -llthread… no
checking whether pthreads work with -pthread… yes
checking for joinable pthread attribute… PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads… -D_THREAD_SAFE
checking for working alloca.h… no
checking for alloca… yes
checking for dirent.h that defines DIR… yes
checking for library containing opendir… none required
checking for ANSI C header files… (cached) yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking arpa/inet.h usability… yes
checking arpa/inet.h presence… yes
checking for arpa/inet.h… yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking for inttypes.h… (cached) yes
checking libintl.h usability… yes
checking libintl.h presence… yes
checking for libintl.h… yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking locale.h usability… yes
checking locale.h presence… yes
checking for locale.h… yes
checking malloc.h usability… no
checking malloc.h presence… no
checking for malloc.h… no
checking netdb.h usability… yes
checking netdb.h presence… yes
checking for netdb.h… yes
checking netinet/in.h usability… yes
checking netinet/in.h presence… yes
checking for netinet/in.h… yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking for stdint.h… (cached) yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking sys/file.h usability… yes
checking sys/file.h presence… yes
checking for sys/file.h… yes
checking sys/ioctl.h usability… yes
checking sys/ioctl.h presence… yes
checking for sys/ioctl.h… yes
checking sys/param.h usability… yes
checking sys/param.h presence… yes
checking for sys/param.h… yes
checking sys/socket.h usability… yes
checking sys/socket.h presence… yes
checking for sys/socket.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking syslog.h usability… yes
checking syslog.h presence… yes
checking for syslog.h… yes
checking termios.h usability… yes
checking termios.h presence… yes
checking for termios.h… yes
checking for unistd.h… (cached) yes
checking utime.h usability… yes
checking utime.h presence… yes
checking for utime.h… yes
checking arpa/nameser.h usability… yes
checking arpa/nameser.h presence… yes
checking for arpa/nameser.h… yes
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… no
checking for stdbool.h that conforms to C99… yes
checking for _Bool… yes
checking for an ANSI C-conforming const… yes
checking for uid_t in sys/types.h… yes
checking for inline… inline
checking for mode_t… yes
checking for off_t… yes
checking for pid_t… yes
checking for size_t… yes
checking for struct stat.st_blksize… yes
checking whether time.h and sys/time.h may both be included… yes
checking whether struct tm is in sys/time.h or time.h… time.h
checking for working volatile… yes
checking for ptrdiff_t… yes
checking for unistd.h… (cached) yes
checking for working chown… yes
checking whether closedir returns void… no
checking for error_at_line… no
checking vfork.h usability… no
checking vfork.h presence… no
checking for vfork.h… no
checking for fork… yes
checking for vfork… yes
checking for working fork… yes
checking for working vfork… (cached) yes
checking for _LARGEFILE_SOURCE value needed for large files… no
checking whether gcc needs -traditional… no
checking for working memcmp… yes
checking for stdlib.h… (cached) yes
checking for unistd.h… (cached) yes
checking for getpagesize… yes
checking for working mmap… yes
checking sys/select.h usability… yes
checking sys/select.h presence… yes
checking for sys/select.h… yes
checking for sys/socket.h… (cached) yes
checking types of arguments for select… int,fd_set *,struct timeval *
checking for function prototypes… yes
checking whether setvbuf arguments are reversed… no
checking return type of signal handlers… void
checking whether lstat dereferences a symlink specified with a trailing
slash… no
checking whether stat accepts an empty string… no
checking for working strcoll… yes
checking for strftime… yes
checking for working strnlen… no
checking for working strtod… yes
checking for utime.h… (cached) yes
checking whether utime accepts a null argument… yes
checking for vprintf… yes
checking for _doprnt… no
checking for asprintf… yes
checking for atexit… yes
checking for bzero… yes
checking for dup2… yes
checking for endpwent… yes
checking for floor… no
checking for ftruncate… yes
checking for getcwd… yes
checking for gethostbyname… yes
checking for gethostname… yes
checking for getloadavg… yes
checking for gettimeofday… yes
checking for inet_ntoa… yes
checking for isascii… yes
checking for localtime_r… yes
checking for memchr… yes
checking for memmove… yes
checking for memset… yes
checking for mkdir… yes
checking for munmap… yes
checking for pow… no
checking for putenv… yes
checking for re_comp… no
checking for regcomp… yes
checking for rint… no
checking for select… yes
checking for setenv… yes
checking for socket… yes
checking for sqrt… no
checking for strcasecmp… yes
checking for strcasestr… yes
checking for strchr… yes
checking for strcspn… yes
checking for strdup… yes
checking for strerror… yes
checking for strlcat… yes
checking for strlcpy… yes
checking for strncasecmp… yes
checking for strndup… no
checking for strnlen… no
checking for strrchr… yes
checking for strsep… yes
checking for strspn… yes
checking for strstr… yes
checking for strtol… yes
checking for strtoq… yes
checking for unsetenv… yes
checking for utime… yes
checking for vasprintf… yes
checking for library containing gethostbyname_r… none required
checking for gethostbyname_r with 6 arguments… yes
checking for gethostbyname_r with 5 arguments… no
checking for PTHREAD_RWLOCK_INITIALIZER… yes
checking for PTHREAD_RWLOCK_PREFER_WRITER_NP… no
checking for compiler atomic operations… no
checking for compiler ‘attribute pure’ support… yes
checking for compiler ‘attribute malloc’ support… yes
checking for compiler ‘attribute const’ support… yes
checking for compiler ‘attribute unused’ support… yes
checking for compiler ‘attribute always_inline’ support… yes
checking for compiler ‘attribute deprecated’ support… yes
checking for -ffunction-sections support… yes
checking for --gc-sections support… yes
checking for -Wdeclaration-after-statement support… yes
checking for -fno-strict-overflow… yes
checking for library containing res_9_ninit… no
checking for res_ninit… yes
checking for library containing res_9_ndestroy… no
checking for res_ndestroy… yes
checking for RTLD_NOLOAD… no
checking for IP_MTU_DISCOVER… no
checking libkern/OSAtomic.h usability… no
checking libkern/OSAtomic.h presence… no
checking for libkern/OSAtomic.h… no
checking for int… yes
checking size of int… 4
checking for snd_spcm_init in -lasound… no
checking for initscr in -lcurses… yes
checking curses.h usability… yes
checking curses.h presence… yes
checking for curses.h… yes
checking if “struct ifaddrs *p; getifaddrs(&p)” compiles using ifaddrs.h… no
checking for gsm_create in -lgsm… no
checking for iks_start_sasl in -liksemel… no
checking for UW IMAP Toolkit c-client library… no
checking for system c-client library… no
checking for lt_dlinit in -lltdl… no
checking for crashHandler in -lkdecore… no
checking for mISDN_open in -lmISDN… no
checking for nbs_connect in -lnbs… no
checking for initscr in -lncurses… yes
checking for curses.h… (cached) yes
checking for net-snmp-config… no
checking for newtBell in -lnewt… yes
checking newt.h usability… yes
checking newt.h presence… yes
checking for newt.h… yes
checking for SQLConnect in -lodbc… no
checking for ogg_sync_init in -logg… no
checking linux/soundcard.h usability… no
checking linux/soundcard.h presence… no
checking for linux/soundcard.h… no
checking sys/soundcard.h usability… yes
checking sys/soundcard.h presence… yes
checking for sys/soundcard.h… yes
checking for pg_config… no
checking for poptStrerror in -lpopt… yes
checking popt.h usability… yes
checking popt.h presence… yes
checking for popt.h… yes
checking for pri_keypad_facility in -lpri… no
checking for pri_get_version in -lpri… no
checking /root/pwlib/include/ptlib.h usability… no
checking /root/pwlib/include/ptlib.h presence… no
checking for /root/pwlib/include/ptlib.h… no
checking /usr/local/include/ptlib.h usability… no
checking /usr/local/include/ptlib.h presence… no
checking for /usr/local/include/ptlib.h… no
checking /usr/include/ptlib.h usability… no
checking /usr/include/ptlib.h presence… no
checking for /usr/include/ptlib.h… no
checking for rc_read_config in -lradiusclient-ng… no
checking for speex_encode in -lspeex… no
checking for speex_preprocess_ctl in -lspeex… no
checking for speex_preprocess_ctl in -lspeexdsp… no
checking for sqlite_exec in -lsqlite… no
checking for ssl2_connect in -lssl… yes
checking openssl/ssl.h usability… yes
checking openssl/ssl.h presence… yes
checking for openssl/ssl.h… yes
checking for OSPPCryptoDecrypt in -losptk… no
checking for tds_version in -ltds… no
checking for tgetent in -ltermcap… yes
checking for tgetent in -ltinfo… yes
checking for tone_zone_find in -ltonezone… yes
checking zaptel/tonezone.h usability… yes
checking zaptel/tonezone.h presence… yes
checking for zaptel/tonezone.h… yes
checking for usb_init in -lusb… yes
checking usb.h usability… yes
checking usb.h presence… yes
checking for usb.h… yes
checking for vorbis_info_init in -lvorbis… no
checking for vpb_open in -lvpb… no
checking for compress in -lz… yes
checking zlib.h usability… yes
checking zlib.h presence… yes
checking for zlib.h… yes
checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h… yes
checking for ZT_EVENT_REMOVED in zaptel/zaptel.h… yes
checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h… yes
checking h323.h usability… no
checking h323.h presence… no
checking for h323.h… no
checking linux/compiler.h usability… no
checking linux/compiler.h presence… no
checking for linux/compiler.h… no
checking for linux/ixjuser.h… no
checking for /sbin/launchd… no
checking for gtk-config… no
checking for pkg-config… no
checking for curl-config… no
configure: creating ./config.status
config.status: creating build_tools/menuselect-deps
config.status: creating makeopts
config.status: creating channels/h323/Makefile
config.status: creating include/asterisk/autoconfig.h
config.status: include/asterisk/autoconfig.h is unchanged

           .$$$$$$$$$$$$$$$=..
        .$7$7..          .7$$7:.
      .$$:.                 ,$7.7
    .$7.     7$$$$           .$$77
 ..$$.       $$$$$            .$$$7
..7$   .?.   $$$$$   .?.       7$$$.

$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ ™
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.

configure: Package configured for:
configure: OS type : freebsd7.0
configure: Host CPU : i386

host# gmake
gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/menuselect' gmake[2]: Entering directory /usr/src/asterisk-1.4.20.1/menuselect’
gmake[2]: menuselect' is up to date. gmake[2]: Leaving directory /usr/src/asterisk-1.4.20.1/menuselect’
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/menuselect' menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for `all’.
[CC] codec_ulaw.c → codec_ulaw.o
[LD] codec_ulaw.o → codec_ulaw.so
[CC] codec_zap.c → codec_zap.o
[LD] codec_zap.o → codec_zap.so
[CC] format_g723.c → format_g723.o
[LD] format_g723.o → format_g723.so
[CC] format_g726.c → format_g726.o
[LD] format_g726.o → format_g726.so
[CC] format_g729.c → format_g729.o
[LD] format_g729.o → format_g729.so
[CC] format_gsm.c → format_gsm.o
[LD] format_gsm.o → format_gsm.so
[CC] format_ilbc.c → format_ilbc.o
[LD] format_ilbc.o → format_ilbc.so
[CC] format_pcm.c → format_pcm.o
[LD] format_pcm.o → format_pcm.so
[CC] format_sln.c → format_sln.o
[LD] format_sln.o → format_sln.so
[CC] format_vox.c → format_vox.o
[LD] format_vox.o → format_vox.so
[CC] format_wav.c → format_wav.o
[LD] format_wav.o → format_wav.so
[CC] format_wav_gsm.c → format_wav_gsm.o
[LD] format_wav_gsm.o → format_wav_gsm.so
[CC] func_base64.c → func_base64.o
[LD] func_base64.o → func_base64.so
[CC] func_callerid.c → func_callerid.o
[LD] func_callerid.o → func_callerid.so
[CC] func_cdr.c → func_cdr.o
[LD] func_cdr.o → func_cdr.so
[CC] func_channel.c → func_channel.o
[LD] func_channel.o → func_channel.so
[CC] func_cut.c → func_cut.o
[LD] func_cut.o → func_cut.so
[CC] func_db.c → func_db.o
[LD] func_db.o → func_db.so
[CC] func_enum.c → func_enum.o
[LD] func_enum.o → func_enum.so
[CC] func_env.c → func_env.o
[LD] func_env.o → func_env.so
[CC] func_global.c → func_global.o
[LD] func_global.o → func_global.so
[CC] func_groupcount.c → func_groupcount.o
[LD] func_groupcount.o → func_groupcount.so
[CC] func_language.c → func_language.o
[LD] func_language.o → func_language.so
[CC] func_logic.c → func_logic.o
[LD] func_logic.o → func_logic.so
[CC] func_math.c → func_math.o
[LD] func_math.o → func_math.so
[CC] func_md5.c → func_md5.o
[LD] func_md5.o → func_md5.so
[CC] func_moh.c → func_moh.o
[LD] func_moh.o → func_moh.so
[CC] func_rand.c → func_rand.o
[LD] func_rand.o → func_rand.so
[CC] func_realtime.c → func_realtime.o
[LD] func_realtime.o → func_realtime.so
[CC] func_sha1.c → func_sha1.o
[LD] func_sha1.o → func_sha1.so
[CC] func_strings.c → func_strings.o
[LD] func_strings.o → func_strings.so
[CC] func_timeout.c → func_timeout.o
[LD] func_timeout.o → func_timeout.so
[CC] func_uri.c → func_uri.o
[LD] func_uri.o → func_uri.so
[CC] abstract_jb.c → abstract_jb.o
[CC] acl.c → acl.o
[CC] aescrypt.c → aescrypt.o
[CC] aeskey.c → aeskey.o
[CC] aestab.c → aestab.o
[CC] alaw.c → alaw.o
[CC] app.c → app.o
[CC] ast_expr2.c → ast_expr2.o
[CC] ast_expr2f.c → ast_expr2f.o
[CC] asterisk.c → asterisk.o
[CC] astmm.c → astmm.o
[CC] astobj2.c → astobj2.o
[CC] audiohook.c → audiohook.o
[CC] autoservice.c → autoservice.o
[CC] callerid.c → callerid.o
[CC] cdr.c → cdr.o
[CC] channel.c → channel.o
[CC] chanvars.c → chanvars.o
[CC] cli.c → cli.o
[CC] config.c → config.o
[CC] cryptostub.c → cryptostub.o
[CC] db.c → db.o
[CC] devicestate.c → devicestate.o
[CC] dial.c → dial.o
[CC] dns.c → dns.o
[CC] dnsmgr.c → dnsmgr.o
[CC] dsp.c → dsp.o
[CC] enum.c → enum.o
[CC] file.c → file.o
[CC] fixedjitterbuf.c → fixedjitterbuf.o
[CC] frame.c → frame.o
[CC] fskmodem.c → fskmodem.o
[CC] global_datastores.c → global_datastores.o
[CC] http.c → http.o
[CC] image.c → image.o
[CC] indications.c → indications.o
[CC] io.c → io.o
[CC] jitterbuf.c → jitterbuf.o
[CC] loader.c → loader.o
[CC] logger.c → logger.o
[CC] manager.c → manager.o
[CC] md5.c → md5.o
[CC] netsock.c → netsock.o
[CC] pbx.c → pbx.o
[CC] plc.c → plc.o
[CC] privacy.c → privacy.o
[CC] rtp.c → rtp.o
[CC] say.c → say.o
[CC] sched.c → sched.o
sched.c: In function ‘ast_sched_dump’:
sched.c:316: warning: format ‘%.6ld’ expects type ‘long int’, but argument 9
has type ‘time_t’
[CC] sha1.c → sha1.o
[CC] slinfactory.c → slinfactory.o
[CC] srv.c → srv.o
[CC] stdtime/localtime.c → stdtime/localtime.o
[CC] strcompat.c → strcompat.o
[CC] tdd.c → tdd.o
[CC] term.c → term.o
[CC] threadstorage.c → threadstorage.o
[CC] translate.c → translate.o
[CC] udptl.c → udptl.o
[CC] ulaw.c → ulaw.o
[CC] utils.c → utils.o
utils.c: In function ‘tvfix’:
utils.c:1066: warning: format ‘%ld’ expects type ‘long int’, but argument 6
has type ‘time_t’
utils.c:1071: warning: format ‘%ld’ expects type ‘long int’, but argument 6
has type ‘time_t’
cd editline && test -f config.h ||
CFLAGS=“-D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6”
LDFLAGS=" -L/usr/local/lib" ./configure --build=i386-unknown-freebsd7.0 --host=i386-unknown-freebsd7.0 --with-ncurses= --with-curses= --with-termcap= --with-tinfo=
creating cache ./config.cache
checking for gcc… gcc
checking whether the C compiler
(gcc -D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6 -L/usr/local/lib)
works… yes
checking whether the C compiler
(gcc -D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6 -L/usr/local/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… gcc -E
checking host system type… i386-unknown-freebsd7.0
checking for a BSD compatible install… /usr/bin/install -c
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
gmake -C editline libedit.a
/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 | /usr/bin/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 | /usr/bin/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 -D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6 ‘-D__RENAME(x)=’ ‘-D_DIAGASSERT(x)=’ -I.
editline.c -o editline.o_a
In file included from editline.c:8:
el.c: In function ‘el_get’:
el.c:284: warning: dereferencing type-punned pointer will break
strict-aliasing rules
el.c:288: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gcc -c -D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6 ‘-D__RENAME(x)=’ ‘-D_DIAGASSERT(x)=’ -I.
history.c -o history.o_a
gcc -c -D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6 ‘-D__RENAME(x)=’ ‘-D_DIAGASSERT(x)=’ -I.
tokenizer.c -o tokenizer.o_a
gcc -c -D_THREAD_SAFE -pthread -I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6 ‘-D__RENAME(x)=’ ‘-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
CFLAGS=“-I…/…//include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include …/…//include/asterisk/autoconfig.h -I/usr/local/include -march=i386 -O6”
LDFLAGS=" -L/usr/local/lib" gmake -C db1-ast libdb1.a
[CC] hash/hash.c → hash/hash.o
[CC] hash/hash_bigkey.c → hash/hash_bigkey.o
[CC] hash/hash_buf.c → hash/hash_buf.o
[CC] hash/hash_func.c → hash/hash_func.o
[CC] hash/hash_log2.c → hash/hash_log2.o
[CC] hash/hash_page.c → hash/hash_page.o
[CC] hash/ndbm.c → hash/ndbm.o
[CC] btree/bt_close.c → btree/bt_close.o
[CC] btree/bt_conv.c → btree/bt_conv.o
[CC] btree/bt_debug.c → btree/bt_debug.o
[CC] btree/bt_delete.c → btree/bt_delete.o
[CC] btree/bt_get.c → btree/bt_get.o
[CC] btree/bt_open.c → btree/bt_open.o
[CC] btree/bt_overflow.c → btree/bt_overflow.o
[CC] btree/bt_page.c → btree/bt_page.o
[CC] btree/bt_put.c → btree/bt_put.o
[CC] btree/bt_search.c → btree/bt_search.o
[CC] btree/bt_seq.c → btree/bt_seq.o
[CC] btree/bt_split.c → btree/bt_split.o
[CC] btree/bt_utils.c → btree/bt_utils.o
[CC] db/db.c → db/db.o
[CC] mpool/mpool.c → mpool/mpool.o
[CC] recno/rec_close.c → recno/rec_close.o
[CC] recno/rec_delete.c → recno/rec_delete.o
[CC] recno/rec_get.c → recno/rec_get.o
[CC] recno/rec_open.c → recno/rec_open.o
[CC] recno/rec_put.c → recno/rec_put.o
[CC] recno/rec_search.c → recno/rec_search.o
[CC] recno/rec_seq.c → recno/rec_seq.o
[CC] recno/rec_utils.c → recno/rec_utils.o
[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o
hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o
btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o
btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o
btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o
mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o
recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o
recno/rec_utils.o → libdb1.a
[LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o app.o
ast_expr2.o ast_expr2f.o asterisk.o astmm.o astobj2.o audiohook.o
autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o config.o
cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o
fixedjitterbuf.o frame.o fskmodem.o global_datastores.o http.o image.o
indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o
pbx.o plc.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o
stdtime/localtime.o strcompat.o tdd.o term.o threadstorage.o translate.o
udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a → asterisk
±-------- Asterisk Build Complete ---------+

  • Asterisk has successfully been built, and +
  • can be installed by running: +
  •                                       +
    
  •           gmake install               +
    

±------------------------------------------+

host# gmake install DESTDIR=/usr/jail/exchange
gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/menuselect' gmake[2]: Entering directory /usr/src/asterisk-1.4.20.1/menuselect’
gmake[2]: menuselect' is up to date. gmake[2]: Leaving directory /usr/src/asterisk-1.4.20.1/menuselect’
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/menuselect' menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
gmake[1]: Nothing to be done for all'. gmake[1]: Nothing to be done for all’.
if [ x/usr/bin/id -un = xroot ]; then
CFLAGS=" -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /usr/src/asterisk-1.4.20.1/include/asterisk/autoconfig.h -I/usr/local/include -march=i386 "
sh build_tools/mkpkgconfig /usr/jail/exchange/usr/lib/pkgconfig; fi
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/static-http
for x in static-http/; do
/usr/bin/install -c -m 644
$x /usr/jail/exchange/usr/local/share/asterisk/static-http ;
done
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/images
for x in images/
.jpg; do
/usr/bin/install -c -m 644
$x /usr/jail/exchange/usr/local/share/asterisk/images ;
done
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/agi-bin
gmake -C sounds install
gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/sounds' gmake[1]: Nothing to be done for install’.
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/sounds' mkdir -p /usr/jail/exchange/usr/local/lib/asterisk/modules mkdir -p /usr/jail/exchange/usr/local/sbin mkdir -p /usr/jail/exchange/usr/local/etc/asterisk mkdir -p /usr/jail/exchange/usr/local/bin mkdir -p /usr/jail/exchange/var/run/asterisk mkdir -p /usr/jail/exchange/var/spool/asterisk/voicemail mkdir -p /usr/jail/exchange/var/spool/asterisk/dictate mkdir -p /usr/jail/exchange/var/spool/asterisk/system mkdir -p /usr/jail/exchange/var/spool/asterisk/tmp mkdir -p /usr/jail/exchange/var/spool/asterisk/meetme mkdir -p /usr/jail/exchange/var/spool/asterisk/monitor gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/utils’
for x in astman smsq stereorize streamplayer aelparse muted; do
if [ “$x” != “none” ]; then
/usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/sbin/$x;
fi;
done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/utils' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/agi’
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/agi-bin
for x in agi-test.agi eagi-test eagi-sphinx-test jukebox.agi;
do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/share/asterisk/agi-bin ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/agi' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/res’
for x in res_adsi.so res_agi.so res_clioriginate.so res_convert.so
res_crypto.so res_features.so res_indications.so res_monitor.so
res_musiconhold.so res_smdi.so res_speech.so; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/res' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/channels’
for x in chan_agent.so chan_features.so chan_iax2.so chan_local.so
chan_mgcp.so chan_oss.so chan_sip.so chan_skinny.so chan_zap.so;
do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/channels' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/pbx’
for x in pbx_ael.so pbx_config.so pbx_dundi.so pbx_loopback.so pbx_realtime.so
pbx_spool.so; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/pbx' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/apps’
for x in app_adsiprog.so app_amd.so app_authenticate.so app_cdr.so
app_chanisavail.so app_channelredirect.so app_chanspy.so
app_controlplayback.so app_db.so app_dial.so app_dictate.so
app_directed_pickup.so app_directory.so app_disa.so app_dumpchan.so
app_echo.so app_exec.so app_externalivr.so app_followme.so app_getcpeid.so
app_hasnewvoicemail.so app_lookupblacklist.so app_lookupcidname.so
app_macro.so app_meetme.so app_milliwatt.so app_mixmonitor.so
app_morsecode.so app_page.so app_parkandannounce.so app_playback.so
app_privacy.so app_queue.so app_random.so app_read.so app_readfile.so
app_realtime.so app_record.so app_sayunixtime.so app_senddtmf.so
app_sendtext.so app_setcallerid.so app_setcdruserfield.so app_sms.so
app_softhangup.so app_speech_utils.so app_stack.so app_system.so
app_talkdetect.so app_test.so app_transfer.so app_userevent.so app_verbose.so
app_voicemail.so app_waitforring.so app_waitforsilence.so app_while.so
app_zapateller.so app_zapbarge.so app_zapras.so app_zapscan.so;
do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/apps' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/codecs’
for x in codec_a_mu.so codec_adpcm.so codec_alaw.so codec_g726.so codec_gsm.so
codec_ulaw.so codec_zap.so; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/codecs' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/formats’
for x in format_g723.so format_g726.so format_g729.so format_gsm.so
format_ilbc.so format_pcm.so format_sln.so format_vox.so format_wav.so
format_wav_gsm.so; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/formats' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/cdr’
for x in ; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/cdr' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/funcs’
for x in func_base64.so func_callerid.so func_cdr.so func_channel.so
func_cut.so func_db.so func_enum.so func_env.so func_global.so
func_groupcount.so func_language.so func_logic.so func_math.so func_md5.so
func_moh.so func_rand.so func_realtime.so func_sha1.so func_strings.so
func_timeout.so func_uri.so; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory /usr/src/asterisk-1.4.20.1/funcs' gmake[1]: Entering directory /usr/src/asterisk-1.4.20.1/main’
for x in ; do /usr/bin/install -c -m 755
$x /usr/jail/exchange/usr/local/lib/asterisk/modules ; done
gmake[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/main’
/usr/bin/install -c -m 755 main/asterisk /usr/jail/exchange/usr/local/sbin/
/bin/ln -sf asterisk /usr/jail/exchange/usr/local/sbin/rasterisk
/usr/bin/install -c -m 755
contrib/scripts/astgenkey /usr/jail/exchange/usr/local/sbin/
/usr/bin/install -c -m 755
contrib/scripts/autosupport /usr/jail/exchange/usr/local/sbin/
if [ ! -f /usr/jail/exchange/usr/local/sbin/safe_asterisk ]; then
cat contrib/scripts/safe_asterisk | sed ‘s|
ASTERISK_SBIN_DIR|/usr/local/sbin|;s|
ASTERISK_VARRUN_DIR|/var/run/asterisk|;’

/usr/jail/exchange/usr/local/sbin/safe_asterisk ;
chmod 755 /usr/jail/exchange/usr/local/sbin/safe_asterisk;
fi
/usr/bin/install -c -d /usr/jail/exchange/usr/local/include/asterisk
/usr/bin/install -c -m 644
include/asterisk.h /usr/jail/exchange/usr/local/include
/usr/bin/install -c -m 644
include/asterisk/*.h /usr/jail/exchange/usr/local/include/asterisk
if [ -n “” ]; then
rm -f ;
fi
mkdir -p /usr/jail/exchange/var/log/asterisk/cdr-csv
mkdir -p /usr/jail/exchange/var/log/asterisk/cdr-custom
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/keys
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/firmware
mkdir -p /usr/jail/exchange/usr/local/share/asterisk/firmware/iax
mkdir -p /usr/jail/exchange/usr/local/share/man/man8
/usr/bin/install -c -m 644
keys/iaxtel.pub /usr/jail/exchange/usr/local/share/asterisk/keys
/usr/bin/install -c -m 644
keys/freeworlddialup.pub /usr/jail/exchange/usr/local/share/asterisk/keys
/usr/bin/install -c -m 644
doc/asterisk.8 /usr/jail/exchange/usr/local/share/man/man8
/usr/bin/install -c -m 644
contrib/scripts/astgenkey.8 /usr/jail/exchange/usr/local/share/man/man8
/usr/bin/install -c -m 644
contrib/scripts/autosupport.8 /usr/jail/exchange/usr/local/share/man/man8
/usr/bin/install -c -m 644
contrib/scripts/safe_asterisk.8 /usr/jail/exchange/usr/local/share/man/man8
if [ -f contrib/firmware/iax/iaxy.bin ] ; then
/usr/bin/install -c -m 644
contrib/firmware/iax/iaxy.bin /usr/jail/exchange/usr/local/share/asterisk/firmware/iax/iaxy.bin;

fi
±— Asterisk Installation Complete -------+

  •                                       +
    
  • YOU MUST READ THE SECURITY DOCUMENT +
  •                                       +
    
  • Asterisk has successfully been installed. +
  • If you would like to install the sample +
  • configuration files (overwriting any +
  • existing config files), run: +
  •                                       +
    
  •           gmake samples               +
    
  •                                       +
    

±---------------- or ---------------------+

  •                                       +
    
  • You can go ahead and install the asterisk +
  • program documentation now or later run: +
  •                                       +
    
  •          gmake progdocs               +
    
  •                                       +
    
  • Note This requires that you have +
  • doxygen installed on your local system +
    ±------------------------------------------+
    WARNING WARNING WARNING

Your Asterisk modules directory, located at
/usr/jail/exchange/usr/local/lib/asterisk/modules
contains modules that were not installed by this
version of Asterisk. Please ensure that these
modules are compatible with this version before
attempting to run Asterisk.

codec_g729.so

WARNING WARNING WARNING