[Asterisk-Users] Compiling Asterisk 1.2 from Source on Debian
Sarge - Problems
Tzafrir Cohen
tzafrir at cohens.org.il
Wed Nov 30 04:06:05 MST 2005
On Wed, Nov 30, 2005 at 12:38:28PM +0200, Hagen Rode wrote:
>
>
> Hi
>
> I am trying to compile Asterisk 1.2 from source on Debian Sarge but am
> getting errors. I have looked at the errors, Googled extensively and now at
> a last resort am posting on this list. Believe me I have tried, but have
> come up with nothing. I've also installed the following packages from Debian
> Sarge "UNSTABLE":
Debian Sarge is "Stable".
>
> gcc
> kernel-headers-2.4.27
> bison
> openssl
> libssl0.9.7:
> libssl-dev
> libeditline0
> libeditline-dev
> libedit-dev
> libedit2
> libncurses5
> libncurses5-dev
> zlib1g-dev (Note: needed for cvs head)
Which version of gcc do you use? Testing and Unstable currently use gcc
4. Mixing gcc 3.3 and gcc 4 could lead to some breakages. Specifically I
would assume that your kernel headers are from Sarge (Stable).
BTW: If you want debs of 1.2 for Sarge:
deb http://rapid.dotsrc.org/ experimental/
deb http://rapid.dotsrc.org/ unstable/
Note that they are bristuffed. Don't like that? the souces are there
(s/deb/deb-src/). edit debian/patches/00list to remove the bristuff
patch and rebuild. I believe no other patch depends on it.
>
> as well as numerous other packages that I have now lost track of. The error
> remains the same. It would be great if someone could help me out. I'm aware
> that I can apt-get Asterisk, but I want to do some tweaking in the code
> before installing.
apt-get source asterisk
cd asterisk-<version number>
and then either:
dpatch-edit-patch a_new_patch
# edit the change
exit
# or brute-force manually edit files
# don't forget to log your changes:
# the following two are from the package devscripts:
dch -n # -n: increment the version number a bit.
debuild -uc -us
now you'll have fresh new packages in the directory above. I figure
you'll only need to upgrade the binary package asterisk itself if the
change is a simple tweak.
>
> Here is the first bit of the install message:
>
> 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
> if cmp -s .cleancount .lastclean ; then echo ; else \
> make clean; cp -f .cleancount .lastclean;\
> fi
>
> 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 make -C $x depend || exit 1 ; done
> make[1]: Entering directory `/opt/asterisk-1.2.0/res'
> make[1]: Nothing to be done for `depend'.
> make[1]: Leaving directory `/opt/asterisk-1.2.0/res'
> make[1]: Entering directory `/opt/asterisk-1.2.0/channels'
> make[1]: Nothing to be done for `depend'.
> make[1]: Leaving directory `/opt/asterisk-1.2.0/channels'
> make[1]: Entering directory `/opt/asterisk-1.2.0/pbx'
> make[1]: Nothing to be done for `depend'.
> make[1]: Leaving directory `/opt/asterisk-1.2.0/pbx'
> make[1]: Entering directory `/opt/asterisk-1.2.0/apps'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer -fPIC `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/apps'
> make[1]: Entering directory `/opt/asterisk-1.2.0/codecs'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer -fPIC `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/codecs'
> make[1]: Entering directory `/opt/asterisk-1.2.0/formats'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer -fPIC `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/formats'
> make[1]: Entering directory `/opt/asterisk-1.2.0/agi'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/agi'
> make[1]: Entering directory `/opt/asterisk-1.2.0/cdr'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer -fPIC `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/cdr'
> make[1]: Entering directory `/opt/asterisk-1.2.0/funcs'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer -fPIC `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/funcs'
> make[1]: Entering directory `/opt/asterisk-1.2.0/utils'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer -DNO_AST_MM `ls *.c`
> make[1]: Leaving directory `/opt/asterisk-1.2.0/utils'
> make[1]: Entering directory `/opt/asterisk-1.2.0/stdtime'
> ../build_tools/mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT
> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
> -fomit-frame-pointer *.c
> make[1]: Leaving directory `/opt/asterisk-1.2.0/stdtime'
> cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
> creating cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) 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... i686-pc-linux-gnu
> 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... no
> checking for issetugid... no
> checking for strlcat... no
> checking for strlcpy... no
> checking for fgetln... no
> checking for strvis... no
> checking for strunvis... no
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating config.h
> make -C editline libedit.a
> make[1]: Entering directory `/opt/asterisk-1.2.0/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 -O '-D__RCSID(x)=' '-D__COPYRIGHT(x)='
> '-D__RENAME(x)=' '-D_DIAGASSERT(x)=' -I. editline.c -o editline.o_a
>
> And then late on it says:
>
> Dereferencing pointer to incomplete type
>
> Any thoughts?
>
> Hagen
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Tzafrir Cohen | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir at cohens.org.il | | best
ICQ# 16849755 | | friend
More information about the asterisk-users
mailing list