Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Compilation Errors On CentOS 5.5 #2523

Closed
SteffanCline opened this issue Jan 12, 2012 · 2 comments
Closed

Compilation Errors On CentOS 5.5 #2523

SteffanCline opened this issue Jan 12, 2012 · 2 comments

Comments

@SteffanCline
Copy link

[root@xxx node-v0.6.7]# ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for gcc : ok
Checking for library dl : yes
Checking for openssl : yes
Checking for library util : yes
Checking for library rt : yes
Checking for fdatasync(2) with c++ : yes
'configure' finished successfully (1.408s)
[root@red node-v0.6.7]# make
Waf: Entering directory /home/etherpad/node-v0.6.7/out' DEST_OS: linux DEST_CPU: x64 Parallel Jobs: 1 Product type: program [ 1/35] copy: src/node_config.h.in -> out/Release/src/node_config.h [ 2/35] cc: deps/http_parser/http_parser.c -> out/Release/deps/http_parser/http_parser_3.o /usr/bin/gcc -rdynamic -pthread -g -O3 -DHAVE_OPENSSL=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=1 -DARCH="x64" -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -IRelease/deps/http_parser -I../deps/http_parser ../deps/http_parser/http_parser.c -c -o Release/deps/http_parser/http_parser_3.o [ 3/35] src/node_natives.h: src/node.js lib/dgram.js lib/console.js lib/buffer.js lib/querystring.js lib/punycode.js lib/http.js lib/net.js lib/freelist.js lib/events.js lib/util.js lib/module.js lib/_debugger.js lib/assert.js lib/fs.js lib/child_process.js lib/os.js lib/readline.js lib/vm.js lib/url.js lib/tls.js lib/crypto.js lib/string_decoder.js lib/https.js lib/stream.js lib/dns.js lib/_linklist.js lib/buffer_ieee754.js lib/tty.js lib/cluster.js lib/repl.js lib/path.js lib/sys.js lib/timers.js lib/zlib.js lib/constants.js -> out/Release/src/node_natives.h [ 4/35] uv: deps/uv/include/uv.h -> out/Release/deps/uv/uv.a make[1]: Entering directory/home/etherpad/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 /home/etherpad/node-v0.6.7/out/Release/deps/uv' make[1]: Entering directory/home/etherpad/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: error: ‘SOCK_NONBLOCK’ undeclared (first use in this function)
src/unix/core.c:739: error: (Each undeclared identifier is reported only once
src/unix/core.c:739: error: for each function it appears in.)
src/unix/core.c:739: error: ‘SOCK_CLOEXEC’ undeclared (first use in this function)
make[1]: *
* [src/unix/core.o] Error 1
make[1]: Leaving directory /home/etherpad/node-v0.6.7/out/Release/deps/uv' Waf: Leaving directory/home/etherpad/node-v0.6.7/out'
Build failed: -> task failed (err #2):
{task: uv uv.h -> uv.a}
make: *** [program] Error 1

Suggestions?

Thanks,
Steffan

@yeysus
Copy link

yeysus commented Jan 12, 2012

It looks like the same issue, 2484, I had with CentOS 5.7; look here for a fix: #2484

@SteffanCline
Copy link
Author

I was able to finally get it to install by using the CentOS repo here:
http://nodejs.tchol.org/
I also used remi's repos to get cutting edge on some of the other things. After this, I got it to install fine on 5.5/7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants