Opened 10 years ago

Closed 10 years ago

#46565 closed defect (invalid)

cairo @1.14.0_0+quartz+x11- build failure

Reported by: yeroslaviz@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: cairo

Description

I am trying to install pkgconfig and keep getting stuck at the cairo. I am using macports 2.3.3 for Mac OS 10.10 I have already tried to clean and reinstall cairo several times. Here is the last log file after the last try:

version:1
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_cairo/cairo/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/cairo/work
:debug:clean changing euid/egid - current euid: 0 - current egid: 0
:debug:clean egid changed to: 501
:debug:clean euid changed to: 502
:debug:activate activate phase started at Thu Jan 15 11:31:41 CET 2015
:debug:activate Can't run activate on this port without elevated privileges. Escalating privileges back to root.
:debug:activate euid changed to: 0. egid changed to: 0.
:debug:activate Executing org.macports.activate (cairo)
:msg:activate --->  Activating cairo @1.14.0_0+quartz+x11
:debug:activate Using /usr/bin/tar
:debug:activate Using /usr/bin/bzip2
:info:activate x ./
:info:activate x ./+COMMENT
:info:activate x ./+CONTENTS
:info:activate x ./+DESC
:info:activate x ./+PORTFILE
:info:activate x ./+STATE
:info:activate x ./opt/
:info:activate x ./opt/local/
:info:activate x ./opt/local/bin/
:info:activate x ./opt/local/include/
:info:activate x ./opt/local/lib/
:info:activate x ./opt/local/share/
:info:activate x ./opt/local/share/gtk-doc/
:info:activate x ./opt/local/share/gtk-doc/html/
:info:activate x ./opt/local/share/gtk-doc/html/cairo/
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-errors.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-fonts.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-memory.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-overloading.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-path.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-patterns.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-return-values.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-streams.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/bindings-surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-cairo-t.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-drawing.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Error-handling.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-fonts.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Paths.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Regions.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-support.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-text.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Transformations.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Types.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Version-Information.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/cairo.devhelp2
:info:activate x ./opt/local/share/gtk-doc/html/cairo/home.png
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-1.10.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-1.12.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-1.2.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-1.4.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-1.6.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-1.8.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index-all.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/index.sgml
:info:activate x ./opt/local/share/gtk-doc/html/cairo/language-bindings.html
:info:activate x ./opt/local/share/gtk-doc/html/cairo/left.png
:info:activate x ./opt/local/share/gtk-doc/html/cairo/right.png
:info:activate x ./opt/local/share/gtk-doc/html/cairo/style.css
:info:activate x ./opt/local/share/gtk-doc/html/cairo/up.png
:info:activate x ./opt/local/lib/cairo/
:info:activate x ./opt/local/lib/libcairo-gobject.2.dylib
:info:activate x ./opt/local/lib/libcairo-gobject.a
:info:activate x ./opt/local/lib/libcairo-gobject.dylib
:info:activate x ./opt/local/lib/libcairo-script-interpreter.2.dylib
:info:activate x ./opt/local/lib/libcairo-script-interpreter.a
:info:activate x ./opt/local/lib/libcairo-script-interpreter.dylib
:info:activate x ./opt/local/lib/libcairo.2.dylib
:info:activate x ./opt/local/lib/libcairo.a
:info:activate x ./opt/local/lib/libcairo.dylib
:info:activate x ./opt/local/lib/pkgconfig/
:info:activate x ./opt/local/lib/pkgconfig/cairo-fc.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-ft.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-gobject.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-pdf.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-png.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-ps.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-quartz-font.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-quartz-image.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-quartz.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-script.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-svg.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-tee.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-xcb.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-xlib-xcb.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-xlib-xrender.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-xlib.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo-xml.pc
:info:activate x ./opt/local/lib/pkgconfig/cairo.pc
:info:activate x ./opt/local/lib/cairo/cairo-fdr.0.so
:info:activate x ./opt/local/lib/cairo/cairo-fdr.a
:info:activate x ./opt/local/lib/cairo/cairo-fdr.so
:info:activate x ./opt/local/lib/cairo/cairo-sphinx.0.so
:info:activate x ./opt/local/lib/cairo/cairo-sphinx.a
:info:activate x ./opt/local/lib/cairo/cairo-sphinx.so
:info:activate x ./opt/local/lib/cairo/libcairo-trace.0.dylib
:info:activate x ./opt/local/lib/cairo/libcairo-trace.a
:info:activate x ./opt/local/lib/cairo/libcairo-trace.dylib
:info:activate x ./opt/local/include/cairo/
:info:activate x ./opt/local/include/cairo/cairo-deprecated.h
:info:activate x ./opt/local/include/cairo/cairo-features.h
:info:activate x ./opt/local/include/cairo/cairo-ft.h
:info:activate x ./opt/local/include/cairo/cairo-gobject.h
:info:activate x ./opt/local/include/cairo/cairo-pdf.h
:info:activate x ./opt/local/include/cairo/cairo-ps.h
:info:activate x ./opt/local/include/cairo/cairo-quartz-image.h
:info:activate x ./opt/local/include/cairo/cairo-quartz.h
:info:activate x ./opt/local/include/cairo/cairo-script-interpreter.h
:info:activate x ./opt/local/include/cairo/cairo-script.h
:info:activate x ./opt/local/include/cairo/cairo-svg.h
:info:activate x ./opt/local/include/cairo/cairo-tee.h
:info:activate x ./opt/local/include/cairo/cairo-version.h
:info:activate x ./opt/local/include/cairo/cairo-xcb.h
:info:activate x ./opt/local/include/cairo/cairo-xlib-xrender.h
:info:activate x ./opt/local/include/cairo/cairo-xlib.h
:info:activate x ./opt/local/include/cairo/cairo-xml.h
:info:activate x ./opt/local/include/cairo/cairo.h
:info:activate x ./opt/local/bin/cairo-sphinx
:info:activate x ./opt/local/bin/cairo-trace
:error:activate org.macports.activate for port cairo returned: Image error: /opt/local/include/cairo/cairo-quartz.h already exists and does not belong to a registered port.  Unable to activate port cairo. Use 'port -f activate cairo' to force the activation.
:debug:activate Error code: registry::image-error
:debug:activate Backtrace: Image error: /opt/local/include/cairo/cairo-quartz.h already exists and does not belong to a registered port.  Unable to activate port cairo. Use 'port -f activate cairo' to force the activation.
    invoked from within
