Opened 13 years ago

Closed 12 years ago

#29927 closed defect (fixed)

nodejs 0.4.8 build failed

Reported by: nchubrich@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: nodejs

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Error: Target org.macports.build returned: shell command failed 
Error: Status 1 encountered during processing.

OS 10.6.7

XCode 3.2.6 64 Bit

Attachments (3)

main.log (25.2 KB) - added by nchubrich@… 13 years ago.
log file
main.2.log (194.4 KB) - added by nchubrich@… 13 years ago.
util.h (116 bytes) - added by nchubrich@… 13 years ago.

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by nchubrich@…

Attachment: main.log added

log file

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: nodejs build failed removed
Owner: changed from macports-tickets@… to ceager@…

It builds fine for me. Can you clean and try again? The log you attached is incomplete.

sudo port clean nodejs
sudo port install nodejs

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from ceager@… to ciserlohn@…

Is this still a problem with nodejs 0.4.10? If so please attach the complete new main.log file.

comment:3 Changed 13 years ago by ci42

@nchubrich@… Thanks for your feedback. Please use the ticket for all communication and do not email me directly (I receive an email anyway if you change the ticket). Otherwise others interested in or affected by this defect can not follow the progress, give hints etc.

According to the console output you sent me, your port definitions are not up to date:

nchubrich-mbair:~ nchubrich$ sudo port install nodejs
Warning: port definitions are more than two weeks old, consider using selfupdate

--->  Computing dependencies for nodejs
--->  Fetching nodejs
--->  Verifying checksum(s) for nodejs
--->  Extracting nodejs
--->  Applying patches to nodejs
--->  Configuring nodejs
--->  Building nodejs
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for nodejs is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nodejs/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Please update them and try again:

$ sudo port selfupdate
$ sudo port clean nodejs
$ sudo port install nodejs

If the build still fails, please attach the log file to this ticket and also the output of the following two commands:

$ find /opt/local/include -name "util.h"
$ find /Developer -name "util.h"

(I assume you have installed macports and Xcode in the standard directories, otherwise replace '/opt/local/' with your macports installation directory and '/Developer' with your Xcode installation directory.)

Changed 13 years ago by nchubrich@…

Attachment: main.2.log added

Changed 13 years ago by nchubrich@…

Attachment: util.h added

comment:4 Changed 13 years ago by nchubrich@…

It still failed with the same error message. I've attached the log. The find command:

find /Developer -name "util.h"
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/util.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/util.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/util.h
/Developer/SDKs/MacOSX10.5.sdk/usr/include/util.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/util.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0/util.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/util.h
find /opt/local/include -name "util.h"
/opt/local/include/util.h

comment:5 in reply to:  4 Changed 13 years ago by ci42

Replying to nchubrich@…:

Ok, now I'm able to reproduce the build failure. The problem is that this header file:

/opt/local/include/util.h

installed by the libutilpftp port conflicts with these header files (the last one in your case as you build on 10.6):

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/util.h
/Developer/SDKs/MacOSX10.5.sdk/usr/include/util.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/util.h

libpftputil is normally installed as a dependency of pftp. Please deactivate these ports while installing nodejs, you can reactivate them afterwards.

sudo port deactivate pftp libpftputil
sudo port install nodejs
sudo port activate pftp libpftputil

comment:6 Changed 13 years ago by ci42

Prevent installation if libpftputil is active in r82667.

comment:7 Changed 12 years ago by ci42

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.