You are here: Home » Topic » mt-daapd fails to build on FreeBSD 6.1

mt-daapd fails to build on FreeBSD 6.1

This topic contains 13 replies, has 3 voices, and was last updated by  Sax 10 years, 6 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #688

    oliver
    Participant

    Hi!

    I’ve tried both mt-daapd-svn-1400 and mt-daapd-svn-1393 without success.

    My system:

    root# uname -a
    FreeBSD serv.narpau.se 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Mon Aug 28 05:21:08 UTC 2006 [email protected]:/usr/obj/usr/src/sys/GENERIC i386

    mt-daapd-svn-1400

    root# cd mt-daapd-svn-1400
    root# ./configure --enable-sqlite3 --with-id3tag=/usr/local/
    root# make
    [ ... lots of output ... ]
    Making all in plugins
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -DHAVE_SQL -DHOST='"i386-unknown-freebsd6.1"' -DFREEBSD -I/usr/local//include -g -O2 -c plugin.c
    plugin.c:139: warning: initialization from incompatible pointer type
    plugin.c: In function `_plugin_error':
    plugin.c:183: warning: implicit declaration of function `vsnprintf'
    plugin.c: In function `pi_db_wait_update':
    plugin.c:776: error: syntax error before "rset"
    plugin.c:790: warning: implicit declaration of function `FD_ZERO'
    plugin.c:790: error: `rset' undeclared (first use in this function)
    plugin.c:790: error: (Each undeclared identifier is reported only once
    plugin.c:790: error: for each function it appears in.)
    plugin.c:791: warning: implicit declaration of function `FD_SET'
    plugin.c:796: warning: implicit declaration of function `select'
    plugin.c:797: warning: implicit declaration of function `FD_ISSET'
    plugin.c: In function `pi_stream':
    plugin.c:879: warning: implicit declaration of function `strncasecmp'
    *** Error code 1

    Stop in /root/mt-daapd-svn-1400/src.
    *** Error code 1

    Stop in /root/mt-daapd-svn-1400/src.
    *** Error code 1

    Stop in /root/mt-daapd-svn-1400.
    *** Error code 1

    Stop in /root/mt-daapd-svn-1400.

    mt-daapd-svn-1393

    root# cd mt-daapd-svn-1393
    root# ./configure --enable-sqlite3 --with-id3tag=/usr/local/
    root# make
    [ ... lots of output ... ]
    Making all in plugins
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -DHAVE_SQL -DHOST='"i386-unknown-freebsd6.1"' -DFREEBSD -I/usr/local//include -g -O2 -c plugin.c
    plugin.c:139: warning: initialization from incompatible pointer type
    plugin.c: In function `_plugin_error':
    plugin.c:183: warning: implicit declaration of function `vsnprintf'
    plugin.c: In function `pi_db_wait_update':
    plugin.c:776: error: syntax error before "rset"
    plugin.c:790: warning: implicit declaration of function `FD_ZERO'
    plugin.c:790: error: `rset' undeclared (first use in this function)
    plugin.c:790: error: (Each undeclared identifier is reported only once
    plugin.c:790: error: for each function it appears in.)
    plugin.c:791: warning: implicit declaration of function `FD_SET'
    plugin.c:796: warning: implicit declaration of function `select'
    plugin.c:797: warning: implicit declaration of function `FD_ISSET'
    plugin.c: In function `pi_stream':
    plugin.c:879: warning: implicit declaration of function `strncasecmp'
    *** Error code 1

    Stop in /root/mt-daapd-svn-1393/src.
    *** Error code 1

    Stop in /root/mt-daapd-svn-1393/src.
    *** Error code 1

    Stop in /root/mt-daapd-svn-1393.
    *** Error code 1

    Stop in /root/mt-daapd-svn-1393.

    Is this a known problem, or is there something I’ve done wrong?

    Earlier I install mt-daapd-0.2.4 from the freebsd ports collection without any trouble. And it worked right away! Good work. Great piece of software! 😀 However, music is split up at several disks, so the filesystem-limitation comes in the way.

    #6844

    rpedde
    Participant

    @oliver wrote:

    d-0.2.4 from the freebsd ports collection without any trouble. And it worked right away! Good work. Great piece of software! 😀 However, music is split up at several disks, so the filesystem-limitation comes in the way.

    Probably a


    #include

    at the top of plugins.c would do it.

    Either that or


    #include
    #include

    #include

    Don’t know if fbsd has sys/select or not.

    In the meantime, I’m trying to build some automated build tools. I’d like to do at least build/no build reports for the bsds and solaris. Might take me a few weeks to get it all straightened out. I just now got mipsel ipks done, and I’m working on various .deb packages now. After that I’ll be working on the rpm distros, and then the bsds.

    In the short term, if you want to try the above and let me know which fixes it, that would help.

    — Ron

    #6845

    oliver
    Participant
    #include 

    Yep that did the trick. Thanks! 😀

    I’d be happy to help if you need any build reports/debug info from a freebsd system in the future.

    #6846

    Sax
    Participant

    I ended up having to do the exact same thing, I’m running freebsd 6.2

    #6847

    oliver
    Participant

    Yep me too for every new build. Doesn’t seem to have been fixed yet.

    #6848

    Sax
    Participant

    hmm…for some reason the nightly is not running for me.. I installed libogg, flac, id3lib, sqlite3 out of ports, I then compiled it with the corresponding ./configure options… I try to run it and nothing… nothing shows up in /var/log/mt-daapd either.

    I had this working just fine on my slack box 🙂

    #6849

    rpedde
    Participant

    @oliver wrote:

    Yep me too for every new build. Doesn’t seem to have been fixed yet.

    Really?

    There is a


    #ifdef HAVE_SYS_SELECT_H
    #include
    #endif

    block there. the autoconf must be screwed up somehow.

    #6850

    rpedde
    Participant

    @sax wrote:

    hmm…for some reason the nightly is not running for me.. I installed libogg, flac, id3lib, sqlite3 out of ports, I then compiled it with the corresponding ./configure options… I try to run it and nothing… nothing shows up in /var/log/mt-daapd either.

    I had this working just fine on my slack box 🙂

    Run it in the foreground with a “-d9 -f”, and it will probably show more info. Check your syslog, too. Until it reads and parses the config file, it won’t dump anything into the log file, so it may be having a problem before that point.

    — Ron

    #6851

    Sax
    Participant

    ok after some troubleshooting I have figured out the reason it was not starting, I was still using a mt-daapd.conf leftover from the 0.2.4 install from ports.

    However as a note, even on svn-1539 I still had to take that ifdef out around the sys/select.h in order to get it to compile

    #6852

    rpedde
    Participant

    @sax wrote:

    ok after some troubleshooting I have figured out the reason it was not starting, I was still using a mt-daapd.conf leftover from the 0.2.4 install from ports.

    However as a note, even on svn-1539 I still had to take that ifdef out around the sys/select.h in order to get it to compile

    Can you check your config.h in the root directory and verify that HAVE_SYS_SELECT_H isn’t set?

    #6853

    Sax
    Participant

    [[email protected] ~/mt-daapd-svn-1539]# ./configure –enable-sqlite3 –enable-oggvorbis –enable-flac –enable-musepack –with-id3tag=/usr/local

    [[email protected] ~/mt-daapd-svn-1539]# grep ‘HAVE_SYS_SELECT_H’ *
    [[email protected] ~/mt-daapd-svn-1539]#

    doesn’t look like it…

    #6854

    rpedde
    Participant

    @sax wrote:

    [[email protected] ~/mt-daapd-svn-1539]# ./configure –enable-sqlite3 –enable-oggvorbis –enable-flac –enable-musepack –with-id3tag=/usr/local

    [[email protected] ~/mt-daapd-svn-1539]# grep ‘HAVE_SYS_SELECT_H’ *
    [[email protected] ~/mt-daapd-svn-1539]#

    doesn’t look like it…

    Aaaaah…. because I’m not testing for it. Nice.

    my bad. I’ll hve it fixed next build.

    #6855

    Sax
    Participant

    here’s the complete configure output if it helps you out any 🙂
    keep up the good work though, this is an awesome product. I have an m-1001 and it works great.

    [[email protected] ~]# wget http://nightlies.mt-daapd.org/dl.php?FILE=mt-daapd-svn-1539.tar.gz
    [[email protected] ~]# tar xf mt-daapd-svn-1539.tar.gz
    [[email protected] ~]# cd mt-daapd-svn-1539/
    [[email protected] ~/mt-daapd-svn-1539]# ./configure –enable-sqlite3 –enable-oggvorbis –enable-flac –enable-musepack –with-id3tag=/usr/local
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for gawk… no
    checking for mawk… no
    checking for nawk… nawk
    checking whether make sets $(MAKE)… yes
    checking for style of include used by make… GNU
    checking for gcc… gcc
    checking for C compiler default output file name… 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 for gcc option to accept ANSI C… none needed
    checking dependency style of gcc… gcc3
    checking how to run the C preprocessor… gcc -E
    checking for egrep… grep -E
    checking for AIX… no
    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… yes
    checking for unistd.h… yes
    checking minix/config.h usability… no
    checking minix/config.h presence… no
    checking for minix/config.h… no
    checking whether it is safe to define __EXTENSIONS__… yes
    checking for gcc… (cached) gcc
    checking whether we are using the GNU C compiler… (cached) yes
    checking whether gcc accepts -g… (cached) yes
    checking for gcc option to accept ANSI C… (cached) none needed
    checking dependency style of gcc… (cached) gcc3
    checking build system type… i386-unknown-freebsd6.2
    checking host system type… i386-unknown-freebsd6.2
    checking for a sed that does not truncate output… /usr/local/bin/gsed
    checking for ld used by gcc… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… yes
    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 dependent libraries… pass_all
    checking dlfcn.h usability… yes
    checking dlfcn.h presence… yes
    checking for dlfcn.h… yes
    checking for g++… g++
    checking whether we are using the GNU C++ compiler… yes
    checking whether g++ accepts -g… yes
    checking dependency style of g++… gcc3
    checking how to run the C++ preprocessor… g++ -E
    checking for g77… no
    checking for f77… f77
    checking whether we are using the GNU Fortran 77 compiler… yes
    checking whether f77 accepts -g… yes
    checking the maximum length of command line arguments… 65536
    checking command to parse /usr/bin/nm -B output from gcc object… ok
    checking for objdir… .libs
    checking for ar… ar
    checking for ranlib… ranlib
    checking for strip… strip
    checking if gcc static flag works… yes
    checking if gcc supports -fno-rtti -fno-exceptions… no
    checking for gcc option to produce PIC… -fPIC
    checking if gcc PIC flag -fPIC works… yes
    checking if gcc supports -c -o file.o… yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries… yes
    checking whether -lc should be explicitly linked in… yes
    checking dynamic linker characteristics… freebsd6.2 ld.so
    checking how to hardcode library paths into programs… immediate
    checking whether stripping libraries is possible… yes
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… yes
    checking whether to build static libraries… yes
    configure: creating libtool
    appending configuration tag “CXX” to libtool
    checking for ld used by g++… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
    checking for g++ option to produce PIC… -fPIC
    checking if g++ PIC flag -fPIC works… yes
    checking if g++ supports -c -o file.o… yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
    checking dynamic linker characteristics… freebsd6.2 ld.so
    checking how to hardcode library paths into programs… immediate
    checking whether stripping libraries is possible… yes
    appending configuration tag “F77” to libtool
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… yes
    checking whether to build static libraries… yes
    checking for f77 option to produce PIC… -fPIC
    checking if f77 PIC flag -fPIC works… yes
    checking if f77 supports -c -o file.o… yes
    checking whether the f77 linker (/usr/bin/ld) supports shared libraries… yes
    checking dynamic linker characteristics… freebsd6.2 ld.so
    checking how to hardcode library paths into programs… immediate
    checking whether stripping libraries is possible… yes
    checking sys/wait.h usability… yes
    checking sys/wait.h presence… yes
    checking for sys/wait.h… yes
    checking sys/param.h usability… yes
    checking sys/param.h presence… yes
    checking for sys/param.h… yes
    checking dirent.h usability… yes
    checking dirent.h presence… yes
    checking for dirent.h… yes
    checking for strptime… yes
    checking for strtok_r… yes
    checking for timegm… yes
    checking whether setpgrp takes no argument… no
    checking for pthread_creat in -lc_r… no
    checking for pthread_create in -lpthread… yes
    checking for pkg-config… /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0… yes
    checking for strcasestr… yes
    checking for strsep… yes
    Host type is i386-unknown-freebsd6.2
    checking getopt.h usability… yes
    checking getopt.h presence… yes
    checking for getopt.h… yes
    checking for stdint.h… (cached) yes
    checking id3tag.h usability… yes
    checking id3tag.h presence… yes
    checking for id3tag.h… yes
    checking for id3_file_open in -lid3tag… yes
    checking sqlite3.h usability… yes
    checking sqlite3.h presence… yes
    checking for sqlite3.h… yes
    checking for sqlite3_open in -lsqlite3… yes
    checking ogg/ogg.h usability… yes
    checking ogg/ogg.h presence… yes
    checking for ogg/ogg.h… yes
    checking for ogg_sync_init in -logg… yes
    checking vorbis/codec.h usability… yes
    checking vorbis/codec.h presence… yes
    checking for vorbis/codec.h… yes
    checking for vorbis_info_init in -lvorbis… yes
    checking for ov_open in -lvorbisfile… yes
    checking FLAC/metadata.h usability… yes
    checking FLAC/metadata.h presence… yes
    checking for FLAC/metadata.h… yes
    checking for FLAC__metadata_chain_read in -lFLAC… yes
    checking for taglib-config… /usr/local/bin/taglib-config
    checking taglib/tag_c.h usability… yes
    checking taglib/tag_c.h presence… yes
    checking for taglib/tag_c.h… yes
    checking for strcasestr… (cached) yes
    checking for strsep… (cached) yes
    checking for atoll… yes
    checking for ANSI C header files… (cached) yes
    checking for sys/wait.h that is POSIX.1 compatible… (cached) yes
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking sys/ioctl.h usability… yes
    checking sys/ioctl.h presence… yes
    checking for sys/ioctl.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking syslog.h usability… yes
    checking syslog.h presence… yes
    checking for syslog.h… yes
    checking for unistd.h… (cached) yes
    checking sys/filio.h usability… yes
    checking sys/filio.h presence… yes
    checking for sys/filio.h… yes
    checking termio.h usability… no
    checking termio.h presence… no
    checking for termio.h… no
    checking whether time.h and sys/time.h may both be included… yes
    checking whether gcc needs -traditional… no
    checking return type of signal handlers… void
    checking for select… yes
    checking for socket… yes
    checking for strdup… yes
    checking for strerror… yes
    checking for dlsym in -ldl… no
    checking for socket in -lsocket… no
    configure: creating ./config.status
    config.status: creating src/Makefile
    config.status: creating src/plugins/Makefile
    config.status: creating admin-root/Makefile
    config.status: creating admin-root/lib-js/Makefile
    config.status: creating admin-root/lib-js/script.aculo.us/Makefile
    config.status: creating contrib/Makefile
    config.status: creating contrib/init.d/Makefile
    config.status: creating src/mdns/Makefile
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands

    #6856

    Sax
    Participant

    oh just a heads up, svn-1545 built just fine on freebsd 6.2 this time

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.