dnssd 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,149 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ #### Start of system configuration section. ####
5
+
6
+ srcdir = /Users/chad/src/dnssd/ext
7
+ topdir = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
8
+ hdrdir = $(topdir)
9
+ VPATH = $(srcdir):$(topdir):$(hdrdir)
10
+ prefix = $(DESTDIR)/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr
11
+ exec_prefix = $(prefix)
12
+ sitedir = $(DESTDIR)/Library/Ruby/Site
13
+ rubylibdir = $(libdir)/ruby/$(ruby_version)
14
+ docdir = $(datarootdir)/doc/$(PACKAGE)
15
+ dvidir = $(docdir)
16
+ datarootdir = $(prefix)/share
17
+ archdir = $(rubylibdir)/$(arch)
18
+ sbindir = $(exec_prefix)/sbin
19
+ psdir = $(docdir)
20
+ localedir = $(datarootdir)/locale
21
+ htmldir = $(docdir)
22
+ datadir = $(datarootdir)
23
+ includedir = $(prefix)/include
24
+ infodir = $(DESTDIR)/usr/share/info
25
+ sysconfdir = $(prefix)/etc
26
+ mandir = $(DESTDIR)/usr/share/man
27
+ libdir = $(exec_prefix)/lib
28
+ sharedstatedir = $(prefix)/com
29
+ oldincludedir = $(DESTDIR)/usr/include
30
+ pdfdir = $(docdir)
31
+ sitearchdir = $(sitelibdir)/$(sitearch)
32
+ bindir = $(exec_prefix)/bin
33
+ localstatedir = $(prefix)/var
34
+ sitelibdir = $(sitedir)/$(ruby_version)
35
+ libexecdir = $(exec_prefix)/libexec
36
+
37
+ CC = gcc
38
+ LIBRUBY = $(LIBRUBY_SO)
39
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
40
+ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
41
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)
42
+
43
+ RUBY_EXTCONF_H =
44
+ CFLAGS = -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -Wall
45
+ INCFLAGS = -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext
46
+ CPPFLAGS = -DHAVE_DNS_SD_H -DHAVE_UNISTD_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_PARAM_H -DHAVE_NET_IF_H -DHAVE_HTONS -DHAVE_NTOHS -DHAVE_IF_INDEXTONAME -DHAVE_IF_NAMETOINDEX -DHAVE_GETHOSTNAME -DSIZEOF_VOID_=4 -DSIZEOF_DNSSERVICEFLAGS=4
47
+ CXXFLAGS = $(CFLAGS)
48
+ DLDFLAGS = -L. -arch ppc -arch i386
49
+ LDSHARED = cc -arch ppc -arch i386 -pipe -bundle -undefined dynamic_lookup
50
+ AR = ar
51
+ EXEEXT =
52
+
53
+ RUBY_INSTALL_NAME = ruby
54
+ RUBY_SO_NAME = ruby
55
+ arch = universal-darwin9.0
56
+ sitearch = universal-darwin9.0
57
+ ruby_version = 1.8
58
+ ruby = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
59
+ RUBY = $(ruby)
60
+ RM = rm -f
61
+ MAKEDIRS = mkdir -p
62
+ INSTALL = /usr/bin/install -c
63
+ INSTALL_PROG = $(INSTALL) -m 0755
64
+ INSTALL_DATA = $(INSTALL) -m 644
65
+ COPY = cp
66
+
67
+ #### End of system configuration section. ####
68
+
69
+ preload =
70
+
71
+ libpath = . $(libdir)
72
+ LIBPATH = -L"." -L"$(libdir)"
73
+ DEFFILE =
74
+
75
+ CLEANFILES = mkmf.log
76
+ DISTCLEANFILES =
77
+
78
+ extout =
79
+ extout_prefix =
80
+ target_prefix =
81
+ LOCAL_LIBS =
82
+ LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lm
83
+ SRCS = rdnssd.c rdnssd_service.c rdnssd_structs.c rdnssd_tr.c
84
+ OBJS = rdnssd.o rdnssd_service.o rdnssd_structs.o rdnssd_tr.o
85
+ TARGET = rdnssd
86
+ DLLIB = $(TARGET).bundle
87
+ EXTSTATIC =
88
+ STATIC_LIB =
89
+
90
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
91
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
92
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
93
+
94
+ TARGET_SO = $(DLLIB)
95
+ CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map
96
+ CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
97
+
98
+ all: $(DLLIB)
99
+ static: $(STATIC_LIB)
100
+
101
+ clean:
102
+ @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
103
+
104
+ distclean: clean
105
+ @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
106
+ @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
107
+
108
+ realclean: distclean
109
+ install: install-so install-rb
110
+
111
+ install-so: $(RUBYARCHDIR)
112
+ install-so: $(RUBYARCHDIR)/$(DLLIB)
113
+ $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
114
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
115
+ install-rb: pre-install-rb install-rb-default
116
+ install-rb-default: pre-install-rb-default
117
+ pre-install-rb: Makefile
118
+ pre-install-rb-default: Makefile
119
+ $(RUBYARCHDIR):
120
+ $(MAKEDIRS) $@
121
+
122
+ site-install: site-install-so site-install-rb
123
+ site-install-so: install-so
124
+ site-install-rb: install-rb
125
+
126
+ .SUFFIXES: .c .m .cc .cxx .cpp .C .o
127
+
128
+ .cc.o:
129
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
130
+
131
+ .cxx.o:
132
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
133
+
134
+ .cpp.o:
135
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
136
+
137
+ .C.o:
138
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
139
+
140
+ .c.o:
141
+ $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
142
+
143
+ $(DLLIB): $(OBJS)
144
+ @-$(RM) $@
145
+ $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
146
+
147
+
148
+
149
+ $(OBJS): ruby.h defines.h
@@ -3,7 +3,7 @@
3
3
  # :nodoc: all
