Is there anyone who has built icecast2 successfully for OpenBSD? I built it from source with no problem on Linux, but on my OBSD system the configure bombs while checking for a function in libxslt... # ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking build system type... i386-unknown-openbsd3.2 checking host system type... i386-unknown-openbsd3.2 checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... file_magic OpenBSD.* shared library checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... openbsd3.2 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... yes creating libtool checking for library containing inet_pton... no checking for library containing getipnodebyname... no checking for ANSI C header files... (cached) yes checking for stdint.h... (cached) no checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking for unistd.h... (cached) yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for socklen_t... yes checking for nanosleep... no checking for poll... no checking for sethostent... no checking for endhostent... no checking for getnameinfo... no checking for getaddrinfo... no checking for inet_pton... no checking for xslt-config... xslt-config checking for xsltParseStylesheetFile... no configure: error: There was a problem linking with libxslt the library is in the ld path: # ldconfig -r | grep xslt 65:-lexslt.7.18 => /usr/local/lib/libexslt.so.7.18 66:-lxslt.1.27 => /usr/local/lib/libxslt.so.1.27 67:-lxsltbreakpoint.1.8 => /usr/local/lib/libxsltbreakpoint.so.1.8 and the symbol is in there: # nm /usr/local/lib/libxslt.so.1.27 | grep ParseStylesheet 000151a4 T _xsltParseStylesheetAttributeSet 0000c51c T _xsltParseStylesheetCallerParam 00003cc0 T _xsltParseStylesheetDoc 00003dcc T _xsltParseStylesheetFile 00014714 T _xsltParseStylesheetImport 00003c58 T _xsltParseStylesheetImportedDoc 00014978 T _xsltParseStylesheetInclude 00000fb8 T _xsltParseStylesheetOutput 0000c8c0 T _xsltParseStylesheetParam 00003a78 T _xsltParseStylesheetProcess 0000c828 T _xsltParseStylesheetVariable I'm assuming this is an OBSD linking problem, but I dont know my way out of it. I've set the LD_LIBRARY_PATH environment variable and still get the same problem. the machine: OpenBSD 3.2-stable (x86) autoconf-2.52 from package automake-1.4p6 from package libogg-1.0 from package libtool-1.3.5p3 from package libvorbis-1.0 from package libxml2-2.5.4 from source libxslt-1.0.27 from source the icecast tarball is a snapshot from yesterday. icecast1 works fine on the same machine. thanks in advance for any help. 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.
> checking for xslt-config... xslt-config > checking for xsltParseStylesheetFile... no > configure: error: There was a problem linking with libxsltThere will be a more detailed error message in config.log, can you find that and send the list that part of the log file? Mike --- >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.
On Tue, 2003-03-25 at 05:41, jeff@unsealed.net wrote:> checking for xslt-config... xslt-config > checking for xsltParseStylesheetFile... no > configure: error: There was a problem linking with libxslt > > the library is in the ld path: > > # ldconfig -r | grep xslt > 65:-lexslt.7.18 => /usr/local/lib/libexslt.so.7.18 > 66:-lxslt.1.27 => /usr/local/lib/libxslt.so.1.27 > 67:-lxsltbreakpoint.1.8 => /usr/local/lib/libxsltbreakpoint.so.1.8 > > and the symbol is in there: > > # nm /usr/local/lib/libxslt.so.1.27 | grep ParseStylesheet...> I'm assuming this is an OBSD linking problem, but I dont know my way out of it. > I've set the LD_LIBRARY_PATH environment variable and still get the same > problem.If it's the same issue as in linux then it sounds like you are missing the .so file, which is typically a link to the so.N.N files but I'm not that sure on *BSD. You may have separate packages for installing those links/files karl. <p>--- >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.
jeff@unsealed.net wrote:> Is there anyone who has built icecast2 successfully for OpenBSD? I built it > 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" ... Anyways, that's how you fix it for yourself easiest. Edit configure.in, under [...] else case $host in [...] *) [...] - LIBS=" $LIBS -lpthread" + LIBS=" $LIBS -pthread" ;; esac fi change the lpthread to pthread and re-run autogen.sh. The *freebsd* part also works for OpenBSD. (Changing that, or copying it and then changing it are other ways to get that going.) Although I was able to compile Icecast2 some months ago, I now ran into new problems after the pthread stuff. It currently bombs in src/net ... if you also have that problem and get around it, please let me know how you did it. (It might as well just be my very mutated OBSD install, though... I'll investigate that detail first before complaining further. :) ) <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.
On Tue, 2003-03-25 at 06:37, gtgbr@gmx.net wrote:> change the lpthread to pthread and re-run autogen.sh. The *freebsd* part > also works for OpenBSD. (Changing that, or copying it and then changing > it are other ways to get that going.)the autotools side needs updating for icecast, it's mostly done for libshout and ices.> Although I was able to compile Icecast2 some months ago, I now ran into > new problems after the pthread stuff. It currently bombs in src/net ... > if you also have that problem and get around it, please let me know how > you did it. (It might as well just be my very mutated OBSD install, > though... I'll investigate that detail first before complaining further.can you let me know what the error reported is ? karl. --- >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.