[Asterisk-Dev] asterisk on non-linux OSes

Jake Morrison jake at newnetlogic.com
Wed Aug 27 00:52:02 MST 2003


It just happens that I had been trying to get asterisk to compile 
on OpenBSD 3.3 recently.

I mostly just turned warnings into errors (-Werror flag) and made it
compile. 
Asterisk started up, but I don't know if anything works yet :-) Since
people are
doing the same thing I thought I would send things along to save some
work.  
Attached is the output of  "cvs diff -wu". 

The biggest differences between Linux and OpenBSD are:

time_t is an int, not a long

pthread_t is a pointer, not an int. I used a separate variable for the
logic, and I am not sure it is completely correct. 

The resolver on OpenBSD is reentrant, so the normal res_init() works
fine. 

The networking stuff (bind()/accept(), etc.) needs an explicit cast to
(struct sockaddr*). but that's good form anyway...

The rest were just some things to silence warnings. I didn't try too
hard on the MP3 and yacc stuff. 

I would be happy to set Asterisk up to build using autoconf if people
are interested.

Jake

-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of John Todd
Sent: Tuesday, August 26, 2003 6:27 AM
To: Jared Mauch
Cc: asterisk-dev at lists.digium.com
Subject: Re: [Asterisk-Dev] asterisk on non-linux OSes


Sorry for late reply; too busy.

Yes, I am extremely interested in getting Asterisk running 
(completely) on OpenBSD platforms, and will make available a test 
platform (i386) to anyone who needs a testbed on 3.3.  I have not 
tested in several months, but I was able to get it to compile some 
time ago thanks to the hard work of Thorsten Lockert.  I haven't 
tried recently.

I would ultimately like to see the whole thing running, including Zap 
hardware (Digium Wildcards) on OpenBSD to match the rest of my 
network.  Linux is nice, but I currently have to run a completely 
separate master server, and test server, etc. etc. just for my 
Asterisk systems.  I'd much rather keep my standard UNIX environment 
with one platform.  I'd be happy with i386, but Sparc/PPC/Alpha would 
also be really cool (and very difficult, no doubt.)   I assume once 
OpenBSD was tackled, NetBSD or FreeBSD would not be very hard (or 
vice versa, since OBSD usually follows NetBSD.)

JT



At 1:16 PM -0400 8/23/03, Jared Mauch wrote:
>From: Jared Mauch <jared at puck.Nether.net>
>To: asterisk-dev at lists.digium.com
>Subject: [Asterisk-Dev] asterisk on non-linux OSes
>Reply-To: asterisk-dev at lists.digium.com
>Date: Sat, 23 Aug 2003 13:16:47 -0400
>
>
>	I'm currently in the process of porting asterisk so it will
compile on
>FreeBSD (x86) (which i have gotten to compile properly and
>work) as well as Solaris (sparc) which i'm in the process of doing.
>
>	I'm wondering if there are others that are interested in other
>platforms or OSes?
>
>	I'd also be interested in getting things such as ztdummy/meetme
>working on non-Linux OSes which is obviously a bit more complicated 
>than just getting the SIP (and h.323) part working.
>
>	If you're interested in patches to compile on FreeBSD
>let me know.  I am sending them to Mark periodically and they're slowly
>being incorporated.
>
>	- jared
>
>--
>Jared Mauch  | pgp key available via finger from jared at puck.nether.net
>clue++;      | http://puck.nether.net/~jared/  My statements are only
mine.
>_______________________________________________
>Asterisk-Dev mailing list
>Asterisk-Dev at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-dev

_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbsd.diff.gz
Type: application/x-gzip
Size: 8949 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20030827/2826df8d/openbsd.diff.bin


More information about the asterisk-dev mailing list