Compile Error – 0.2.4 on Solaris 8

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #534
    Scallica
    Participant

    Hello,

    I am trying to compile 0.2.4 on Solaris 8. I ran the configure script successfully. When I run the make command, I receive the error below. I have an older version of mt-daapd on the system, but as documented, does not work with the latest iTunes. What am I doing wrong?

    mDNS.c: In function `mDNS_Close’:
    mDNS.c:7007: parse error before `rrcache_active’
    mDNS.c:7009: `mDNSu32′ undeclared (first use in this function)
    mDNS.c:7013: dereferencing pointer to incomplete type
    mDNS.c:7015: dereferencing pointer to incomplete type
    mDNS.c:7016: `slot’ undeclared (first use in this function)
    mDNS.c:7018: dereferencing pointer to incomplete type
    mDNS.c:7020: dereferencing pointer to incomplete type
    mDNS.c:7021: dereferencing pointer to incomplete type
    mDNS.c:7021: dereferencing pointer to incomplete type
    mDNS.c:7022: dereferencing pointer to incomplete type
    mDNS.c:7023: dereferencing pointer to incomplete type
    mDNS.c:7027: dereferencing pointer to incomplete type
    mDNS.c:7027: dereferencing pointer to incomplete type
    mDNS.c:7030: dereferencing pointer to incomplete type
    mDNS.c:7031: dereferencing pointer to incomplete type
    mDNS.c:7033: dereferencing pointer to incomplete type
    mDNS.c:7035: dereferencing pointer to incomplete type
    mDNS.c:7035: dereferencing pointer to incomplete type
    mDNS.c:7036: dereferencing pointer to incomplete type
    mDNS.c:7040: dereferencing pointer to incomplete type
    mDNS.c:7041: dereferencing pointer to incomplete type
    mDNS.c:7041: dereferencing pointer to incomplete type
    mDNS.c:7042: dereferencing pointer to incomplete type
    mDNS.c:7044: dereferencing pointer to incomplete type
    mDNS.c:7045: dereferencing pointer to incomplete type
    mDNS.c:7045: dereferencing pointer to incomplete type
    mDNS.c:7046: dereferencing pointer to incomplete type
    mDNS.c:7053: dereferencing pointer to incomplete type
    mDNS.c:7057: dereferencing pointer to incomplete type
    mDNS.c:7060: dereferencing pointer to incomplete type
    mDNS.c: At top level:
    mDNSClientAPI.h:922: storage size of `RR_ADV’ isn’t known
    mDNSClientAPI.h:923: storage size of `RR_PTR’ isn’t known
    mDNSClientAPI.h:924: storage size of `RR_SRV’ isn’t known
    mDNSClientAPI.h:925: storage size of `RR_TXT’ isn’t known
    mDNS.c:1084: storage size of `zeroRR’ isn’t known
    *** Error code 1
    make: Fatal error: Command failed for target `mDNS.o’
    Current working directory /share1/mt-daapd-0.2.4/src
    *** Error code 1
    make: Fatal error: Command failed for target `all’
    Current working directory /share1/mt-daapd-0.2.4/src
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’
    Current working directory /share1/mt-daapd-0.2.4
    *** Error code 1
    make: Fatal error: Command failed for target `all’

    #6091
    rpedde
    Participant

    @Scallica wrote:

    Hello,

    I am trying to compile 0.2.4 on Solaris 8. I ran the configure script successfully. When I run the make command, I receive the error below. I have an older version of mt-daapd on the system, but as documented, does not work with the latest iTunes. What am I doing wrong?

    mDNS.c: In function `mDNS_Close’:
    mDNS.c:7007: parse error before `rrcache_active’
    mDNS.c:7009: `mDNSu32′ undeclared (first use in this function)
    mDNS.c:7013: dereferencing pointer to incomplete type
    mDNS.c:7015: dereferencing pointer to incomplete type
    mDNS.c:7016: `slot’ undeclared (first use in this function)
    mDNS.c:7018: dereferencing pointer to incomplete type
    mDNS.c:7020: dereferencing pointer to incomplete type
    mDNS.c:7021: dereferencing pointer to incomplete type
    mDNS.c:7021: dereferencing pointer to incomplete type
    mDNS.c:7022: dereferencing pointer to incomplete type
    mDNS.c:7023: dereferencing pointer to incomplete type
    mDNS.c:7027: dereferencing pointer to incomplete type
    mDNS.c:7027: dereferencing pointer to incomplete type
    mDNS.c:7030: dereferencing pointer to incomplete type
    mDNS.c:7031: dereferencing pointer to incomplete type
    mDNS.c:7033: dereferencing pointer to incomplete type
    mDNS.c:7035: dereferencing pointer to incomplete type
    mDNS.c:7035: dereferencing pointer to incomplete type
    mDNS.c:7036: dereferencing pointer to incomplete type
    mDNS.c:7040: dereferencing pointer to incomplete type
    mDNS.c:7041: dereferencing pointer to incomplete type
    mDNS.c:7041: dereferencing pointer to incomplete type
    mDNS.c:7042: dereferencing pointer to incomplete type
    mDNS.c:7044: dereferencing pointer to incomplete type
    mDNS.c:7045: dereferencing pointer to incomplete type
    mDNS.c:7045: dereferencing pointer to incomplete type
    mDNS.c:7046: dereferencing pointer to incomplete type
    mDNS.c:7053: dereferencing pointer to incomplete type
    mDNS.c:7057: dereferencing pointer to incomplete type
    mDNS.c:7060: dereferencing pointer to incomplete type
    mDNS.c: At top level:
    mDNSClientAPI.h:922: storage size of `RR_ADV’ isn’t known
    mDNSClientAPI.h:923: storage size of `RR_PTR’ isn’t known
    mDNSClientAPI.h:924: storage size of `RR_SRV’ isn’t known
    mDNSClientAPI.h:925: storage size of `RR_TXT’ isn’t known
    mDNS.c:1084: storage size of `zeroRR’ isn’t known
    *** Error code 1
    make: Fatal error: Command failed for target `mDNS.o’
    Current working directory /share1/mt-daapd-0.2.4/src
    *** Error code 1
    make: Fatal error: Command failed for target `all’
    Current working directory /share1/mt-daapd-0.2.4/src
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’
    Current working directory /share1/mt-daapd-0.2.4
    *** Error code 1
    make: Fatal error: Command failed for target `all’

    I think it’s a uint32_t typedef in mdns.h that isn’t right, but I think there may be more than that. I think it’s possible that the easiest way to get it working is to use howl as the mdns responder. If that is a possiblity, then you can just configure it with –enable-howl, and use the appropriate –with-howl-includes and –with-howl-libs and it should go okay.

    Failing that, I don’t have a solaris 8 machines, and I haven’t seen a patch or recommendations appear on how to fix it on solaris.

    Is it possible to use howl? If not, I could set up an opensolaris machine and see if that exhibits the same problems, but it will probably take me a while.

    — Ron

    #6092
    Scallica
    Participant

    When I run the make command for howl 1.0.0, it fails with the following error:

    Making all in mDNSResponder
    Making all in Posix
    Making all in Win32
    source=’Posix/posix_main.c’ object=’posix_main.o’ libtool=no
    depfile=’.deps/posix_main.Po’ tmpdepfile=’.deps/posix_main.TPo’
    depmode=gcc /bin/bash ../../depcomp
    gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include/ -I../../src/lib/howl -I../../src/lib/mDNSResponder -c -o posix_main.o `test -f ‘Posix/posix_main.c’ || echo ‘./’`Posix/posix_main.c
    Posix/posix_main.c:41: getopt.h: No such file or directory
    *** Error code 1
    make: Fatal error: Command failed for target `posix_main.o’
    Current working directory /share1/howl-1.0.0/src/mDNSResponder
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’
    Current working directory /share1/howl-1.0.0/src/mDNSResponder
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’
    Current working directory /share1/howl-1.0.0/src
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’

    #6093
    rpedde
    Participant

    @Scallica wrote:

    When I run the make command for howl 1.0.0, it fails with the following error:

    Making all in mDNSResponder
    Making all in Posix
    Making all in Win32
    source=’Posix/posix_main.c’ object=’posix_main.o’ libtool=no
    depfile=’.deps/posix_main.Po’ tmpdepfile=’.deps/posix_main.TPo’
    depmode=gcc /bin/bash ../../depcomp
    gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include/ -I../../src/lib/howl -I../../src/lib/mDNSResponder -c -o posix_main.o `test -f ‘Posix/posix_main.c’ || echo ‘./’`Posix/posix_main.c
    Posix/posix_main.c:41: getopt.h: No such file or directory
    *** Error code 1
    make: Fatal error: Command failed for target `posix_main.o’
    Current working directory /share1/howl-1.0.0/src/mDNSResponder
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’
    Current working directory /share1/howl-1.0.0/src/mDNSResponder
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’
    Current working directory /share1/howl-1.0.0/src
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive’

    That one I *do* know offhand — edit the file that’s ticked off about not having “getopt.h” and replace it with “unistd.h” instead.

    — Ron

    #6094
    Scallica
    Participant

    I believe the file its complaining about is src/mDNSResponder/Posix/posix_main.c

    The only line referencing getopt.h was an include statement. I changed this to unistd.h and I receive the same error.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.