Summary:ASTERISK-01309: Error's Compiling all code under FreeBSD 5.2.1
Reporter:rburkhal (rburkhal)Labels:
Date Opened:2004-03-28 18:49:54.000-0600Date Closed:2011-06-07 14:10:16
Versions:Frequency of
Description:All Make files fail for make install in all packages, asterisk, libpri and zaptel.  All solutions diff's applied faild to correct problem.  


Main Issue's of note;
1) /usr/src/linux not correctly linked on systems
2) I'm real new at linux and am learning, need help
3) Zaptel is not of major importance, not using hardware
4) Need libpri Makefile fixed
5) Can the code for 5.x.x FreeBSD be included in make Makefiles
Comments:By: James Golovich (jamesgolovich) 2004-03-28 19:16:50.000-0600

asterisk should build fine on freebsd.  if theres still an issue we can fix that.

zaptel does not work at all on anything but linux, so you don't have to worry ab out the linux kernel

libpri is only used by the chan_zap channel driver, which requires zaptel.  So libpri is not currently an issue.

If you need support I suggest you send an email to the asterisk-users mailing list or jump on irc and find some help there

By: Olle Johansson (oej) 2004-03-28 19:21:48.000-0600

I have asterisk running on several FreeBSD 4.x systems. There's no problem. Haven't tested on 5.2 though.

By: rburkhal (rburkhal) 2004-03-28 19:47:25.000-0600

Thnx for the swift response, and your right it's working....
Waiting for all the packages to download and install
It's behaving differtly than before....I will post when I hit a snag.
Thnx jamesgolovich

By: twisted (twisted) 2004-03-28 19:53:56.000-0600

Marked resolved since your last statement noted it was working.  If you are having more asterisk specific compilation problems under freebsd, feel free to re-open this bug.

By: rburkhal (rburkhal) 2004-03-28 20:40:01.000-0600

I get this error when compiling libpri, and i will have to use it.

---------- asterisk error --------------
WUTIVR# make install
cc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g   -c pri.c
In file included from pri.c:24:
pri_q921.h:29:20: endian.h: No such file or directory
*** Error code 1

Stop in /usr/src/libpri.

digium recommends this be compiled before asterisk is compiled.

edited on: 03-28-04 19:31

---------- Zaptel Error -----------------
WUTIVR# make clean
"Makefile", line 38: Missing dependency operator
"Makefile", line 41: Need an operator
Error expanding embedded variable.

edited on: 03-28-04 19:35

By: James Golovich (jamesgolovich) 2004-03-28 20:43:25.000-0600

FreeBSD's endian.h is in a different spot, but its not relevant because libpri is only useful with zaptel.  Don't worry about it, when the time comes we will make libpri compile on freebsd but there isnt any point right now

By: twisted (twisted) 2004-03-28 20:54:25.000-0600

Again, please note that zaptel is currently unusable on *bsd, as it is a linux driver for hardware designed for linux.  Asterisk will compile fine without zaptel, and zaptel is the only thing that needs libpri.. Pleae join discussion on #asterisk on irc.freenode.net if you need a detailed explanation.  I am once again closing this issue, as it is a non-bug.

By: rburkhal (rburkhal) 2004-03-29 19:47:32.000-0600

After Compilation and running the system produces the error;

Asterisk 0.5.0, Copyright (C) 1999-2001 Linux Support Services, Inc.
Written by Mark Spencer <markster@linux-support.net>
[ Booting..........    -- Registered indication country 'us'
   -- Registered indication country 'au'
   -- Registered indication country 'fr'
   -- Registered indication country 'de'
   -- Registered indication country 'nl'
   -- Registered indication country 'uk'
   -- Registered indication country 'fi'
   -- Registered indication country 'no'
   -- Setting default indication country to 'us'
...WARNING[134967296]: File chan_sip.c, Line 5893 (reload_config): Unable to get
IP address for wutivr2.dynalias.net, SIP disabled
.WARNING[134967296]: File chan_oss.c, Line 974 (load_module): XXX I don't work r
ight with non-full duplex sound cards XXX
WARNING[137306112]: File chan_oss.c, Line 232 (sound_thread): Read error on soun
d device: Resource temporarily unavailable
....WARNING[134967296]: File chan_mgcp.c, Line 2959 (load_module): Unable to get
our IP address, MGCP disabled
.WARNING[134967296]: File chan_iax2.c, Line 5134 (set_config): Ignoring port for
..  == Creating H.323 Endpoint
 == H.323 listener started
..............Entered Wil-Calu fd=23
.............................Segmentation fault (core dumped)

Segmentation Fault (core dumped)

[codec_mp3_d.so] = > (MP3/PCM16 (Signed Linear).........


pcm0: <VIA VT8235> port 0xd800-0xd8ff irq 12 at device 17.5 on pci0
pcm0: <Avance Logic ALC101 AC97 Codec>
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd400-0xd4ff mem 0xdffeee00-0xdffe

goes no futher

edited on: 03-29-04 19:14

edited on: 03-29-04 19:28

By: twisted (twisted) 2004-03-29 22:04:37.000-0600

This is no longer related to the origional bug posted.  Now the problem is different, we need to start a new bug.  Please do so, and include the debug of the core file that was created, as well as all pertenant (sp?) text.

By: James Golovich (jamesgolovich) 2004-03-30 00:53:18.000-0600

It appears this is not running a current version of asterisk (at least 0.7.2 or one of the CVS branches).

I suspect this is from the freebsd ports tree, which is known to be broken and afaik the port maintainer has no intention of fixing.

Upgrade to 0.7.2 or one of the CVS releases