Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#38273 closed defect (invalid)

graphviz: build fails when ApplicationServices framework is damaged

Reported by: jinlei.phys@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: graphviz

Description (last modified by larryv (Lawrence Velázquez))

when I was installed graphviz, the following errors happened

sudo port install graphviz
--->  Computing dependencies for graphviz
--->  Fetching archive for graphviz
--->  Attempting to fetch graphviz-2.30.1_0+pangocairo+x11.darwin_12.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/graphviz
--->  Attempting to fetch graphviz-2.30.1_0+pangocairo+x11.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/graphviz
--->  Attempting to fetch graphviz-2.30.1_0+pangocairo+x11.darwin_12.x86_64.tbz2 from http://packages.macports.org/graphviz
--->  Fetching distfiles for graphviz
--->  Verifying checksum(s) for graphviz
--->  Extracting graphviz
--->  Configuring graphviz
--->  Building graphviz
Error: org.macports.build for port graphviz returned: command execution failed
Please see the log file for port graphviz for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_graphviz/graphviz/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port graphviz failed

Attachments (2)

main.log (591.2 KB) - added by jinlei.phys@… 11 years ago.
Headers.zip (1.3 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers from 10.8.2

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by jinlei.phys@…

Attachment: main.log added

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: graphviz added

Thanks for the ticket. In the future, please Cc any port maintainers, and use WikiFormatting in your ticket descriptions.

comment:2 Changed 11 years ago by jinlei.phys@…

Cc: jinlei.phys@… added

Cc Me!

comment:3 Changed 11 years ago by jinlei.phys@…

Cc: jinlei.phys@… removed

Cc Me!

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

The log says:

:info:build In file included from gvplugin_quartz.c:20:
:info:build ./gvplugin_quartz.h:22:10: fatal error: 'ApplicationServices/ApplicationServices.h' file not found
:info:build #include <ApplicationServices/ApplicationServices.h>
:info:build          ^

ApplicationServices is a standard and essential part of OS X. Does /System/Library/Frameworks/ApplicationServices.framework exist? If not, restore it from your backups.

comment:5 in reply to:  4 Changed 11 years ago by jinlei.phys@…

Replying to ryandesign@…:

The log says:

:info:build In file included from gvplugin_quartz.c:20:
:info:build ./gvplugin_quartz.h:22:10: fatal error: 'ApplicationServices/ApplicationServices.h' file not found
:info:build #include <ApplicationServices/ApplicationServices.h>
:info:build          ^

ApplicationServices is a standard and essential part of OS X. Does /System/Library/Frameworks/ApplicationServices.framework exist? If not, restore it from your backups.

yes, I think the /System/Library/Frameworks/ApplicationServices.framework exist.

bash-3.2# cd /System/Library/Frameworks/ApplicationServices.framework
bash-3.2# ls
ApplicationServices	Resources
Frameworks		Versions
bash-3.2# pwd
/System/Library/Frameworks/ApplicationServices.framework

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

You're missing the Headers directory, which is consistent with the error message that Graphviz couldn't find the ApplicationServices.h header:

$ cd /System/Library/Frameworks/ApplicationServices.framework
$ ls
ApplicationServices	Frameworks		Headers			Resources		Versions

Please restore it from your backups.

comment:7 in reply to:  6 Changed 11 years ago by jinlei.phys@…

Replying to ryandesign@…:

You're missing the Headers directory, which is consistent with the error message that Graphviz couldn't find the ApplicationServices.h header:

$ cd /System/Library/Frameworks/ApplicationServices.framework
$ ls
ApplicationServices	Frameworks		Headers			Resources		Versions

Please restore it from your backups.

Thank you for your reply.... But the problem is I don't have the backups.....

comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: org.macports.build for port graphviz returnedgraphviz: build fails when ApplicationServices framework is damaged

Headers is supposed to be a symlink to the Headers directory inside Versions/Current. So if only the symlink is missing, you could recreate it:

$ cd /System/Library/Frameworks/ApplicationServices.framework
$ sudo ln -s Versions/Current/Headers Headers

If that doesn't work, reinstall OS X; that should reinstall a correct ApplicationServices framework, and repair any other components of your OS that might be similarly damaged.

comment:9 in reply to:  8 Changed 11 years ago by jinlei.phys@…

Replying to ryandesign@…:

Headers is supposed to be a symlink to the Headers directory inside Versions/Current. So if only the symlink is missing, you could recreate it:

$ cd /System/Library/Frameworks/ApplicationServices.framework
$ sudo ln -s Versions/Current/Headers Headers

If that doesn't work, reinstall OS X; that should reinstall a correct ApplicationServices framework, and repair any other components of your OS that might be similarly damaged.

Thank you. I think my Headers file is missing

kintekiMacBook-Pro:~ jinlei$ cd /System/Library/Frameworks/ApplicationServices.framework
kintekiMacBook-Pro:ApplicationServices.framework jinlei$ cd Versions/Current/
kintekiMacBook-Pro:Current jinlei$ ls
ApplicationServices	Resources
Frameworks		_CodeSignature
kintekiMacBook-Pro:Current jinlei$ 

But I really don't want to reinstall OS X, Could you give me your Headers file and I use the command ?

sudo ln -s Versions/Current/Headers Headers

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Headers.zip added

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers from 10.8.2

comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

It's a folder, not a file. I've attached it to this ticket. Download, unzip, move it to /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers.

comment:11 in reply to:  10 Changed 11 years ago by jinlei.phys@…

Replying to ryandesign@…:

It's a folder, not a file. I've attached it to this ticket. Download, unzip, move it to /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers.

I think the ApplicationServices.h missing problem is solved. But it remind me there is another problem...

:info:build /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:24:10: fatal error: 'CoreServices/CoreServices.h' file not found

Why there are so many missing files in my computer? are there some software that I haven't installed cause this problem?

comment:12 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

I don't know why. The simplest fix will be to reinstall the OS. This should not adversely affect any of your user files.

comment:13 Changed 11 years ago by jmroot (Joshua Root)

% pkgutil --file-info /System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h
volume: /
path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h

pkgid: com.apple.pkg.DevSDKLeo
pkg-version: 4.0.0.9000000000.1.1306847324
install-time: 1359631277
uid: 0
gid: 0
mode: 644

So try reinstalling/upgrading the Xcode command line tools.

comment:14 in reply to:  13 Changed 11 years ago by jinlei.phys@…

Replying to jmr@…:

% pkgutil --file-info /System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h
volume: /
path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h

pkgid: com.apple.pkg.DevSDKLeo
pkg-version: 4.0.0.9000000000.1.1306847324
install-time: 1359631277
uid: 0
gid: 0
mode: 644

So try reinstalling/upgrading the Xcode command line tools.

Thank you. The problem is sloved

kintekiMacBook-Pro:~ jinlei$ sudo port install graphviz
--->  Computing dependencies for graphviz
--->  Fetching archive for graphviz
--->  Attempting to fetch graphviz-2.30.1_0+pangocairo+x11.darwin_12.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/graphviz
--->  Attempting to fetch graphviz-2.30.1_0+pangocairo+x11.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/graphviz
--->  Attempting to fetch graphviz-2.30.1_0+pangocairo+x11.darwin_12.x86_64.tbz2 from http://packages.macports.org/graphviz
--->  Fetching distfiles for graphviz
--->  Verifying checksum(s) for graphviz
--->  Extracting graphviz
--->  Configuring graphviz
--->  Building graphviz
--->  Staging graphviz into destroot
--->  Installing graphviz @2.30.1_0+pangocairo+x11
--->  Activating graphviz @2.30.1_0+pangocairo+x11
--->  Cleaning graphviz
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
Note: See TracTickets for help on using tickets.