4
4
  #
5
5
  # Extension configuration script for DNS_SD C Extension.
6
- # $Id: extconf.rb,v 1.5 2004/10/04 18:29:53 cmills Exp $
6
+ # $Id: extconf.rb,v 1.8 2005/03/20 22:50:43 cmills Exp $
7
7
  #
8
8
  #
9
9
 
@@ -27,16 +27,32 @@ end
27
27
 
28
28
  unless RUBY_PLATFORM.include? "darwin"
29
29
  have_library( "mdns", "DNSServiceRefSockFD" ) or
30
+ have_library( "dns_sd", "DNSServiceRefSockFD" ) or
30
31
  abort( "can't find rendezvous library" )
31
32
  end
32
33
 
33
34
  #have_library( "dns-sd", "DNSServiceRefSockFD" ) or
34
35
  # abort( "Can't find rendezvous client library" )
35
36
 
36
- have_header( "dns_sd.h" ) or
37
- abort( "can't find the rendezvous client headers" )
37
+ have_header("dns_sd.h") or
38
+ abort("can't find the rendezvous client headers")
39
+
40
+ have_header("unistd.h")
41
+ have_header("sys/types.h")
42
+ have_header("sys/socket.h")
43
+ have_header("sys/param.h")
44
+ have_header("sys/if.h")
45
+ have_header("net/if.h")
38
46
 
39
47
  check_for_funcs("htons", "ntohs", "if_indextoname", "if_nametoindex")
48
+ have_func("gethostname")
49
+
50
+ s1 = check_sizeof("void*")
51
+ s2 = check_sizeof("DNSServiceFlags", "dns_sd.h") or
52
+ abort("can't determine sizeof(DNSServiceFlags)")
53
+
54
+ # need to make sure storing unsigned integer in void * is OK.
55
+ s1 >= s2 or abort("sizeof(void*) < sizeof(DNSServiceFlags) please contact the authors!")
40
56
 
41
57
  create_makefile("rdnssd")
42
58
 