"throw registry::image-error "Image error: $file already exists and does not belong to a registered port.  Unable to activate port [$port name]. Use 'p..."
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to install links, we test if we can lst..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to instal..."
    invoked from within
"try {
        registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be ..."
    (procedure "_activate_contents" line 21)
    invoked from within
"_activate_contents $requested"
    (procedure "portimage::activate" line 57)
    invoked from within
"registry_activate $subport $version $revision $portvariants [array get user_options]"
    (procedure "portactivate::activate_main" line 4)
    invoked from within
"portactivate::activate_main org.macports.activate"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:error:activate Failed to install cairo
:debug:activate Image error: /opt/local/include/cairo/cairo-quartz.h already exists and does not belong to a registered port.  Unable to activate port cairo. Use 'port -f activate cairo' to force the activation.
    invoked from within
"throw registry::image-error "Image error: $file already exists and does not belong to a registered port.  Unable to activate port [$port name]. Use 'p..."
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to install links, we test if we can lst..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to instal..."
    invoked from within
"try {
        registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be ..."
    (procedure "_activate_contents" line 21)
    invoked from within
"_activate_contents $requested"
    (procedure "portimage::activate" line 57)
:notice:activate Please see the log file for port cairo for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_cairo/cairo/main.log

I would be happy for help.

thanks Assa

Change History (3)

comment:1 in reply to:  description ; Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: cairo mac yosemite removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: cairo added

Replying to yeroslaviz@…:

:debug:activate Image error: /opt/local/include/cairo/cairo-quartz.h already exists and does not belong to a registered port.  Unable to activate port cairo. Use 'port -f activate cairo' to force the activation.

Why does this file already exist on your system? Who or what put it there, since MacPorts does not think it did?

If you don't know, the safest solution is to uninstall all ports, and MacPorts itself, and remove /opt/local (after making copies of any configuration files or other files you wish to save), then reinstall MacPorts and the ports you want. That way, you can be sure /opt/local does not contain any files that should not be there.

Alternately, you can force the activation of cairo by running:

sudo port -f activate cairo

However, if you cannot explain why some of cairo's files were already on you system, who knows how many other ports' files are already on your system, unbeknownst to MacPorts, which may cause you further difficulties down the road. Simpler and safer to solve the problem the right way by removing MacPorts now, then reinstalling.

comment:2 in reply to:  1 Changed 10 years ago by yeroslaviz@…

thanks, this is what I did and it works great.

I was able to install the pkgconfig and Gtk2 library without a glitch.

Thanks for the help.

Assa

PS the ticket can be closed

Replying to ryandesign@…:

Replying to yeroslaviz@…:

:debug:activate Image error: /opt/local/include/cairo/cairo-quartz.h already exists and does not belong to a registered port.  Unable to activate port cairo. Use 'port -f activate cairo' to force the activation.

Why does this file already exist on your system? Who or what put it there, since MacPorts does not think it did?

If you don't know, the safest solution is to uninstall all ports, and MacPorts itself, and remove /opt/local (after making copies of any configuration files or other files you wish to save), then reinstall MacPorts and the ports you want. That way, you can be sure /opt/local does not contain any files that should not be there.

Alternately, you can force the activation of cairo by running:

sudo port -f activate cairo

However, if you cannot explain why some of cairo's files were already on you system, who knows how many other ports' files are already on your system, unbeknownst to MacPorts, which may cause you further difficulties down the road. Simpler and safer to solve the problem the right way by removing MacPorts now, then reinstalling.

Last edited 10 years ago by yeroslaviz@… (previous) (diff)

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

Resolution: invalid
Status: newclosed

Great, glad you got it working.

Note: See TracTickets for help on using tickets.