Reply To: Compile Error – 0.2.4 on Solaris 8

#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