dns.c dns.h 有問題?

看板SetupBBS作者時間22年前 (2003/09/04 19:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我在 ~/src/lib make 會出現下列的 error msg ../include/dns.h:16:24: netinet/in.h: 沒有此一檔案或目錄 ../include/dns.h:17:19: ctype.h: 沒有此一檔案或目錄 ../include/dns.h:18:19: netdb.h: 沒有此一檔案或目錄 ../include/dns.h:19:23: arpa/inet.h: 沒有此一檔案或目錄 ../include/dns.h:20:26: arpa/nameser.h: 沒有此一檔案或目錄 ../include/dns.h:21:20: resolv.h: 沒有此一檔案或目錄 In file included from dns.c:10: ../include/dns.h:60: error: syntax error before "HEADER" ../include/dns.h:60: warning: no semicolon at end of struct or union ../include/dns.h:61: warning: data definition has no type or storage class ../include/dns.h:62: error: syntax error before '}' token ../include/dns.h:62: warning: data definition has no type or storage class dns.c: In function `dns_init': dns.c:18: error: `_res' undeclared (first use in this function) dns.c:18: error: (Each undeclared identifier is reported only once dns.c:18: error: for each function it appears in.) dns.c: In function `dns_query': dns.c:27: error: syntax error before "querybuf" dns.c:29: error: syntax error before "buf" dns.c:31: error: `QUERY' undeclared (first use in this function) dns.c:31: error: `C_IN' undeclared (first use in this function) dns.c:31: error: `NULL' undeclared (first use in this function) make: *** [dns.o] Error 1 是 dns.c 及 dns.h 有問題嗎? 我是用 Maple itoc 的最新版本, 想架在 Debian 上. 想弄在無實體 IP 的 PC 上先玩玩看, 等新機器來在搬移. 但是照著網站上的文件去弄, 都無法 telnet localhost 進去, 目前只發現有上面的問題, dns.c 無法成功編譯... -- 我對一切無悔, 只因身邊有妳。 -- 夫兵者不祥之器物或惡之故有道者不處君子居則貴左用兵則貴右兵者不祥之器非君子 之器不得已而用之恬淡為上勝而不美而美之者是樂殺人夫樂殺人者則不可得志於天下 矣吉事尚左凶事尚右偏將軍居左上將軍居右言以喪禮處之殺人wretch.twbbs.org勝以 喪禮處之道常無名樸雖小天下莫能臣侯王若能守之萬物將自賓天地相合以降甘露民莫 之令而自均始制有名名亦既有夫亦將知止知止218-160-48-66.HINET-IP.hinet.net
文章代碼(AID): #_LoAu00 (SetupBBS)