Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problems compiling mDNSR on Debian
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling mDNSR on Debian



Thanks Bob- I made the changes but now I am encountering new errors...

ProxyResponder done
cc -c -g -I../mDNSCore -I. -DMDNS_DEBUGMSGS=2 -DNOT_HAVE_SA_LEN -W -Wall Identify.c -o objects/Identify.c.o
Identify.c: In function `main':
Identify.c:264: parse error before `struct'
Identify.c:270: `s4' undeclared (first use in this function)
Identify.c:270: (Each undeclared identifier is reported only once
Identify.c:270: for each function it appears in.)
Identify.c:273: `buffer' undeclared (first use in this function)
Identify.c:275: `q' undeclared (first use in this function)
Identify.c:277: `s6' undeclared (first use in this function)
make: *** [objects/Identify.c.o] Error 1


P.

On Nov 30, 2003, at 8:12 PM, Bob Bradley wrote:

On 11/30/03 4:31 PM, "email@hidden" <email@hidden> wrote:

I am having trouble compiling the mDNSResponder on Debian linux using
the os=linux option with make. I get:

~/mDNSResponder-58/mDNSPosix$ make os=linux

if test ! -d objects ; then mkdir objects ; fi
if test ! -d build   ; then mkdir build   ; fi
cc -c -g -I../mDNSCore -I. -DMDNS_DEBUGMSGS=2 -DNOT_HAVE_SA_LEN -W
-Wall ../mDNSCore/mDNS.c -o objects/mDNS.c.o
../mDNSCore/mDNS.c: In function `mDNS_RegisterInterface':
../mDNSCore/mDNS.c:6405: parse error before `*'
../mDNSCore/mDNS.c:6407: `q' undeclared (first use in this function)
../mDNSCore/mDNS.c:6407: (Each undeclared identifier is reported only
once
../mDNSCore/mDNS.c:6407: for each function it appears in.)
../mDNSCore/mDNS.c:6418: `rr' undeclared (first use in this function)
make: *** [objects/mDNS.c.o] Error 1

This is fixed in the TOT mDNS sources available through CVS, but you can fix
it in your copy by moving:


DNSQuestion *q;
AuthRecord *rr;

Above the "if" so it is before any code in that scope. Pre-C99 C compilers
require variables to be declared at the top of a scope.
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.