joyent/node — Issue #2495: 0.6.7 make broken: src/unix/core.c: In function ‘uv__accept’
Author: QLeelulu
Created: 2012-01-09 08:03:51+00:00
State: open

0.6.7 make at centos 64 error.
0.6.6 is ok!

[root@web node-v0.6.7]# uname -a
Linux web 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

[root@web node-v0.6.7]# make
Waf: Entering directory `/root/node-v0.6.7/out'
DEST_OS: linux
DEST_CPU: x64
Parallel Jobs: 1
Product type: program
[ 4/35] uv: deps/uv/include/uv.h -> out/Release/deps/uv/uv.a
make[1]: Entering directory `/root/node-v0.6.7/out/Release/deps/uv'
rm -f src/ares/*.o
rm -f src/unix/ev/*.o
rm -f src/unix/eio/*.o
rm -f src/unix/*.o
rm -rf test/run-tests.dSYM run-benchmarks.dSYM
rm -f -f src/*.o *.a test/run-tests test/run-benchmarks
make[1]: Leaving directory `/root/node-v0.6.7/out/Release/deps/uv'
make[1]: Entering directory `/root/node-v0.6.7/out/Release/deps/uv'
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Isrc/ares/config_linux -Isrc -g -c src/unix/core.c -o src/unix/core.o
src/unix/core.c: In function ‘uv__accept’:
src/unix/core.c:739: 错误：‘SOCK_NONBLOCK’ 未声明 (在此函数内第一次使用)
src/unix/core.c:739: 错误：(即使在一个函数内多次出现，每个未声明的标识符在其
src/unix/core.c:739: 错误：所在的函数内只报告一次。)
src/unix/core.c:739: 错误：‘SOCK_CLOEXEC’ 未声明 (在此函数内第一次使用)
make[1]: *** [src/unix/core.o] 错误 1
make[1]: Leaving directory `/root/node-v0.6.7/out/Release/deps/uv'
Waf: Leaving directory `/root/node-v0.6.7/out'
Build failed: -> task failed (err #2):
{task: uv uv.h -> uv.a}

maybe is the same as this issue? -> https://github.com/joyent/node/issues/2319