DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th August 2010
hack2003 hack2003 is offline
New User
 
Join Date: Jul 2010
Posts: 8
Default i want to install a voice chat server on openbsd

i have openbsd 4.7 as my home all in one server.
it's working as internet gateway using PF, webserver and fileserver usign samba.
i want to setup a voice chat server for my brother net games.

for now i installed on his windows machine mumble and it work fine but i want to make use of the openBSD server instead my brother machine.

i tried to run mumble server using the fedora_base linux emulation but it didnt work.

is there anothe server that built for openbsd?

maybe there is a way to convert the ports for freebsd for openbsd?
or maybe to run the freebsd version on openbsd? if so then i would like to get help with that.

thanks Hack
Reply With Quote
  #2   (View Single Post)  
Old 10th August 2010
hack2003 hack2003 is offline
New User
 
Join Date: Jul 2010
Posts: 8
Default

i now that i can compile it on other system and then copy it to the openbsd and run it on the fedora base linux emulation.

but what is better? do it using linux emulation or freebsd emulation?

also i have VM of opensuse 11.3 and clearos 5.2 and i was wondering on which one of them i should compile the software?
Reply With Quote
  #3   (View Single Post)  
Old 10th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by hack2003 View Post
i want to setup a voice chat server for my brother net games.
I don't know anything about mumble or the needs of your brother's games, but the following are options:
  • Oko has beat through the details of getting Skype to run on OpenBSD. A thread he started on this is the following:

    http://www.daemonforums.org/showthre...ighlight=voice
  • Some of the OpenBSD developers figured out how to do voice using OpenBSD-specific tools:

    http://www.daemonforums.org/showthre...ighlight=voice

    ...however, I question whether this would be compatible with the restrictions you are making.
  • The general answer to your question is that Asterisk (open source SIP server) is available in OpenBSD's packages/ports system:

    http://openports.se/telephony/asterisk

    ...however, when I was researching this a few weeks back, Asterisk (as any SIP server would require...) ultimately needs to access FXS ports. There are some cards available, but the only drivers are for Windows. If connecting back to the phone company is required, it may be simpler to get a voice-enabled router (ie. Cisco) & configure Asterisk to send traffic to it. I have the suspicion you aren't wanting to put time into figuring out the lower-level protocol problems.
Quote:
maybe there is a way to convert the ports for freebsd for openbsd?
Porting can be a very involved process, & it requires low-level knowledge of both the application & the operating system.

In general, we at this site don't provide detailed porting support because it is far too involved. The libraries available on one platform are not guaranteed to exist on another, or be at the same version level. Shims may have to be written to get around some of the translation problems. Filesystem differences between any two platforms are also likely to exist, so you need to study the hier(7) manpage first.
Quote:
or maybe to run the freebsd version on openbsd?
The first thing you need to study is the compat_freebsd(8) manpage. This will giive you more tangible information.
Reply With Quote
  #4   (View Single Post)  
Old 10th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by hack2003 View Post
but what is better? do it using linux emulation or freebsd emulation?
You need to study:The fedora_base package discussed in Section 9.4 was written to be compatible with Fedora Core 4. This may meet your needs, or it may not. There was a time when Linux emulation was important for running a number of applications on OpenBSD. Since that time, many of those same applications have been ported natively such that Linux emulation is now not so important. Because of this, many of the developers no longer have an interest in maintaining compatibility, so if the fedora_base package meets your needs, great. If it doesn't, then you will have a lot more lower-level work to complete yourself.

As for FreeBSD emulation, the story is pretty much the same. It isn't as critical now that OpenBSD has many native ports available. Nevertheless, you should begin by studying the compat_freebsd(8) manpage.

I'm sorry if you were hoping for black-&-white answers. What you will need to do is experiment & see if any of the current emulation vectors are sufficient for the needs of your application.
Reply With Quote
  #5   (View Single Post)  
Old 10th August 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

There is no port of "mumble" to OpenBSD, but the project is open source, assuming you had the ability, you could try building it yourself and contribute a port.

This program does have a fair amount of dependencies, it won't be an easy task.

http://mumble.sourceforge.net/
Reply With Quote
  #6   (View Single Post)  
Old 10th August 2010
hack2003 hack2003 is offline
New User
 
Join Date: Jul 2010
Posts: 8
Default

wow thanks for the quick repley.

i was in the middle of reading the compat freebsd and linux to verify if it's good for me.

as for asterisk i have tried just for challenge to install freepbx on openbsd and i had to parse the whole install script and i was using old parsing for script that work for version 2.6 and i made the freepbx to work on the server (apache unjailed and runing as _asterisk) i had some bugs and i didnt have time to debug it so that's the main reason i was looking into other options.
Reply With Quote
  #7   (View Single Post)  
Old 12th August 2010
hack2003 hack2003 is offline
New User
 
Join Date: Jul 2010
Posts: 8
Default

generaly im not that good with programing and stuff cause that's me.

so what i did was that: got the source and installed the some dependencies.
i just need the server so i made this
Quote:
export QMAKESPEC=/usr/local/lib/qt4/mkspecs/openbsd-g++/

qmake4 main.pro CONFIG+=no-ice CONFIG+=no-11x CONFIG+=no-embed-qt-translations CONFIG+=no-client CONFIG+=no-cocoa CONFIG+=no-bonjour CONFIG+=no-asio -recursive
this should create the makefile with the proper configurations.
im gettings some errors:

Quote:
Reading /home/mum/mumble-1.2.2/src/murmur/murmur.pro
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
WARNING: Failure to find: Mumble.pb.cc
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
WARNING: Failure to find: Mumble.pb.cc
i want to somehow make the opensssl begone cause it's builtin openbsd.

i also going in other direction of compiling the server it from source for linux or freebsd and run it on my openbsd server.
if i run the "make" then im getting
Quote:
# make
cd src/murmur/ && make -f Makefile
make -f Makefile.Release
protoc --cpp_out=. -I. -I.. ../Mumble.proto
/bin/sh: protoc: not found
*** Error code 127

Stop in /home/mum/mumble-1.2.2/src/murmur (line 185 of Makefile.Release).
*** Error code 1

Stop in /home/mum/mumble-1.2.2/src/murmur (line 34 of Makefile).
*** Error code 1

Stop in /home/mum/mumble-1.2.2 (line 39 of Makefile).
i think that im missing some dependencies.

help will be nice.
Reply With Quote
  #8   (View Single Post)  
Old 12th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by hack2003 View Post
i think that im missing some dependencies.
One of the primary problems with porting is that it is extremely time intensive, & it requires understanding what the previous developers had in their minds & understanding what issues they were facing. In order to comment intelligently on the questions posed, anyone here would have to retrace the steps you have already taken & critically look at the bigger picture at that point. As for me, this would require more time than I have to spend on this particular problem.

My suggestion to you is to study the FreeBSD port first since a port already exists. Perhaps what you learn there can be translated to OpenBSD, or perhaps not, but starting from a known working point may be more effective than simply grabbing the source & finding that it doesn't build cleanly on a different platform.

Another alternative would be to simply run the FreeBSD port on FreeBSD.

This is why in my original response to this thread I stated that we don't typically provide detailed porting support here. The investment required can be very high, & you probably have the highest motivation to see to its conclusion.

I wish you the best in your quest. You can learn a lot from the process, but you may also want to re-evaluate whether you have the skills needed or whether a different platform will suffice.
Reply With Quote
  #9   (View Single Post)  
Old 12th August 2010
hack2003 hack2003 is offline
New User
 
Join Date: Jul 2010
Posts: 8
Default

thanks again.

i was just trying it for the excitement cause i have a great working server for now so ..
just for the fun and to break my head a bit.
i was looking at the freebsd port before i wrote my older reply.

the thing is that it has to be compiled in order to run on freebsd and the dependencies are the QT4 (for qmake) and it has so many depencies that i suck to even look on it.

for now im leaving it for a week or more.
but i got a great idea about the fedora emulation.
the main problem is that the compiling way means to use the mumble to make the murmur server, so i will get the murmur binaries with the dependencies and i will see whether it works or fails.

thanks
Hack.
Reply With Quote
Old 14th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default FreeBSD emulation languishes more than Linux emulation

Although the OP states that he was going to focus on the Linux emulation choice, here is a pertinent observation made by a project developer today on misc@:

http://marc.info/?l=openbsd-misc&m=128178989916588&w=2

Regulars here may also be interested; Stuart frequently gives candid opinions which are grounded from familiarity of OpenBSD's source code.
Reply With Quote
Old 18th August 2010
hack2003 hack2003 is offline
New User
 
Join Date: Jul 2010
Posts: 8
Default

well i left the murmur stuff cause of so many to do for it to work on openbsd.
it was very simple to install ubuntu server with all my needs and more in it then i need.

i had a problem downloading from the openbsd samba server (getting 3MBps download)
so after so much time spending on it i found out the culprit!! no other then:
virtuabox!!
the host network interface is throttling the whole system.
after uninstalling the adapter and rebooting the windows system i got download speed of 50-60 MBps.
Reply With Quote
Old 20th December 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quote:
Originally Posted by hack2003 View Post
well i left the murmur stuff cause of so many to do for it to work on openbsd.
I know this thread is dead, but I wanted this information here for everyone's benefit.

uMurmur is a lightweight alternative to murmur that is compatible with Mumble 1.2.x. You can get it here.

You need some patches to get it to build on OpenBSD, but I've done the work for you =) (posted earlier today to my blog on LQ.org. This isn't tested yet other than building on amd64 and sparc64. I'll post a followup once I've tested it out.). I may attempt porting murmur to OpenBSD later if I get the time.

Any comments and suggestions for improvements from BSD gurus is more than welcome...

Patches:

Makefile
Code:
--- Makefile.orig       Mon Dec 20 08:54:23 2010
+++ Makefile    Mon Dec 20 09:27:37 2010
@@ -24,10 +24,10 @@

 # OpenSSL - usually installed at a standard place
 # EXTRA_CFLAGS:=
-# EXTRA_LDFLAGS:=-lcrypto -lssl
+EXTRA_LDFLAGS:=-lcrypto -lssl

-CFLAGS:=$(CFLAGS) -I. -Wall $(EXTRA_CFLAGS)
-LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -lconfig
+CFLAGS:=$(CFLAGS) -I. -I/usr/include/openssl -I/usr/local/include -Wall $(EXTRA_CFLAGS)
+LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -L/usr/local/lib -lconfig

 umurmurd:google/protobuf-c/libprotobuf_c.a $(OBJS)
        $(CC) $(LDFLAGS) $(OBJS) $(SSL_LIB) google/protobuf-c/libprotobuf_c.a -o umurmurd
client.c
Code:
--- client.c.orig       Mon Dec 20 08:52:10 2010
+++ client.c    Mon Dec 20 08:52:29 2010
@@ -29,6 +29,7 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 #include <sys/poll.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <fcntl.h>
 #include <errno.h>
main.c
Code:
--- main.c.orig Mon Dec 20 09:21:01 2010
+++ main.c      Mon Dec 20 09:22:24 2010
@@ -111,18 +111,7 @@

 }

