LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1205|回复: 6

[求助]编译Gipmsg

[复制链接]
发表于 2006-7-18 22:06:37 | 显示全部楼层 |阅读模式
我在centOS 上编译Gipmsg(linux下的飞鸽传书),遇到严重问题。


首先,“./configure”通过:

  1. [root@localhost gipmsg-0.4.0beta1]# ./configure
  2. loading cache ./config.cache
  3. checking for a BSD compatible install... (cached) /usr/bin/install -c
  4. checking whether build environment is sane... yes
  5. checking whether make sets ${MAKE}... (cached) yes
  6. checking for working aclocal... found
  7. checking for working autoconf... found
  8. checking for working automake... found
  9. checking for working autoheader... found
  10. checking for working makeinfo... found
  11. checking for gnome-config... (cached) no
  12. checking for gnomeConf.sh file in /usr/local/lib... not found
  13. checking extra library "applets"... ./configure: line 1117: no: command not found

  14. checking for gcc... (cached) gcc
  15. checking whether the C compiler (gcc  ) works... yes
  16. checking whether the C compiler (gcc  ) is a cross-compiler... no
  17. checking whether we are using GNU C... (cached) yes
  18. checking whether gcc accepts -g... (cached) yes
  19. checking for POSIXized ISC... no
  20. checking for gcc... (cached) gcc
  21. checking whether the C compiler (gcc -g -O2 ) works... yes
  22. checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
  23. checking whether we are using GNU C... (cached) yes
  24. checking whether gcc accepts -g... (cached) yes
  25. checking how to run the C preprocessor... (cached) gcc -E
  26. checking for ANSI C header files... (cached) yes
  27. checking host system type... i686-pc-linux-gnu
  28. checking build system type... i686-pc-linux-gnu
  29. checking for ranlib... (cached) ranlib
  30. checking for ld used by GCC... (cached) /usr/bin/ld
  31. checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
  32. checking for BSD-compatible nm... (cached) /usr/bin/nm -B
  33. checking whether ln -s works... (cached) yes
  34. loading cache ./config.cache within ltconfig
  35. checking for object suffix... o
  36. checking for executable suffix... (cached) no
  37. checking for gcc option to produce PIC... -fPIC
  38. checking if gcc PIC flag -fPIC works... yes
  39. checking if gcc supports -c -o file.o... yes
  40. checking if gcc supports -c -o file.lo... yes
  41. checking if gcc supports -fno-rtti -fno-exceptions ... no
  42. checking if gcc static flag -static works... -static
  43. checking if the linker (/usr/bin/ld) is GNU ld... yes
  44. checking whether the linker (/usr/bin/ld) supports shared libraries... yes
  45. checking command to parse /usr/bin/nm -B output... ok
  46. checking how to hardcode library paths into programs... immediate
  47. checking for /usr/bin/ld option to reload object files... -r
  48. checking dynamic linker characteristics... Linux ld.so
  49. checking if libtool supports shared libraries... yes
  50. checking whether to build shared libraries... yes
  51. checking whether to build static libraries... yes
  52. checking for objdir... .libs
  53. creating libtool
  54. loading cache ./config.cache
  55. checking what warning flags to pass to the C compiler... -Wall -Wunused
  56. checking what language compliance flags to pass to the C compiler...
  57. checking for pthread_create in -lpthread... (cached) yes
  58. checking for gtk-config... (cached) /usr/bin/gtk-config
  59. checking for GTK - version >= 1.2.0... yes
  60. checking for SmcSaveYourselfDone in -lSM... (cached) yes
  61. checking for X11/SM/SMlib.h... (cached) yes
  62. checking for XpmFreeXpmImage in -lXpm... (cached) yes
  63. checking for working const... (cached) yes
  64. checking for inline... (cached) inline
  65. checking for off_t... (cached) yes
  66. checking for size_t... (cached) yes
  67. checking for working alloca.h... (cached) yes
  68. checking for alloca... (cached) yes
  69. checking for unistd.h... (cached) yes
  70. checking for getpagesize... (cached) yes
  71. checking for working mmap... (cached) yes
  72. checking for argz.h... (cached) yes
  73. checking for limits.h... (cached) yes
  74. checking for locale.h... (cached) yes
  75. checking for nl_types.h... (cached) yes
  76. checking for malloc.h... (cached) yes
  77. checking for string.h... (cached) yes
  78. checking for unistd.h... (cached) yes
  79. checking for sys/param.h... (cached) yes
  80. checking for getcwd... (cached) yes
  81. checking for munmap... (cached) yes
  82. checking for putenv... (cached) yes
  83. checking for setenv... (cached) yes
  84. checking for setlocale... (cached) yes
  85. checking for strchr... (cached) yes
  86. checking for strcasecmp... (cached) yes
  87. checking for strdup... (cached) yes
  88. checking for __argz_count... (cached) yes
  89. checking for __argz_stringify... (cached) yes
  90. checking for __argz_next... (cached) yes
  91. checking for LC_MESSAGES... (cached) yes
  92. checking whether NLS is requested... yes
  93. checking whether included gettext is requested... no
  94. checking for libintl.h... (cached) yes
  95. checking for gettext in libc... (cached) yes
  96. checking for msgfmt... (cached) /usr/bin/msgfmt
  97. checking for dcgettext... (cached) yes
  98. checking for gmsgfmt... (cached) /usr/bin/msgfmt
  99. checking for xgettext... (cached) /usr/bin/xgettext
  100. checking for catalogs to be installed...  ja
  101. checking for gettext... (cached) yes
  102. checking for dlfcn.h... (cached) yes
  103. checking for dl.h... (cached) no
  104. checking for dlopen in -ldl... (cached) yes
  105. checking for X11/extensions/xf86misc.h... (cached) yes
  106. checking for esd-config... (cached) /usr/bin/esd-config
  107. checking for ESD - version >= 0.2.7... yes
  108. checking whether to enable applet... no
  109. creating ./config.status
  110. creating Makefile
  111. creating src/Makefile
  112. creating intl/Makefile
  113. creating po/Makefile.in
  114. creating config.h
  115. config.h is unchanged
  116. [root@localhost gipmsg-0.4.0beta1]#
复制代码


但是,“make”时出现里错误:

  1. main.c:13:19: gnome.h: No such file or directory
  2. In file included from main.c:18:
  3. properties.h:13: error: syntax error before "guint16"
  4. properties.h:13: warning: no semicolon at end of struct or union
  5. properties.h:26: error: syntax error before ':' token
  6. properties.h:27: error: syntax error before ':' token
  7. properties.h:28: error: syntax error before ':' token
  8. properties.h:29: error: syntax error before ':' token
  9. properties.h:30: error: syntax error before ':' token
  10. properties.h:32: error: syntax error before ':' token
  11. properties.h:33: error: syntax error before ':' token
  12. properties.h:35: error: syntax error before '}' token
  13. properties.h:41: error: syntax error before '*' token
  14. properties.h:45: error: syntax error before '*' token
  15. properties.h:45: error: syntax error before '*' token
  16. properties.h:45: warning: type defaults to `int' in declaration of `create_prop_main'
  17. properties.h:45: warning: data definition has no type or storage class
  18. properties.h:46: error: syntax error before '*' token
  19. properties.h:46: error: syntax error before '*' token
  20. properties.h:46: warning: type defaults to `int' in declaration of `create_prop_broadcast'
  21. properties.h:46: warning: data definition has no type or storage class
  22. properties.h:47: error: syntax error before '*' token
  23. properties.h:47: error: syntax error before '*' token
  24. properties.h:47: warning: type defaults to `int' in declaration of `create_prop_absence'
  25. properties.h:47: warning: data definition has no type or storage class
  26. properties.h:48: error: syntax error before '*' token
  27. properties.h:48: error: syntax error before '*' token
  28. properties.h:48: warning: type defaults to `int' in declaration of `create_prop_sound'
  29. properties.h:48: warning: data definition has no type or storage class
  30. In file included from main.c:19:
  31. win.h:31: error: syntax error before '*' token
  32. win.h:32: error: syntax error before '*' token
  33. win.h:33: warning: type defaults to `int' in declaration of `get_widget'
  34. win.h:33: warning: data definition has no type or storage class
  35. win.h:36: error: syntax error before '*' token
  36. win.h:36: error: syntax error before '*' token
  37. win.h:36: warning: type defaults to `int' in declaration of `get_widget_window'
  38. win.h:36: warning: data definition has no type or storage class
  39. win.h:43: error: syntax error before '*' token
  40. win.h:49: error: syntax error before '*' token
  41. win.h:52: error: syntax error before '*' token
  42. win.h:53: error: syntax error before '*' token
  43. win.h:54: warning: type defaults to `int' in declaration of `create_pixmap'
  44. win.h:54: warning: data definition has no type or storage class
  45. win.h:56: error: syntax error before '*' token
  46. win.h:56: warning: type defaults to `int' in declaration of `create_sendWin'
  47. win.h:56: warning: data definition has no type or storage class
  48. win.h:57: error: syntax error before '*' token
  49. win.h:57: warning: type defaults to `int' in declaration of `create_recvWin'
  50. win.h:57: warning: data definition has no type or storage class
  51. win.h:58: error: syntax error before '*' token
  52. win.h:58: warning: type defaults to `int' in declaration of `create_logWin'
  53. win.h:58: warning: data definition has no type or storage class
  54. win.h:59: error: syntax error before '*' token
  55. win.h:59: error: syntax error before '*' token
  56. win.h:59: warning: type defaults to `int' in declaration of `create_buttonWin'
  57. win.h:59: warning: data definition has no type or storage class
  58. win.h:60: error: syntax error before '*' token
  59. win.h:60: warning: type defaults to `int' in declaration of `create_kaifuWin'
  60. win.h:60: warning: data definition has no type or storage class
  61. win.h:61: error: syntax error before '*' token
  62. win.h:61: warning: type defaults to `int' in declaration of `create_popupmenu_fuzai'
  63. win.h:61: warning: data definition has no type or storage class
  64. win.h:62: error: syntax error before '*' token
  65. win.h:62: error: syntax error before '*' token
  66. win.h:62: warning: type defaults to `int' in declaration of `create_menu_select_group'
  67. win.h:62: warning: data definition has no type or storage class
  68. win.h:63: error: syntax error before '*' token
  69. win.h:63: warning: type defaults to `int' in declaration of `create_mainmenu'
  70. win.h:63: warning: data definition has no type or storage class
  71. win.h:65: error: syntax error before '*' token
  72. win.h:65: warning: type defaults to `int' in declaration of `create_retry_win'
  73. win.h:65: warning: data definition has no type or storage class
  74. In file included from main.c:20:
  75. ipmsg.h:115: error: syntax error before "gchar"
  76. ipmsg.h:115: warning: no semicolon at end of struct or union
  77. ipmsg.h:116: warning: type defaults to `int' in declaration of `machine'
  78. ipmsg.h:116: warning: data definition has no type or storage class
  79. ipmsg.h:117: error: syntax error before '*' token
  80. ipmsg.h:117: warning: type defaults to `int' in declaration of `user'
  81. ipmsg.h:117: warning: data definition has no type or storage class
  82. ipmsg.h:118: error: syntax error before '*' token
  83. ipmsg.h:118: warning: type defaults to `int' in declaration of `group'
  84. ipmsg.h:118: warning: data definition has no type or storage class
  85. ipmsg.h:119: error: syntax error before "recv"
  86. ipmsg.h:119: warning: type defaults to `int' in declaration of `recv'
  87. ipmsg.h:119: error: 'recv' redeclared as different kind of symbol
  88. /usr/include/sys/socket.h:143: error: previous declaration of 'recv' was here
  89. ipmsg.h:119: error: 'recv' redeclared as different kind of symbol
  90. /usr/include/sys/socket.h:143: error: previous declaration of 'recv' was here
  91. ipmsg.h:119: warning: data definition has no type or storage class
  92. ipmsg.h:120: error: syntax error before "send"
  93. ipmsg.h:120: warning: type defaults to `int' in declaration of `send'
  94. ipmsg.h:120: error: 'send' redeclared as different kind of symbol
  95. /usr/include/sys/socket.h:136: error: previous declaration of 'send' was here
  96. ipmsg.h:120: error: 'send' redeclared as different kind of symbol
  97. /usr/include/sys/socket.h:136: error: previous declaration of 'send' was here
  98. ipmsg.h:120: warning: data definition has no type or storage class
  99. ipmsg.h:121: error: syntax error before "dialup"
  100. ipmsg.h:121: warning: type defaults to `int' in declaration of `dialup'
  101. ipmsg.h:121: warning: data definition has no type or storage class
  102. ipmsg.h:123: error: syntax error before '}' token
  103. ipmsg.h:123: warning: type defaults to `int' in declaration of `IPMsgList'
  104. ipmsg.h:123: warning: data definition has no type or storage class
  105. ipmsg.h:126: error: syntax error before "gint"
  106. ipmsg.h:126: warning: no semicolon at end of struct or union
  107. ipmsg.h:135: warning: type defaults to `int' in declaration of `serial'
  108. ipmsg.h:135: warning: data definition has no type or storage class
  109. ipmsg.h:136: error: syntax error before '*' token
  110. ipmsg.h:136: warning: type defaults to `int' in declaration of `user'
  111. ipmsg.h:136: warning: data definition has no type or storage class
  112. ipmsg.h:137: error: syntax error before '*' token
  113. ipmsg.h:137: warning: type defaults to `int' in declaration of `machine'
  114. ipmsg.h:137: warning: data definition has no type or storage class
  115. ipmsg.h:138: error: syntax error before '*' token
  116. ipmsg.h:138: warning: type defaults to `int' in declaration of `group'
  117. ipmsg.h:138: warning: data definition has no type or storage class
  118. ipmsg.h:139: error: syntax error before "com"
  119. ipmsg.h:139: warning: type defaults to `int' in declaration of `com'
  120. ipmsg.h:139: warning: type defaults to `int' in declaration of `com2'
  121. ipmsg.h:139: warning: data definition has no type or storage class
  122. ipmsg.h:140: error: syntax error before '*' token
  123. ipmsg.h:140: warning: type defaults to `int' in declaration of `appendix'
  124. ipmsg.h:140: warning: data definition has no type or storage class
  125. ipmsg.h:142: error: syntax error before '}' token
  126. ipmsg.h:142: warning: type defaults to `int' in declaration of `IPMsgMessage'
  127. ipmsg.h:142: warning: data definition has no type or storage class
  128. ipmsg.h:145: error: syntax error before "guint"
  129. ipmsg.h:145: warning: no semicolon at end of struct or union
  130. ipmsg.h:151: error: syntax error before '*' token
  131. ipmsg.h:151: warning: type defaults to `int' in declaration of `user'
  132. ipmsg.h:151: warning: data definition has no type or storage class
  133. ipmsg.h:152: error: syntax error before '*' token
  134. ipmsg.h:152: warning: type defaults to `int' in declaration of `machine'
  135. ipmsg.h:152: warning: data definition has no type or storage class
  136. ipmsg.h:154: error: syntax error before "com"
  137. ipmsg.h:154: warning: type defaults to `int' in declaration of `com'
  138. ipmsg.h:154: warning: data definition has no type or storage class
  139. ipmsg.h:155: error: syntax error before '*' token
  140. ipmsg.h:155: warning: type defaults to `int' in declaration of `msg'
  141. ipmsg.h:155: warning: data definition has no type or storage class
  142. ipmsg.h:156: error: syntax error before "timeout_tag"
  143. ipmsg.h:156: warning: type defaults to `int' in declaration of `timeout_tag'
  144. ipmsg.h:156: warning: data definition has no type or storage class
  145. ipmsg.h:157: error: syntax error before "retry"
  146. ipmsg.h:157: warning: type defaults to `int' in declaration of `retry'
  147. ipmsg.h:157: warning: data definition has no type or storage class
  148. ipmsg.h:158: warning: type defaults to `int' in declaration of `IPMsgSentMsg'
  149. ipmsg.h:158: warning: data definition has no type or storage class
  150. ipmsg.h:162: error: syntax error before "guint"
  151. ipmsg.h:162: warning: no semicolon at end of struct or union
  152. ipmsg.h:163: warning: type defaults to `int' in declaration of `msg'
  153. ipmsg.h:163: warning: data definition has no type or storage class
  154. ipmsg.h:164: error: syntax error before '*' token
  155. ipmsg.h:164: warning: type defaults to `int' in declaration of `win'
  156. ipmsg.h:164: warning: data definition has no type or storage class
  157. ipmsg.h:165: error: syntax error before ':' token
  158. ipmsg.h:166: error: syntax error before ':' token
  159. ipmsg.h:167: warning: type defaults to `int' in declaration of `IPMsgReadMsgData'
  160. ipmsg.h:167: warning: data definition has no type or storage class
  161. ipmsg.h:176: error: syntax error before "port"
  162. ipmsg.h:180: error: syntax error before "data"
  163. ipmsg.h:181: error: syntax error before "IPMsgSend"
  164. ipmsg.h:181: error: syntax error before "guint32"
  165. ipmsg.h:181: warning: type defaults to `int' in declaration of `IPMsgSend'
  166. ipmsg.h:181: warning: data definition has no type or storage class
  167. ipmsg.h:182: error: syntax error before "com"
  168. ipmsg.h:183: error: syntax error before "IPMsgReSendData"
  169. ipmsg.h:183: error: syntax error before "dat"
  170. ipmsg.h:183: warning: type defaults to `int' in declaration of `IPMsgReSendData'
  171. ipmsg.h:183: warning: data definition has no type or storage class
  172. ipmsg.h:184: error: syntax error before "mode"
  173. ipmsg.h:186: error: syntax error before '*' token
  174. ipmsg.h:186: warning: type defaults to `int' in declaration of `IPMsgGetNickWithAbsence'
  175. ipmsg.h:186: warning: data definition has no type or storage class
  176. ipmsg.h:192: error: syntax error before '*' token
  177. ipmsg.h:193: error: syntax error before "guint32"
  178. ipmsg.h:200: error: syntax error before '*' token
  179. ipmsg.h:200: warning: type defaults to `int' in declaration of `IPMsgGetGroupList'
  180. ipmsg.h:200: warning: data definition has no type or storage class
  181. ipmsg.h:207: error: syntax error before "sendWin_clist_comp"
  182. ipmsg.h:207: error: syntax error before '*' token
  183. ipmsg.h:209: warning: type defaults to `int' in declaration of `sendWin_clist_comp'
  184. ipmsg.h:209: warning: data definition has no type or storage class
  185. ipmsg.h:219: error: syntax error before '*' token
  186. ipmsg.h:219: warning: type defaults to `int' in declaration of `IPMsgOpenSendWin'
  187. ipmsg.h:219: warning: data definition has no type or storage class
  188. ipmsg.h:224: error: syntax error before "IPMsgNonPopupTimeout"
  189. ipmsg.h:224: error: syntax error before "dat"
  190. ipmsg.h:224: warning: type defaults to `int' in declaration of `IPMsgNonPopupTimeout'
  191. ipmsg.h:224: warning: data definition has no type or storage class
  192. ipmsg.h:232: error: syntax error before "nIPMsgNonPopup"
  193. ipmsg.h:232: warning: type defaults to `int' in declaration of `nIPMsgNonPopup'
  194. ipmsg.h:232: warning: data definition has no type or storage class
  195. In file included from main.c:21:
  196. sig.h:27: error: syntax error before '*' token
  197. sig.h:27: warning: type defaults to `int' in declaration of `winMain'
  198. sig.h:27: warning: data definition has no type or storage class
  199. sig.h:28: error: syntax error before '*' token
  200. sig.h:28: warning: type defaults to `int' in declaration of `winSend'
  201. sig.h:28: warning: data definition has no type or storage class
  202. sig.h:29: error: syntax error before '*' token
  203. sig.h:29: warning: type defaults to `int' in declaration of `winRecv'
  204. sig.h:29: warning: data definition has no type or storage class
  205. sig.h:30: error: syntax error before '*' token
  206. sig.h:30: warning: type defaults to `int' in declaration of `winAbout'
  207. sig.h:30: warning: data definition has no type or storage class
  208. sig.h:31: error: syntax error before '*' token
  209. sig.h:31: warning: type defaults to `int' in declaration of `winLog'
  210. sig.h:31: warning: data definition has no type or storage class
  211. sig.h:32: error: syntax error before '*' token
  212. sig.h:32: warning: type defaults to `int' in declaration of `menu_select_group_sendUserList'
  213. sig.h:32: warning: data definition has no type or storage class
  214. sig.h:37: error: syntax error before '*' token
  215. sig.h:41: error: syntax error before "on_sendWin_key_press_event"
  216. sig.h:41: error: syntax error before '*' token
  217. sig.h:43: warning: type defaults to `int' in declaration of `on_sendWin_key_press_event'
  218. sig.h:43: warning: data definition has no type or storage class
  219. sig.h:46: error: syntax error before "on_sendWinEv_button_press_event"
  220. sig.h:46: error: syntax error before '*' token
  221. sig.h:48: warning: type defaults to `int' in declaration of `on_sendWinEv_button_press_event'
  222. sig.h:48: warning: data definition has no type or storage class
  223. sig.h:51: error: syntax error before '*' token
  224. sig.h:55: error: syntax error before '*' token
  225. sig.h:59: error: syntax error before '*' token
  226. sig.h:63: error: syntax error before '*' token
  227. sig.h:67: error: syntax error before '*' token
  228. sig.h:71: error: syntax error before '*' token
  229. sig.h:75: error: syntax error before '*' token
  230. sig.h:79: error: syntax error before '*' token
  231. sig.h:83: error: syntax error before '*' token
  232. sig.h:87: error: syntax error before '*' token
  233. sig.h:92: error: syntax error before "on_sendUserList_button_press_event"
  234. sig.h:92: error: syntax error before '*' token
  235. sig.h:94: warning: type defaults to `int' in declaration of `on_sendUserList_button_press_event'
  236. sig.h:94: warning: data definition has no type or storage class
  237. sig.h:97: error: syntax error before "on_menu_select_group_cb"
  238. sig.h:97: error: syntax error before '*' token
  239. sig.h:97: warning: type defaults to `int' in declaration of `on_menu_select_group_cb'
  240. sig.h:97: warning: data definition has no type or storage class
  241. sig.h:101: error: syntax error before '*' token
  242. sig.h:105: error: syntax error before "on_buttonWin_delete_event"
  243. sig.h:105: error: syntax error before '*' token
  244. sig.h:107: warning: type defaults to `int' in declaration of `on_buttonWin_delete_event'
  245. sig.h:107: warning: data definition has no type or storage class
  246. sig.h:110: error: syntax error before "on_buttonWin_button_press_event"
  247. sig.h:110: error: syntax error before '*' token
  248. sig.h:112: warning: type defaults to `int' in declaration of `on_buttonWin_button_press_event'
  249. sig.h:112: warning: data definition has no type or storage class
  250. sig.h:115: error: syntax error before "on_buttonWin_button_press_event"
  251. sig.h:115: error: syntax error before '*' token
  252. sig.h:117: warning: type defaults to `int' in declaration of `on_buttonWin_button_press_event'
  253. sig.h:117: warning: data definition has no type or storage class
  254. sig.h:120: error: syntax error before '*' token
  255. sig.h:124: error: syntax error before '*' token
  256. sig.h:129: error: syntax error before '*' token
  257. sig.h:133: error: syntax error before "on_buttonWin_button_press_event"
  258. sig.h:133: error: syntax error before '*' token
  259. sig.h:135: warning: type defaults to `int' in declaration of `on_buttonWin_button_press_event'
  260. sig.h:135: warning: data definition has no type or storage class
  261. sig.h:138: error: syntax error before '*' token
  262. sig.h:143: error: syntax error before "on_buttonWinEv_key_press_event"
  263. sig.h:143: error: syntax error before '*' token
  264. sig.h:145: warning: type defaults to `int' in declaration of `on_buttonWinEv_key_press_event'
  265. sig.h:145: warning: data definition has no type or storage class
  266. sig.h:148: error: syntax error before "on_buttonWinEv_button_press_event"
  267. sig.h:148: error: syntax error before '*' token
  268. sig.h:150: warning: type defaults to `int' in declaration of `on_buttonWinEv_button_press_event'
  269. sig.h:150: warning: data definition has no type or storage class
  270. sig.h:153: error: syntax error before '*' token
  271. sig.h:157: error: syntax error before "on_logWin_delete_event"
  272. sig.h:157: error: syntax error before '*' token
  273. sig.h:159: warning: type defaults to `int' in declaration of `on_logWin_delete_event'
  274. sig.h:159: warning: data definition has no type or storage class
  275. sig.h:162: error: syntax error before '*' token
  276. sig.h:167: error: syntax error before '*' token
  277. sig.h:171: error: syntax error before '*' token
  278. sig.h:180: error: syntax error before "on_popupmenu_fuzai_cb"
  279. sig.h:180: error: syntax error before "user_data"
  280. sig.h:180: warning: type defaults to `int' in declaration of `on_popupmenu_fuzai_cb'
  281. sig.h:180: warning: data definition has no type or storage class
  282. sig.h:183: error: syntax error before "user_data"
  283. sig.h:186: error: syntax error before "user_data"
  284. sig.h:189: error: syntax error before "user_data"
  285. sig.h:197: error: syntax error before '*' token
  286. sig.h:200: error: syntax error before '*' token
  287. sig.h:203: error: syntax error before '*' token
  288. main.c: In function `kill_exit_proc':
  289. main.c:63: warning: implicit declaration of function `alarm'
  290. main.c:64: warning: implicit declaration of function `exit'
  291. main.c:64: error: `EXIT_SUCCESS' undeclared (first use in this function)
  292. main.c:64: error: (Each undeclared identifier is reported only once
  293. main.c:64: error: for each function it appears in.)
  294. main.c: At top level:
  295. main.c:72: error: elements of array `popt_options' have incomplete type
  296. main.c:73: warning: excess elements in struct initializer
  297. main.c:73: warning: (near initialization for `popt_options[0]')
  298. main.c:73: warning: excess elements in struct initializer
  299. main.c:73: warning: (near initialization for `popt_options[0]')
  300. main.c:73: error: `POPT_ARG_STRING' undeclared here (not in a function)
  301. main.c:73: warning: excess elements in struct initializer
  302. main.c:73: warning: (near initialization for `popt_options[0]')
  303. main.c:73: error: invalid use of undefined type `struct OPTION_T'
  304. main.c:73: warning: excess elements in struct initializer
  305. main.c:73: warning: (near initialization for `popt_options[0]')
  306. main.c:73: warning: excess elements in struct initializer
  307. main.c:73: warning: (near initialization for `popt_options[0]')
  308. main.c:73: warning: implicit declaration of function `N_'
  309. main.c:73: warning: excess elements in struct initializer
  310. main.c:73: warning: (near initialization for `popt_options[0]')
  311. main.c:73: warning: excess elements in struct initializer
  312. main.c:73: warning: (near initialization for `popt_options[0]')
  313. main.c:74: warning: excess elements in struct initializer
  314. main.c:74: warning: (near initialization for `popt_options[1]')
  315. main.c:74: warning: excess elements in struct initializer
  316. main.c:74: warning: (near initialization for `popt_options[1]')
  317. main.c:74: warning: excess elements in struct initializer
  318. main.c:74: warning: (near initialization for `popt_options[1]')
  319. main.c:74: error: invalid use of undefined type `struct OPTION_T'
  320. main.c:74: warning: excess elements in struct initializer
  321. main.c:74: warning: (near initialization for `popt_options[1]')
  322. main.c:74: warning: excess elements in struct initializer
  323. main.c:74: warning: (near initialization for `popt_options[1]')
  324. main.c:74: warning: excess elements in struct initializer
  325. main.c:74: warning: (near initialization for `popt_options[1]')
  326. main.c:74: warning: excess elements in struct initializer
  327. main.c:74: warning: (near initialization for `popt_options[1]')
  328. main.c:76: warning: excess elements in struct initializer
  329. main.c:76: warning: (near initialization for `popt_options[2]')
  330. main.c:76: warning: excess elements in struct initializer
  331. main.c:76: warning: (near initialization for `popt_options[2]')
  332. main.c:76: error: `POPT_ARG_INT' undeclared here (not in a function)
  333. main.c:76: warning: excess elements in struct initializer
  334. main.c:76: warning: (near initialization for `popt_options[2]')
  335. main.c:76: error: invalid use of undefined type `struct OPTION_T'
  336. main.c:76: warning: excess elements in struct initializer
  337. main.c:76: warning: (near initialization for `popt_options[2]')
  338. main.c:76: warning: excess elements in struct initializer
  339. main.c:76: warning: (near initialization for `popt_options[2]')
  340. main.c:76: warning: excess elements in struct initializer
  341. main.c:76: warning: (near initialization for `popt_options[2]')
  342. main.c:76: warning: excess elements in struct initializer
  343. main.c:76: warning: (near initialization for `popt_options[2]')
  344. main.c:77: warning: excess elements in struct initializer
  345. main.c:77: warning: (near initialization for `popt_options[3]')
  346. main.c:77: warning: excess elements in struct initializer
  347. main.c:77: warning: (near initialization for `popt_options[3]')
  348. main.c:77: warning: excess elements in struct initializer
  349. main.c:77: warning: (near initialization for `popt_options[3]')
  350. main.c:77: error: invalid use of undefined type `struct OPTION_T'
  351. main.c:77: warning: excess elements in struct initializer
  352. main.c:77: warning: (near initialization for `popt_options[3]')
  353. main.c:77: warning: excess elements in struct initializer
  354. main.c:77: warning: (near initialization for `popt_options[3]')
  355. main.c:77: warning: excess elements in struct initializer
  356. main.c:77: warning: (near initialization for `popt_options[3]')
  357. main.c:77: warning: excess elements in struct initializer
  358. main.c:77: warning: (near initialization for `popt_options[3]')
  359. main.c:78: warning: excess elements in struct initializer
  360. main.c:78: warning: (near initialization for `popt_options[4]')
  361. main.c:78: warning: excess elements in struct initializer
  362. main.c:78: warning: (near initialization for `popt_options[4]')
  363. main.c:78: warning: excess elements in struct initializer
  364. main.c:78: warning: (near initialization for `popt_options[4]')
  365. main.c:78: warning: excess elements in struct initializer
  366. main.c:78: warning: (near initialization for `popt_options[4]')
  367. main.c:78: warning: excess elements in struct initializer
  368. main.c:78: warning: (near initialization for `popt_options[4]')
  369. main.c: In function `main_quit':
  370. main.c:107: warning: implicit declaration of function `gtk_main_quit'
  371. main.c: At top level:
  372. main.c:111: error: syntax error before "client_data"
  373. main.c:118: error: syntax error before '*' token
  374. main.c: In function `save_state':
  375. main.c:127: error: `TRUE' undeclared (first use in this function)
  376. main.c: At top level:
  377. main.c:131: error: syntax error before '*' token
  378. main.c:132: warning: return type defaults to `int'
  379. main.c: In function `newGnomeClient':
  380. main.c:133: error: `gchar' undeclared (first use in this function)
  381. main.c:133: error: syntax error before "buf"
  382. main.c:135: error: `GnomeClient' undeclared (first use in this function)
  383. main.c:135: error: `client' undeclared (first use in this function)
  384. main.c:137: warning: implicit declaration of function `gnome_client_new'
  385. main.c:142: warning: implicit declaration of function `getcwd'
  386. main.c:142: error: `buf' undeclared (first use in this function)
  387. main.c:143: warning: implicit declaration of function `gnome_client_set_current_directory'
  388. main.c:145: warning: implicit declaration of function `gtk_object_ref'
  389. main.c:145: warning: implicit declaration of function `GTK_OBJECT'
  390. main.c:146: warning: implicit declaration of function `gtk_object_sink'
  391. main.c:147: warning: implicit declaration of function `gtk_signal_connect'
  392. main.c:148: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
  393. main.c: In function `main':
  394. main.c:160: error: `GnomeClient' undeclared (first use in this function)
  395. main.c:160: error: `smClient' undeclared (first use in this function)
  396. main.c:162: error: syntax error before "gint"
  397. main.c:162: warning: no semicolon at end of struct or union
  398. main.c: At top level:
  399. main.c:163: warning: type defaults to `int' in declaration of `geom'
  400. main.c:163: warning: excess elements in scalar initializer
  401. main.c:163: warning: (near initialization for `geom')
  402. main.c:163: warning: excess elements in scalar initializer
  403. main.c:163: warning: (near initialization for `geom')
  404. main.c:163: warning: excess elements in scalar initializer
  405. main.c:163: warning: (near initialization for `geom')
  406. main.c:163: warning: data definition has no type or storage class
  407. main.c:164: error: syntax error before '*' token
  408. main.c:164: warning: type defaults to `int' in declaration of `app'
  409. main.c:164: warning: data definition has no type or storage class
  410. main.c:178: error: syntax error before string constant
  411. main.c:178: warning: type defaults to `int' in declaration of `bindtextdomain'
  412. main.c:178: warning: data definition has no type or storage class
  413. main.c:179: error: syntax error before string constant
  414. main.c:179: warning: type defaults to `int' in declaration of `textdomain'
  415. main.c:179: warning: data definition has no type or storage class
  416. main.c:189: warning: type defaults to `int' in declaration of `winMain'
  417. main.c:189: error: conflicting types for 'winMain'
  418. sig.h:27: error: previous declaration of 'winMain' was here
  419. main.c:189: warning: implicit declaration of function `gnome_app_new'
  420. main.c:189: warning: assignment makes pointer from integer without a cast
  421. main.c:189: warning: initialization makes integer from pointer without a cast
  422. main.c:189: error: initializer element is not constant
  423. main.c:189: warning: data definition has no type or storage class
  424. main.c:190: error: syntax error before '}' token
  425. main.c:191: warning: type defaults to `int' in declaration of `smClient'
  426. main.c:191: warning: initialization makes integer from pointer without a cast
  427. main.c:191: error: initializer element is not constant
  428. main.c:191: warning: data definition has no type or storage class
  429. main.c:192: error: syntax error before '(' token
  430. main.c:192: warning: type defaults to `int' in declaration of `gtk_signal_connect'
  431. main.c:198: error: syntax error before string constant
  432. main.c:198: warning: type defaults to `int' in declaration of `load_properties'
  433. main.c:198: error: conflicting types for 'load_properties'
  434. properties.h:38: error: previous declaration of 'load_properties' was here
  435. main.c:198: error: conflicting types for 'load_properties'
  436. properties.h:38: error: previous declaration of 'load_properties' was here
  437. main.c:198: warning: data definition has no type or storage class
  438. main.c:199: error: syntax error before '.' token
  439. main.c:199: warning: type defaults to `int' in declaration of `IPMsgSetup'
  440. main.c:199: error: conflicting types for 'IPMsgSetup'
  441. ipmsg.h:176: error: previous declaration of 'IPMsgSetup' was here
  442. main.c:199: error: conflicting types for 'IPMsgSetup'
  443. ipmsg.h:176: error: previous declaration of 'IPMsgSetup' was here
  444. main.c:199: warning: data definition has no type or storage class
  445. main.c:200: warning: type defaults to `int' in declaration of `create_buttonWin'
  446. main.c:200: warning: parameter names (without types) in function declaration
  447. main.c:200: error: conflicting types for 'create_buttonWin'
  448. win.h:59: error: previous declaration of 'create_buttonWin' was here
  449. main.c:200: error: conflicting types for 'create_buttonWin'
  450. win.h:59: error: previous declaration of 'create_buttonWin' was here
  451. main.c:200: warning: data definition has no type or storage class
  452. main.c:209: error: syntax error before '{' token
  453. main.c:212: error: syntax error before '.' token
  454. main.c:212: warning: type defaults to `int' in declaration of `gtk_widget_set_uposition'
  455. main.c:212: warning: data definition has no type or storage class
  456. main.c:216: error: syntax error before '.' token
  457. main.c:216: warning: type defaults to `int' in declaration of `gtk_widget_set_usize'
  458. main.c:216: warning: data definition has no type or storage class
  459. main.c:218: warning: type defaults to `int' in declaration of `gtk_widget_show_all'
  460. main.c:218: warning: parameter names (without types) in function declaration
  461. main.c:218: warning: data definition has no type or storage class
  462. main.c:219: error: syntax error before '(' token
  463. main.c:219: warning: type defaults to `int' in declaration of `gtk_widget_hide'
  464. main.c:221: warning: type defaults to `int' in declaration of `IPMsgLogin'
  465. main.c:221: error: conflicting types for 'IPMsgLogin'
  466. ipmsg.h:179: error: previous declaration of 'IPMsgLogin' was here
  467. main.c:221: error: conflicting types for 'IPMsgLogin'
  468. ipmsg.h:179: error: previous declaration of 'IPMsgLogin' was here
  469. main.c:221: warning: data definition has no type or storage class
  470. main.c:223: error: syntax error before numeric constant
  471. main.c:223: warning: type defaults to `int' in declaration of `signal'
  472. main.c:223: error: conflicting types for 'signal'
  473. /usr/include/signal.h:93: error: previous declaration of 'signal' was here
  474. main.c:223: error: conflicting types for 'signal'
  475. /usr/include/signal.h:93: error: previous declaration of 'signal' was here
  476. main.c:223: warning: data definition has no type or storage class
  477. main.c:224: error: syntax error before numeric constant
  478. main.c:224: warning: type defaults to `int' in declaration of `signal'
  479. main.c:224: warning: data definition has no type or storage class
  480. main.c:225: warning: type defaults to `int' in declaration of `atexit'
  481. main.c:225: warning: parameter names (without types) in function declaration
  482. main.c:225: warning: data definition has no type or storage class
  483. main.c:232: warning: type defaults to `int' in declaration of `gtk_main'
  484. main.c:232: warning: data definition has no type or storage class
  485. main.c:233: error: syntax error before "return"
  486. main.c:57: warning: 'exit_proc' defined but not used
  487. main.c:62: warning: 'kill_exit_proc' defined but not used
  488. main.c:68: warning: 'trap_usr1' defined but not used
  489. make[2]: *** [main.o] Error 1
  490. make[1]: *** [all-recursive] Error 1
  491. make: *** [all-recursive-am] Error 2
复制代码


为什么会提示找不到“gnome.h: No such file or directory”?
请成功编译的朋友给我指点,谢谢!

uname -a结果如下:
Linux localhost.localdomain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686 i686 i386 GNU/Linux
发表于 2006-7-18 22:28:42 | 显示全部楼层
。。。找一下系统里有没这样文件啊,再看看编译选项有没加上这个头文件路径
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-19 14:22:37 | 显示全部楼层
Post by windwiny
。。。找一下系统里有没这样文件啊,再看看编译选项有没加上这个头文件路径


弱问:一般这样的头文件在/usr下,怎样才能快速的查找这个文件呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-22 16:18:39 | 显示全部楼层
gipmsg编不过去了。
另外下载xipmsg(基于X 库的飞鸽传书),在我的开发环境中可以通过,但是xipmsg没有我想要的文件传输功能。

晕倒……
回复 支持 反对

使用道具 举报

发表于 2006-10-29 10:44:03 | 显示全部楼层
我在SLED10下,连configure都通不过!
总是提示:
checking for pthread_create in -lpthread... yes
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: GTK not installed
回复 支持 反对

使用道具 举报

发表于 2006-12-17 12:44:25 | 显示全部楼层
我也是和楼上一样的呀,怎么办呢?

configure: error: GTK not installed

uname-a
Linux est-ubuntu 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 GNU/Linux
回复 支持 反对

使用道具 举报

发表于 2006-12-17 14:02:04 | 显示全部楼层
在二进制发行版中从源代码编译需要对应的开发包,如带 -dev / -devel 的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表