Rover12421's Blog

The End.

/usr/include/pthread.h:1116 问题解决了

一样的系统,一样的软件包,我装没问题,同事装就经常出问题。。。。。
编译apache,php,./configure过来,make就来问题

In file included from ./include/apr_portable.h:47,
from strings/apr_snprintf.c:23:
/usr/include/pthread.h:1116: error: stray ‘\221’ in program
/usr/include/pthread.h:1116: error: stray ‘\222’ in program

搞来两三天都没搞定,uuid编译没问题,apr,httpd,php都出问题,百度google了也没解决,真是郁闷。最后怀疑是不是pthread.h是不是真的出来问题。在虚拟机中把pthread.h拷出来放到那台有问题的机器里面,还真有用,先编译apr,成功了,再apache也成功了。真是舒畅啊…

Comments