svn-1515 – compile error on Nexenta OS (Solaris)

FireFly Media Server Firefly Media Server Forums Firefly Media Server Nightlies Feedback svn-1515 – compile error on Nexenta OS (Solaris)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1221
    lunaticallday
    Participant

    Hello everyone,

    as the 0.2.4 tarball compiled without problems I tried the svn-1515, but cannot seem to get it to work.:cry: My system is Athlon 32-bit-based.
    The compile error however is reproducable on a VMWare-VM:
    “util.h:24: error: conflicting types for ‘lock_t'”
    As I couldn’t find anything related googling the web und searching the forums, I hope someone here can help me.

    I tried the following configure-flags:
    –enable-sqlite
    –enable-sqlite3
    –enable-sqlite CFLAGS=”-g -O2 -std=C99″

    configure-Output looks as follows:

    ./configure --enable-sqlite CFLAGS="-g -O2 -std=c99"
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    ./configure: line 1980: AC_USE_SYSTEM_EXTENSIONS: command not found
    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 for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking build system type... i386-pc-solaris2.11
    checking host system type... i386-pc-solaris2.11
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for egrep... grep -E
    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 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... yes
    checking for unistd.h... yes
    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... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether accepts -g... no
    checking the maximum length of command line arguments... 262144
    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... solaris2.11 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... solaris2.11 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 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... no
    checking whether setpgrp takes no argument... yes
    checking for pthread_creat in -lc_r... no
    checking for pthread_create in -lpthread... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for strcasestr... no
    checking for strsep... no
    Host type is i386-pc-solaris2.11
    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 sqlite.h usability... yes
    checking sqlite.h presence... yes
    checking for sqlite.h... yes
    checking for sqlite_open in -lsqlite... yes
    checking for strcasestr... (cached) no
    checking for strsep... (cached) no
    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... yes
    checking termio.h presence... yes
    checking for termio.h... yes
    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... yes
    checking for socket in -lsocket... yes
    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 Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands

    Make-Output:

    make  all-recursive
    make[1]: Entering directory `/data/videos/mt-daapd-svn-1515'
    Making all in src
    make[2]: Entering directory `/data/videos/mt-daapd-svn-1515/src'
    Making all in plugins
    make[3]: Entering directory `/data/videos/mt-daapd-svn-1515/src/plugins'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/data/videos/mt-daapd-svn-1515/src/plugins'
    make[3]: Entering directory `/data/videos/mt-daapd-svn-1515/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -DHAVE_SQL -DHOST='"i386-pc-solaris2.11"' -DNOT_HAVE_SA_LEN -D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME -D_POSIX_PTHREAD_SEMANTICS -g -O2 -std=c99 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c;
    then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
    In file included from main.c:91:
    util.h:24: error: conflicting types for 'lock_t'
    /usr/include/ia32/sys/machtypes.h:53: error: previous declaration of 'lock_t' was here
    make[3]: *** [main.o] Error 1
    make[3]: Leaving directory `/data/videos/mt-daapd-svn-1515/src'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/data/videos/mt-daapd-svn-1515/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/data/videos/mt-daapd-svn-1515'
    make: *** [all] Error 2

    Thanks for your help.

    #9747
    lunaticallday
    Participant

    solved with svn1523, for more infos look here:
    http://forums.fireflymediaserver.org/viewtopic.php?t=5812

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Nightlies Feedback’ is closed to new topics and replies.