免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2332 | 回复: 2
打印 上一主题 下一主题

[FTP] proftp1.2.10在solaris10上不能make疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-03 16:06 |只看该作者 |倒序浏览
以下是在 make后出现的错误,搞不明白~望有心人指点~万分感谢

  1. # make
  2. echo \#define BUILD_STAMP \"`date`\" >;include/buildstamp.h
  3. cd lib/ && make lib
  4. make[1]: Entering directory `/Documents/proftpd-1.2.10/lib'
  5. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pr_fnmatch.c
  6. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c sstrncpy.c
  7. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c strsep.c
  8. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c vsnprintf.c
  9. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c glibc-glob.c
  10. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c glibc-hstrerror.c
  11. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c glibc-mkstemp.c
  12. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pr-syslog.c
  13. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c pwgrent.c
  14. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c getopt.c
  15. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c getopt1.c
  16. ar rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
  17. ranlib libsupp.a
  18. make[1]: Leaving directory `/Documents/proftpd-1.2.10/lib'
  19. cd src/ && make src
  20. make[1]: Entering directory `/Documents/proftpd-1.2.10/src'
  21. gcc  -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/mysql/include -O2 -Wall -c main.c
  22. In file included from /usr/include/sys/signal.h:34,
  23.                  from /usr/include/signal.h:26,
  24.                  from main.c:34:
  25. /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
  26. /usr/include/sys/siginfo.h:292: error: parse error before '}' token
  27. /usr/include/sys/siginfo.h:294: error: parse error before '}' token
  28. /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
  29. /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
  30. /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
  31. /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
  32. /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
  33. /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
  34. /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
  35. /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
  36. /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
  37. /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
  38. /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
  39. /usr/include/sys/siginfo.h:426: error: parse error before '}' token
  40. /usr/include/sys/siginfo.h:428: error: parse error before '}' token
  41. /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
  42. /usr/include/sys/siginfo.h:437: error: parse error before '}' token
  43. In file included from /usr/include/signal.h:26,
  44.                  from main.c:34:
  45. /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
  46. In file included from main.c:34:
  47. /usr/include/signal.h:111: error: parse error before "siginfo_t"
  48. /usr/include/signal.h:113: error: parse error before "siginfo_t"
  49. main.c: In function `shutdown_exit':
  50. main.c:470: warning: passing arg 2 of `signal' from incompatible pointer type
  51. main.c: In function `fork_server':
  52. main.c:1130: warning: passing arg 2 of `signal' from incompatible pointer type
  53. main.c:1131: warning: passing arg 2 of `signal' from incompatible pointer type
  54. main.c: In function `sig_rehash':
  55. main.c:1640: warning: passing arg 2 of `signal' from incompatible pointer type
  56. main.c: In function `sig_evnt':
  57. main.c:1645: warning: passing arg 2 of `signal' from incompatible pointer type
  58. main.c: In function `sig_child':
  59. main.c:1698: warning: passing arg 2 of `signal' from incompatible pointer type
  60. main.c: In function `handle_chld':
  61. main.c:1781: warning: implicit declaration of function `waitpid'
  62. main.c:1781: error: `WNOHANG' undeclared (first use in this function)
  63. main.c:1781: error: (Each undeclared identifier is reported only once
  64. main.c:1781: error: for each function it appears in.)
  65. main.c: In function `install_signal_handlers':
  66. main.c:1924: warning: passing arg 2 of `signal' from incompatible pointer type
  67. main.c:1925: warning: passing arg 2 of `signal' from incompatible pointer type
  68. main.c:1926: warning: passing arg 2 of `signal' from incompatible pointer type
  69. main.c:1927: warning: passing arg 2 of `signal' from incompatible pointer type
  70. main.c:1928: warning: passing arg 2 of `signal' from incompatible pointer type
  71. main.c:1929: warning: passing arg 2 of `signal' from incompatible pointer type
  72. main.c:1930: warning: passing arg 2 of `signal' from incompatible pointer type
  73. main.c:1931: warning: passing arg 2 of `signal' from incompatible pointer type
  74. main.c:1932: warning: passing arg 2 of `signal' from incompatible pointer type
  75. main.c:1933: warning: passing arg 2 of `signal' from incompatible pointer type
  76. main.c:1942: warning: passing arg 2 of `signal' from incompatible pointer type
  77. main.c:1944: warning: passing arg 2 of `signal' from incompatible pointer type
  78. make[1]: *** [main.o] Error 1
  79. make[1]: Leaving directory `/Documents/proftpd-1.2.10/src'
  80. make: *** [src] Error 2
复制代码

论坛徽章:
0
2 [报告]
发表于 2005-03-03 18:17 |只看该作者

proftp1.2.10在solaris10上不能make疑问

自己顶~原因是solaris 10使用gcc需要如下操作

cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/

Put the line SHELL=/bin/sh on the first line of the mkheaders.conf
file.  Then run

./mkheaders

论坛徽章:
0
3 [报告]
发表于 2005-03-04 10:39 |只看该作者

proftp1.2.10在solaris10上不能make疑问

不是GCC的问题 你用的是这个gcc-3.4.2-sol9-sparc-local
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP