Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Java rendezvous classes and linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java rendezvous classes and linux



Roger Pantos wrote:
cd mDNSResponder/mDNSPosix
make os=linux                    # build mdnsd and libmdns
sudo make os=linux install       # put them where they ought to be
make os=linux Java               # build libjdns_sd.so & dns_sd.jar
make os=linux JavaDoc            # (optionally) generate documentation

That help me a lot :)

But I still have a problem when I try : make os=linux Java
When try to compile libjdns_sd.so, I obtain :

cc -o build/prod/libjdns_sd.so ../mDNSShared/Java/JNISupport.c -I.
-I../mDNSCore -I../mDNSShared -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\"
-DNOT_HAVE_SA_LEN -DUSES_NETLINK -Os -DMDNS_DEBUGMSGS=0  -fPIC -shared
-lmdns -I/usr/include/linux -I/usr/include -Iobjects/prod

In file included from /usr/include/sys/types.h:266,
                 from ../mDNSShared/Java/JNISupport.c:52:
/usr/include/bits/pthreadtypes.h:50: error: parse error before "size_t"
/usr/include/bits/pthreadtypes.h:53: error: parse error before "__stacksize"
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from ../mDNSShared/Java/JNISupport.c:59:
/usr/include/gconv.h:72: error: parse error before "size_t"
/usr/include/gconv.h:88: error: parse error before "size_t"
/usr/include/gconv.h:97: error: parse error before "size_t"
/usr/include/gconv.h:174: error: parse error before "size_t"
/usr/include/gconv.h:177: error: parse error before '}' token
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from ../mDNSShared/Java/JNISupport.c:59:
/usr/include/_G_config.h:47: error: field `__cd' has incomplete type
/usr/include/_G_config.h:50: error: field `__cd' has incomplete type
In file included from /usr/include/stdio.h:72,
                 from ../mDNSShared/Java/JNISupport.c:59:
/usr/include/libio.h:351: error: parse error before "size_t"
/usr/include/libio.h:360: error: parse error before "size_t"
/usr/include/libio.h:468: error: parse error before "_IO_sgetn"
/usr/include/libio.h:468: error: parse error before "size_t"
In file included from ../mDNSShared/Java/JNISupport.c:59:
/usr/include/stdio.h:302: error: parse error before "size_t"
/usr/include/stdio.h:309: error: parse error before "size_t"
/usr/include/stdio.h:351: error: parse error before "size_t"
/usr/include/stdio.h:355: error: parse error before "size_t"
/usr/include/stdio.h:603: error: parse error before "fread"
/usr/include/stdio.h:603: error: parse error before "size_t"
/usr/include/stdio.h:609: error: parse error before "fwrite"
/usr/include/stdio.h:609: error: parse error before "size_t"
/usr/include/stdio.h:631: error: parse error before "fread_unlocked"
/usr/include/stdio.h:631: error: parse error before "size_t"
/usr/include/stdio.h:633: error: parse error before "fwrite_unlocked"
/usr/include/stdio.h:633: error: parse error before "size_t"
In file included from ../mDNSShared/Java/JNISupport.c:60:
/usr/include/stdlib.h:137: error: parse error before
"__ctype_get_mb_cur_max"
/usr/include/stdlib.h:433: error: parse error before "size_t"
/usr/include/stdlib.h:462: error: parse error before "size_t"
/usr/include/stdlib.h:556: error: parse error before "__size"
/usr/include/stdlib.h:558: error: parse error before "__nmemb"
/usr/include/stdlib.h:567: error: parse error before "size_t"
In file included from /usr/include/stdlib.h:578,
                 from ../mDNSShared/Java/JNISupport.c:60:
/usr/include/alloca.h:33: error: parse error before "__size"
In file included from ../mDNSShared/Java/JNISupport.c:60:
/usr/include/stdlib.h:583: error: parse error before "__size"
/usr/include/stdlib.h:739: error: parse error before "size_t"
/usr/include/stdlib.h:743: error: parse error before "size_t"
/usr/include/stdlib.h:812: error: parse error before "size_t"
/usr/include/stdlib.h:815: error: parse error before "size_t"
/usr/include/stdlib.h:819: error: parse error before "size_t"
/usr/include/stdlib.h:822: error: parse error before "size_t"
/usr/include/stdlib.h:830: error: parse error before "size_t"
/usr/include/stdlib.h:833: error: parse error before '*' token
/usr/include/stdlib.h:837: error: parse error before "wchar_t"
/usr/include/stdlib.h:841: error: parse error before "mbstowcs"
/usr/include/stdlib.h:841: error: parse error before '*' token
/usr/include/stdlib.h:844: error: parse error before "wcstombs"
/usr/include/stdlib.h:845: error: parse error before '*' token
../mDNSShared/Java/JNISupport.c: In function `ServiceResolveReply':
../mDNSShared/Java/JNISupport.c:375: warning: implicit declaration of
function `memcpy'
../mDNSShared/Java/JNISupport.c: At top level:
/usr/include/gconv.h:176: warning: array `__data' assumed to have one
element
make: *** [build/prod/libjdns_sd.so] Error 1

Note: I've installed libgcj4-dev (to obtain jni.h and libgcj-config.h).
I'm running on debian unstable using gcc 3.3.4. I try with gcc-2.95 (but
still not work).

I don't find anything that could tell me where is the problem (or what I
read is that it's a problem in the order of the '#include').

Hope that you could help me. (I'm going to create a unofficial debian
package for mdns).

Tim
--
http://people.tryphon.org/~tim/
_______________________________________________
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.


References: 
 >Java rendezvous classes and linux (From: Peignier Timothee <email@hidden>)
 >Re: Java rendezvous classes and linux (From: Roger Pantos <email@hidden>)



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.