juhovh / shairplay

Apple airplay and raop protocol server
Other
1.35k stars 228 forks source link

Cannot compile on Linux #3

Closed xburchartz closed 12 years ago

xburchartz commented 12 years ago

I'm not able to compile shairplay on a linux (ubuntu) system. See following errors:

xander@asrock:~/shairplay$ make cc -g -Wall -Isrc/include/ -c -o src/lib/dnssd.o src/lib/dnssd.c src/lib/dnssd.c:62:21: error: dns_sd.h: Bestand of map bestaat niet src/lib/dnssd.c:66: error: expected declaration specifiers or â...â before â_â token src/lib/dnssd.c:68: error: expected â)â before â_â token src/lib/dnssd.c:81: error: expected â)â before âsdRefâ src/lib/dnssd.c:84: error: expected â)â before â_â token src/lib/dnssd.c:88: error: expected â)â before â_â token src/lib/dnssd.c:89: error: expected declaration specifiers or â...â before â_â token src/lib/dnssd.c:91: error: expected â)â before â_â token src/lib/dnssd.c:96: warning: type defaults to âintâ in declaration of âTXTRecordRefâ src/lib/dnssd.c:96: error: expected â;â, â,â or â)â before â_â token src/lib/dnssd.c:97: warning: type defaults to âintâ in declaration of âTXTRecordRefâ src/lib/dnssd.c:97: error: expected â;â, â,â or â)â before â_â token src/lib/dnssd.c:107: error: expected specifier-qualifier-list before âDNSServiceRegister_tâ src/lib/dnssd.c: In function âdnssd_initâ: src/lib/dnssd.c:181: error: âdnssd_tâ has no member named âDNSServiceRegisterâ src/lib/dnssd.c:181: error: âDNSServiceRegisterâ undeclared (first use in this function) src/lib/dnssd.c:181: error: (Each undeclared identifier is reported only once src/lib/dnssd.c:181: error: for each function it appears in.) src/lib/dnssd.c:182: error: âdnssd_tâ has no member named âDNSServiceRefDeallocateâ src/lib/dnssd.c:182: error: âDNSServiceRefDeallocateâ undeclared (first use in this function) src/lib/dnssd.c:183: error: âdnssd_tâ has no member named âTXTRecordCreateâ src/lib/dnssd.c:183: error: âTXTRecordCreateâ undeclared (first use in this function) src/lib/dnssd.c:184: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:184: error: âTXTRecordSetValueâ undeclared (first use in this function) src/lib/dnssd.c:185: error: âdnssd_tâ has no member named âTXTRecordGetLengthâ src/lib/dnssd.c:185: error: âTXTRecordGetLengthâ undeclared (first use in this function) src/lib/dnssd.c:186: error: âdnssd_tâ has no member named âTXTRecordGetBytesPtrâ src/lib/dnssd.c:186: error: âTXTRecordGetBytesPtrâ undeclared (first use in this function) src/lib/dnssd.c:187: error: âdnssd_tâ has no member named âTXTRecordDeallocateâ src/lib/dnssd.c:187: error: âTXTRecordDeallocateâ undeclared (first use in this function) src/lib/dnssd.c: In function âdnssd_register_raopâ: src/lib/dnssd.c:209: error: âTXTRecordRefâ undeclared (first use in this function) src/lib/dnssd.c:209: error: expected â;â before âtxtRecordâ src/lib/dnssd.c:217: error: âdnssd_tâ has no member named âTXTRecordCreateâ src/lib/dnssd.c:217: error: âtxtRecordâ undeclared (first use in this function) src/lib/dnssd.c:218: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:219: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:220: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:221: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:222: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:223: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:224: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:225: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:227: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:229: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:231: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:232: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:233: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:234: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:235: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:236: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:255: error: âdnssd_tâ has no member named âDNSServiceRegisterâ src/lib/dnssd.c:255: error: âdnssd_tâ has no member named âraopServiceâ src/lib/dnssd.c:259: error: âdnssd_tâ has no member named âTXTRecordGetLengthâ src/lib/dnssd.c:260: error: âdnssd_tâ has no member named âTXTRecordGetBytesPtrâ src/lib/dnssd.c:264: error: âdnssd_tâ has no member named âTXTRecordDeallocateâ src/lib/dnssd.c: In function âdnssd_register_airplayâ: src/lib/dnssd.c:271: error: âTXTRecordRefâ undeclared (first use in this function) src/lib/dnssd.c:271: error: expected â;â before âtxtRecordâ src/lib/dnssd.c:290: error: âdnssd_tâ has no member named âTXTRecordCreateâ src/lib/dnssd.c:290: error: âtxtRecordâ undeclared (first use in this function) src/lib/dnssd.c:291: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:292: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:293: error: âdnssd_tâ has no member named âTXTRecordSetValueâ src/lib/dnssd.c:296: error: âdnssd_tâ has no member named âDNSServiceRegisterâ src/lib/dnssd.c:296: error: âdnssd_tâ has no member named âairplayServiceâ src/lib/dnssd.c:300: error: âdnssd_tâ has no member named âTXTRecordGetLengthâ src/lib/dnssd.c:301: error: âdnssd_tâ has no member named âTXTRecordGetBytesPtrâ src/lib/dnssd.c:305: error: âdnssd_tâ has no member named âTXTRecordDeallocateâ src/lib/dnssd.c: In function âdnssd_unregister_raopâ: src/lib/dnssd.c:314: error: âdnssd_tâ has no member named âraopServiceâ src/lib/dnssd.c:318: error: âdnssd_tâ has no member named âDNSServiceRefDeallocateâ src/lib/dnssd.c:318: error: âdnssd_tâ has no member named âraopServiceâ src/lib/dnssd.c:319: error: âdnssd_tâ has no member named âraopServiceâ src/lib/dnssd.c: In function âdnssd_unregister_airplayâ: src/lib/dnssd.c:327: error: âdnssd_tâ has no member named âairplayServiceâ src/lib/dnssd.c:331: error: âdnssd_tâ has no member named âDNSServiceRefDeallocateâ src/lib/dnssd.c:331: error: âdnssd_tâ has no member named âairplayServiceâ src/lib/dnssd.c:332: error: âdnssd_tâ has no member named âairplayServiceâ make: *\ [src/lib/dnssd.o] Fout 1

juhovh commented 12 years ago

Please try the autotools branch, it should use libdl for dynamic linking if available and fix this issue. I should probably merge it to master.

juhovh commented 12 years ago

I haven't received a reply for a week. This seems to be a simple linking problem with libdns_sd (that should be fixed in autotools branch), therefore I will simply close this issue.