@@ -0,0 +1,266 @@
1
+ have_header: checking for dns_sd.h... -------------------- yes
2
+
3
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
4
+ checked program was:
5
+ /* begin */
6
+ 1: #include <dns_sd.h>
7
+ /* end */
8
+
9
+ --------------------
10
+
11
+ have_header: checking for unistd.h... -------------------- yes
12
+
13
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
14
+ checked program was:
15
+ /* begin */
16
+ 1: #include <unistd.h>
17
+ /* end */
18
+
19
+ --------------------
20
+
21
+ have_header: checking for sys/types.h... -------------------- yes
22
+
23
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
24
+ checked program was:
25
+ /* begin */
26
+ 1: #include <sys/types.h>
27
+ /* end */
28
+
29
+ --------------------
30
+
31
+ have_header: checking for sys/socket.h... -------------------- yes
32
+
33
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
34
+ checked program was:
35
+ /* begin */
36
+ 1: #include <sys/socket.h>
37
+ /* end */
38
+
39
+ --------------------
40
+
41
+ have_header: checking for sys/param.h... -------------------- yes
42
+
43
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
44
+ checked program was:
45
+ /* begin */
46
+ 1: #include <sys/param.h>
47
+ /* end */
48
+
49
+ --------------------
50
+
51
+ have_header: checking for sys/if.h... -------------------- no
52
+
53
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
54
+ conftest.c:1:20: error: sys/if.h: No such file or directory
55
+ checked program was:
56
+ /* begin */
57
+ 1: #include <sys/if.h>
58
+ /* end */
59
+
60
+ --------------------
61
+
62
+ have_header: checking for net/if.h... -------------------- yes
63
+
64
+ "gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
65
+ checked program was:
66
+ /* begin */
67
+ 1: #include <net/if.h>
68
+ /* end */
69
+
70
+ --------------------
71
+
72
+ have_func: checking for htons()... -------------------- yes
73
+
74
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
75
+ conftest.c: In function ‘t’:
76
+ conftest.c:3: error: ‘htons’ undeclared (first use in this function)
77
+ conftest.c:3: error: (Each undeclared identifier is reported only once
78
+ conftest.c:3: error: for each function it appears in.)
79
+ conftest.c: In function ‘t’:
80
+ conftest.c:3: error: ‘htons’ undeclared (first use in this function)
81
+ conftest.c:3: error: (Each undeclared identifier is reported only once
82
+ conftest.c:3: error: for each function it appears in.)
83
+ lipo: can't figure out the architecture type of: /var/folders/lT/lTCP9w6tGeOOrtm7Bf11Sk+++TI/-Tmp-//cc6zZSVH.out
84
+ checked program was:
85
+ /* begin */
86
+ 1: /*top*/
87
+ 2: int main() { return 0; }
88
+ 3: int t() { void ((*volatile p)()); p = (void ((*)()))htons; return 0; }
89
+ /* end */
90
+
91
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
92
+ conftest.c: In function ‘t’:
93
+ conftest.c:3: warning: implicit declaration of function ‘htons’
94
+ conftest.c: In function ‘t’:
95
+ conftest.c:3: warning: implicit declaration of function ‘htons’
96
+ checked program was:
97
+ /* begin */
98
+ 1: /*top*/
99
+ 2: int main() { return 0; }
100
+ 3: int t() { htons(); return 0; }
101
+ /* end */
102
+
103
+ --------------------
104
+
105
+ have_func: checking for ntohs()... -------------------- yes
106
+
107
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
108
+ conftest.c: In function ‘t’:
109
+ conftest.c:3: error: ‘ntohs’ undeclared (first use in this function)
110
+ conftest.c:3: error: (Each undeclared identifier is reported only once
111
+ conftest.c:3: error: for each function it appears in.)
112
+ conftest.c: In function ‘t’:
113
+ conftest.c:3: error: ‘ntohs’ undeclared (first use in this function)
114
+ conftest.c:3: error: (Each undeclared identifier is reported only once
115
+ conftest.c:3: error: for each function it appears in.)
116
+ lipo: can't figure out the architecture type of: /var/folders/lT/lTCP9w6tGeOOrtm7Bf11Sk+++TI/-Tmp-//cc28PIN3.out
117
+ checked program was:
118
+ /* begin */
119
+ 1: /*top*/
120
+ 2: int main() { return 0; }
121
+ 3: int t() { void ((*volatile p)()); p = (void ((*)()))ntohs; return 0; }
122
+ /* end */
123
+
124
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
125
+ conftest.c: In function ‘t’:
126
+ conftest.c:3: warning: implicit declaration of function ‘ntohs’
127
+ conftest.c: In function ‘t’:
128
+ conftest.c:3: warning: implicit declaration of function ‘ntohs’
129
+ checked program was:
130
+ /* begin */
131
+ 1: /*top*/
132
+ 2: int main() { return 0; }
133
+ 3: int t() { ntohs(); return 0; }
134
+ /* end */
135
+
136
+ --------------------
137
+
138
+ have_func: checking for if_indextoname()... -------------------- yes
139
+
140
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
141
+ conftest.c: In function ‘t’:
142
+ conftest.c:3: error: ‘if_indextoname’ undeclared (first use in this function)
143
+ conftest.c:3: error: (Each undeclared identifier is reported only once
144
+ conftest.c:3: error: for each function it appears in.)
145
+ conftest.c: In function ‘t’:
146
+ conftest.c:3: error: ‘if_indextoname’ undeclared (first use in this function)
147
+ conftest.c:3: error: (Each undeclared identifier is reported only once
148
+ conftest.c:3: error: for each function it appears in.)
149
+ lipo: can't figure out the architecture type of: /var/folders/lT/lTCP9w6tGeOOrtm7Bf11Sk+++TI/-Tmp-//ccy6Nowa.out
150
+ checked program was:
151
+ /* begin */
152
+ 1: /*top*/
153
+ 2: int main() { return 0; }
154
+ 3: int t() { void ((*volatile p)()); p = (void ((*)()))if_indextoname; return 0; }
155
+ /* end */
156
+
157
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
158
+ conftest.c: In function ‘t’:
159
+ conftest.c:3: warning: implicit declaration of function ‘if_indextoname’
160
+ conftest.c: In function ‘t’:
161
+ conftest.c:3: warning: implicit declaration of function ‘if_indextoname’
162
+ checked program was:
163
+ /* begin */
164
+ 1: /*top*/
165
+ 2: int main() { return 0; }
166
+ 3: int t() { if_indextoname(); return 0; }
167
+ /* end */
168
+
169
+ --------------------
170
+
171
+ have_func: checking for if_nametoindex()... -------------------- yes
172
+
173
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
174
+ conftest.c: In function ‘t’:
175
+ conftest.c:3: error: ‘if_nametoindex’ undeclared (first use in this function)
176
+ conftest.c:3: error: (Each undeclared identifier is reported only once
177
+ conftest.c:3: error: for each function it appears in.)
178
+ conftest.c: In function ‘t’:
179
+ conftest.c:3: error: ‘if_nametoindex’ undeclared (first use in this function)
180
+ conftest.c:3: error: (Each undeclared identifier is reported only once
181
+ conftest.c:3: error: for each function it appears in.)
182
+ lipo: can't figure out the architecture type of: /var/folders/lT/lTCP9w6tGeOOrtm7Bf11Sk+++TI/-Tmp-//ccS2xfS8.out
183
+ checked program was:
184
+ /* begin */
185
+ 1: /*top*/
186
+ 2: int main() { return 0; }
187
+ 3: int t() { void ((*volatile p)()); p = (void ((*)()))if_nametoindex; return 0; }
188
+ /* end */
189
+
190
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
191
+ conftest.c: In function ‘t’:
192
+ conftest.c:3: warning: implicit declaration of function ‘if_nametoindex’
193
+ conftest.c: In function ‘t’:
194
+ conftest.c:3: warning: implicit declaration of function ‘if_nametoindex’
195
+ checked program was:
196
+ /* begin */
197
+ 1: /*top*/
198
+ 2: int main() { return 0; }
199
+ 3: int t() { if_nametoindex(); return 0; }
200
+ /* end */
201
+
202
+ --------------------
203
+
204
+ have_func: checking for gethostname()... -------------------- yes
205
+
206
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
207
+ conftest.c: In function ‘t’:
208
+ conftest.c:3: error: ‘gethostname’ undeclared (first use in this function)
209
+ conftest.c:3: error: (Each undeclared identifier is reported only once
210
+ conftest.c:3: error: for each function it appears in.)
211
+ conftest.c: In function ‘t’:
212
+ conftest.c:3: error: ‘gethostname’ undeclared (first use in this function)
213
+ conftest.c:3: error: (Each undeclared identifier is reported only once
214
+ conftest.c:3: error: for each function it appears in.)
215
+ lipo: can't figure out the architecture type of: /var/folders/lT/lTCP9w6tGeOOrtm7Bf11Sk+++TI/-Tmp-//cc0aBBiJ.out
216
+ checked program was:
217
+ /* begin */
218
+ 1: /*top*/
219
+ 2: int main() { return 0; }
220
+ 3: int t() { void ((*volatile p)()); p = (void ((*)()))gethostname; return 0; }
221
+ /* end */
222
+
223
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
224
+ conftest.c: In function ‘t’:
225
+ conftest.c:3: warning: implicit declaration of function ‘gethostname’
226
+ conftest.c: In function ‘t’:
227
+ conftest.c:3: warning: implicit declaration of function ‘gethostname’
228
+ checked program was:
229
+ /* begin */
230
+ 1: /*top*/
231
+ 2: int main() { return 0; }
232
+ 3: int t() { gethostname(); return 0; }
233
+ /* end */
234
+
235
+ --------------------
236
+
237
+ check_sizeof: checking size of void*... -------------------- 4
238
+
239
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
240
+ checked program was:
241
+ /* begin */
242
+ 1: #include <stdio.h>
243
+ 2: /*top*/
244
+ 3: int conftest_const = (int)(sizeof(void*));
245
+ 4: int main() {printf("%d\n", conftest_const); return 0;}
246
+ /* end */
247
+
248
+ ./conftest |
249
+ --------------------
250
+
251
+ check_sizeof: checking size of DNSServiceFlags in dns_sd.h... -------------------- 4
252
+
253
+ "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/Users/chad/src/dnssd/ext -arch ppc -arch i386 -Os -pipe -fno-common -Wall conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -lpthread -ldl -lm "
254
+ checked program was:
255
+ /* begin */
256
+ 1: #include <dns_sd.h>
257
+ 2:
258
+ 3: #include <stdio.h>
259
+ 4: /*top*/
260
+ 5: int conftest_const = (int)(sizeof(DNSServiceFlags));
261
+ 6: int main() {printf("%d\n", conftest_const); return 0;}
262
+ /* end */
263
+
264
+ ./conftest |
265
+ --------------------
266
+