-void setscheduler()
-{
-       int rc;
-       struct sched_param sp;

-       sp.sched_priority = sched_get_priority_min(SCHED_RR); /* Should suffice */
-       Log_info("Setting SCHED_RR prio %d", sp.sched_priority);
-       rc = sched_setscheduler(0, SCHED_RR, &sp);
-       if (rc < 0)
-               Log_warn("Failed to set scheduler: %s", strerror(errno));
-}
-
 void printhelp()
 {
        printf("uMurmur version %s. Mumble protocol %d.%d.%d\n", UMURMUR_VERSION, PROTVER_MAJOR, PROTVER_MINOR, PROTVER_PATCH);
@@ -130,7 +119,6 @@
        printf("       -d             - Do not deamonize\n");
        printf("       -p <pidfile>   - Write PID to this file\n");
        printf("       -c <conf file> - Specify configuration file\n");
-       printf("       -r             - Run with realtime priority\n");
        printf("       -a <address>   - Bind to IP address\n");
        printf("       -b <port>      - Bind to port\n");
        printf("       -h             - Print this help\n");
@@ -140,13 +128,12 @@
 int main(int argc, char **argv)
 {
        bool_t nodaemon = false;
-       bool_t realtime = false;
        char *conffile = NULL, *pidfile = NULL;
        int c;
        struct utsname utsbuf;

        /* Arguments */
-       while ((c = getopt(argc, argv, "drp:c:a:b:h")) != EOF) {
+       while ((c = getopt(argc, argv, "dp:c:a:b:h")) != EOF) {
                switch(c) {
                case 'c':
                        conffile = optarg;
@@ -166,9 +153,6 @@
                case 'h':
                        printhelp();
                        break;
-               case 'r':
-                       realtime = true;
-                       break;
                default:
                        fprintf(stderr, "Unrecognized option\n");
                        printhelp();
@@ -213,9 +197,6 @@
        Chan_init();
        Client_init();

-       if (realtime)
-               setscheduler();
-
        Server_run();

        SSLi_deinit();
Reply With Quote
Old 20th December 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I'd wrap non-portable code in preprocessor foo instead of just removing it.. especially if you want to send a patch upstream.

A lot of projects include OpenSSL headers like <openssl/crypto.h> so that an absolute path is not required.

Someone is bound to appreciate this though, maybe you could create a port and send it to ports@?
Reply With Quote
Old 20th December 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quote:
Originally Posted by BSDfan666 View Post
maybe you could create a port and send it to ports@?
I've been thinking about it. I subscribed to ports@ last night before I got it working, so it's likely that once I test it on i386, amd64, and sparc64 that I'll submit a port.

Thanks for the advice!

Edit - I started working on porting murmur (the full server from the Mumble project), and I'm making pretty good progress. I may submit that as a port, too. (Thought I know I'll catch flak over it relying on google code haha).

Edit #2 - murmur now builds on amd64. Will test on sparc64 tonight after work.

Last edited by rocket357; 20th December 2010 at 06:46 PM.
Reply With Quote
Old 20th December 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Nah, several ports use google code for distfiles now.
Reply With Quote
Old 20th December 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quote:
Originally Posted by BSDfan666 View Post
Nah, several ports use google code for distfiles now.
I wasn't aware of that...makes me feel a bit better heh. Thanks again.
Reply With Quote
Old 6th April 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quick update: my umurmur port was committed to OpenBSD ports a few days ago. You can find it under audio/umurmur.

david@ sent me a port of Mumble (the client) to test this morning, so work on that side is progressing nicely. It tentatively is located in ports at audio/mumble.

(Admins: just wanted to update this thread in case anyone searches it out in the future...sorry for raising this thread from the dead =)

Edit - I took your advice, BSDfan666, and used preprocessor directives to conditionally compile the Linux-specific stuff, and the upstream author accepted that and a few other fixes I sent in. Thanks for the advice.
Reply With Quote
Old 8th April 2011
wimwauters wimwauters is offline
Port Guard
 
Join Date: Aug 2008
Posts: 36
Default

Excellent, nice to see some porting news on the forum, the official ports list can be a bit dense :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How - To install GNOME vile I install OpenBSD ? looop OpenBSD Installation and Upgrading 6 24th April 2010 08:58 PM
OpenBSD IRC channel chat about DMZ and vlan J65nko General software and network 3 25th December 2009 11:15 PM
move install to new server larger hard drive (raid system) carpman FreeBSD General 16 24th November 2009 10:57 AM
Cam Chat Software for Solaris whispersGhost Solaris 5 6th May 2009 04:45 PM
Audio Chat for Solaris? whispersGhost Solaris 9 19th June 2008 12:09 AM


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick