安装tinyhttpd遇到的问题
来源:互联网 发布:ubuntu ssh 远程登录 编辑:程序博客网 时间:2024/05/17 01:56
andy@AndyMacBookPro:/usr/local/src/tinyhttpd$ makegcc -W -Wall -lsocket -lpthread -o httpd httpd.chttpd.c:437:52: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(httpd, (struct sockaddr *)&name, &namelen) == -1) ^~~~~~~~/usr/include/sys/socket.h:561:74: note: passing argument to parameter hereint getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^httpd.c:491:24: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &client_name_len); ^~~~~~~~~~~~~~~~/usr/include/sys/socket.h:555:69: note: passing argument to parameter hereint accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^httpd.c:495:40: warning: incompatible pointer types passing 'void (int)' to parameter of type 'void *(*)(void *)' [-Wincompatible-pointer-types] if (pthread_create(&newthread , NULL, accept_request, client_sock) != 0) ^~~~~~~~~~~~~~/usr/include/pthread.h:311:11: note: passing argument to parameter here void *(*)(void *), void * __restrict); ^httpd.c:495:56: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'void *' [-Wint-conversion] if (pthread_create(&newthread , NULL, accept_request, client_sock) != 0) ^~~~~~~~~~~/usr/include/pthread.h:311:39: note: passing argument to parameter here void *(*)(void *), void * __restrict); ^4 warnings generated.ld: library not found for -lsocketclang: error: linker command failed with exit code 1 (use -v to see invocation)make: *** [httpd] Error 1andy@AndyMacBookPro:/usr/local/src/tinyhttpd$
关于这个问题,在命令行使用:
xcode-select –install
然后会提示安装:
0 0
- 安装tinyhttpd遇到的问题
- 对 tinyhttpd 的理解
- tinyHttpd
- 安装vs2005遇到的问题
- 安装SQLServer2000遇到的问题
- 安装PB遇到的问题
- 安装vnc遇到的问题
- 安装 oracle遇到的问题
- 安装AutoCAD2007 遇到的问题
- 安装sqlserver遇到的问题
- 安装mysql遇到的问题
- 安装Apache遇到的问题
- 安装wine遇到的问题
- 安装CP210xVCP遇到的问题
- linux 安装遇到的问题
- 虚拟机安装遇到的问题
- 安装JDK遇到的问题
- 安装PGP10遇到的问题
- 函数实现strcmp.
- Sqlserver SET NOCOUNT ON不返回受影响行数
- Android中Parcelable接口用法
- Python Show-Me-the-Code 第 0012 题 替换敏感词
- 交互设计技巧——创造好的用户体验(2)(翻译)
- 安装tinyhttpd遇到的问题
- python入门笔记--循环(for...range\enumerate\zip)、列表推导
- 错误:HttpServlet was not found on the Java
- 类方法与对象方法
- 架构师都要懂哪些知识
- 调整mmecached的limi_maxbytes大小
- 交互设计技巧——创造好的用户体验(3)(翻译)
- PAT 1021. Deepest Root (25)
- spark standalone模式配置