Hi, <p>the following steps are necessary to successfully compile Icecast2 (as of today) on OpenBSD. This workaround is based on Karl Heyes' findings that _XOPEN_SOURCE is the root of all evil, at least on OBSD: 1. "autoconf version problems" OpenBSD 3.2: change all "autoconf" in autogen.sh to "autoconf-new" OpenBSD 3.3: $ export AUTOCONF_VERSION=2.52 2. configure.in line 14: replace _XOPEN_SOURCE with _XOPEN_SOURCE_EXTENDED or comment out the whole thing by putting "dnl " in front of it. (I'm currently trying to figure out which is The Right Way to do it, both seem to work.) line 54: replace -lpthread with -pthread 3. run `autogen.sh --help` to create the configure script without having it do its checks 4. configure: Open the configure script in an editor, search for "--no-verify" and delete that parameter from the line starting with "$libtool_flags" 5. run configure with the necessary parameters to find libogg, libvorbis and libcurl: $ ./configure --with-ogg-prefix=/usr/local \ --with-vorbis-prefix=/usr/local \ --with-curl=/usr/local 6. `gmake` 7. `sudo gmake install` 8. See if icecast2 works correctly :) I couldn't test that, yet. There used to be a problem on OpenBSD where Icecast2 triggered something that looks like a compiler bug. a % b would result in ridiculously high numbers, breaking things. In case this still happens, investigating it might be a good idea ('cause who knows what other platform triggers it, too). Good luck. <p>Moritz --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Icecast2 compiles on OpenBSD 3.2 with the steps outlined by Moritz (thanks for that). I'm running into problems streaming ogg files from the fileserve directory, although serving mp3 files from the same directory happens without a hitch...again, both work fine on a Debian system. I'll try building the ogg and vorbis libraries from source to see if that fixes anything (they are currently from packages). from the logfiles: (access.log) 10.10.20.11 - - [26/Mar/2003:16:30:57 -0800] "GET /test.ogg HTTP/1.0" 200 2815404 "-" "Nullsoft Winamp3 version 3.0c build 488" 1 10.10.20.11 - - [26/Mar/2003:16:33:23 -0800] "GET /test.mp3 HTTP/1.0" 200 860205 "-" "Nullsoft Winamp3 version 3.0c build 488" 33 (error.log - same for both files) [2003-03-26 16:31:15] DBUG connection/_handle_get_request Client connected Quoting gtgbr@gmx> 8. See if icecast2 works correctly :) I couldn't test that, yet. There > used to be a problem on OpenBSD where Icecast2 triggered something that > looks like a compiler bug. a % b would result in ridiculously high > numbers, breaking things. In case this still happens, investigating it > might be a good idea ('cause who knows what other platform triggers it, > too). Good luck.--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> > from source with no problem on Linux, but on my OBSD system the configure > bombs > > while checking for a function in libxslt... > > If you look at your config.log, you'll find the actual error to be > > ld: -lpthread: no match > > If you want threads on OpenBSD, -pthread is the way to go (it's a > wrapper saying "Do whatever you have to, just give me threads.")... most > likely on all platforms with gcc and a non-braindead specs file. Mike > wouldn't believe me, though, so this ain't fixed. :) On OBSD 3.2, > -pthread equals "-lc_r -D_POSIX_THREADS", on OBSD 3.3 it's "-lpthread > -D_POSIX_THREADS" (so this problem will probably go away by itself with > OBSD 3.3), and on my Gentoo Linux it does "-lpthread -D_REENTRANT" ...you were right, Moritz. i saw the error in config.log earlier and didnt really know what to make of it. changing "-lpthread" to "-pthread" in the configure.in for *) did the trick. now im in the same boat as you: gmake fails in src/net - syntax errors from a few headers included in sock.c (<arpa/inet.h> and <sys/socket.h>), and a fatal error in sock.c (sock_connected) at line 397 (wfds undeclared), after a syntax error on line 389. thanks for the help, and hopefully this points someone in the right direction. jeff --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.