nodejs / node-v0.x-archive

Moved to https://github.com/nodejs/node
34.44k stars 7.31k forks source link

make fails on CentOS 4.8 #334

Closed pascalopitz closed 13 years ago

pascalopitz commented 13 years ago

I tried the usual ./configure, make, make install, but it cops out with error:

Build failed:  -> task failed (err #1): 
    {task: cxx platform_linux.cc -> platform_linux_4.o}
make: *** [all] Error 1

http://gist.github.com/617023

ry commented 13 years ago

Strange! Can you find out where PR_SET_NAME is defined on your system? grep -R PR_SET_NAME /usr

pascalopitz commented 13 years ago

I forgot to mention, it's a CPANEL Vhost. Below the grep output:

[root@vps pascal]# grep -R PR_SET_NAME /usr
grep: warning: /usr/lib/perl5/5.6.2/i686-linux/CORE/auto: recursive directory loop

grep: /usr/lib/libGLU.so: No such file or directory
grep: /usr/X11R6/lib/libGLU.so: No such file or directory
grep: /usr/bin/authconfig: No such file or directory
grep: /usr/bin/setup: No such file or directory
grep: /usr/tmp/mysql.sock: No such device or address
grep: /usr/tmp/.font-unix/fs7100: No such device or address
grep: /usr/local/lib/mysql.sock: No such device or address
grep: /usr/local/cpanel/whostmgr/kb/inbox: No such file or directory
grep: /usr/local/cpanel/whostmgr/kb/webmail: No such file or directory
grep: /usr/local/cpanel/base/webmail/xmail/mail/live_autores_list.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/xmail/mail/dodelfwdconfirm.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/xmail/css: No such file or directory
grep: /usr/local/cpanel/base/webmail/x2/mail/live_autores_list.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x2/mail/dodelfwdconfirm.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x2/css: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3mail/mail/live_autores_list.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3mail/mail/pops-css.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3mail/security/manage-security.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3mail/security/landing.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3/mail/live_autores_list.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3/mail/pops-css.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3/security/manage-security.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x3/security/landing.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x/mail/live_autores_list.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x/mail/dodelfwdconfirm.html: No such file or directory
grep: /usr/local/cpanel/base/webmail/x/css: No such file or directory
grep: /usr/local/cpanel/base/ujs: No such file or directory
grep: /usr/local/cpanel/base/uicons: No such file or directory
grep: /usr/local/cpanel/base/frontend/xmail/manpage.html: No such file or directory
grep: /usr/local/cpanel/base/frontend/x2/search: No such file or directory
grep: /usr/local/cpanel/base/frontend/x3mail/branding/falltheme/top-logo.png: No such file or directory
grep: /usr/local/cpanel/base/frontend/x3mail/branding/business2business/top-logo.png: No such file or directory
grep: /usr/local/cpanel/base/frontend/x3mail/branding/crimson_smoke/top-logo.png: No such file or directory
grep: /usr/local/cpanel/base/frontend/x3mail/branding/clocks/top-logo.png: No such file or directory
grep: /usr/local/cpanel/base/frontend/x3mail/branding/tealmadness/top-logo.png: No such file or directory
grep: /usr/local/cpanel/base/frontend/x3mail/branding/servers/top-logo.png: No such file or directory
grep: warning: /usr/local/cpanel/perl/auto: recursive directory loop

grep: /usr/local/apache/logs/fpcgisock: No such device or address
grep: warning: /usr/local/ssl: recursive directory loop

grep: /usr/include/mpool.h: No such file or directory
grep: /usr/include/ndbm.h: No such file or directory
[root@vps pascal]# 
pascalopitz commented 13 years ago

Had a read up on that.

http://www.kernel.org/doc/man-pages/online/pages/man2/prctl.2.html

Does PR_SET_NAME only come since Linux Kernel Linux 2.6.9?

[pascal@vps ~]$ uname -r
2.6.18-028stab070.5
ry commented 13 years ago

but your computer is 2.6.18...

pascalopitz commented 13 years ago

exactly, that's what I thought might be the reason that it isn't set. I'll set up a CentOS 4.8 VM from scratch and try and compile it on there, to see whether it's a general centOS issue. Will report back when done.

pascalopitz commented 13 years ago

Same problem, even though the VM I created had PR_SET_NAME and a different kernel version.

Waf: Leaving directory `/root/node-v0.2.3/build'
Build failed: -> task failed (err #1):
{task: cxx platform_linux.cc -> platform_linux_4.o}
make: *** [all] Error 1
[root@localhost node-v0.2.3]# uname -r
2.6.9-89.ELsmp
[root@localhost node-v0.2.3]# grep -R PR_SET_NAME /usr
/usr/src/kernels/2.6.9-89.29.1.EL-i686/include/linux/prctl.h:#define PR_SET_NAME 15 /* Set process name */
[root@localhost node-v0.2.3]# python -V
Python 2.4.3
[root@localhost node-v0.2.3]# 

http://gist.github.com/618149

Hope this helps

sheikypoo commented 13 years ago

I think I am having the same problem and this way over my head. It could be my host.

http://www.binaryoptions.cominvest.org

pascalopitz commented 13 years ago

This is still an issue with 0.4.2:

https://gist.github.com/852915

pascalopitz commented 13 years ago

Oops, clicked "comment and close" instead of "comment". I am officially a moron!