Opened 12 years ago

Closed 5 years ago

#34098 closed defect (worksforme)

Cairo Build Issue

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

Description (last modified by mf2k (Frank Schima))

I tried installing Cairo and the build failed.

>> port clean cairo
>> port upgrade cairo
--->  Computing dependencies for cairo
--->  Fetching archive for cairo
--->  Attempting to fetch cairo-1.12.0_0+x11.darwin_10.x86_64.tgz from http://packages.macports.org/cairo
--->  Fetching cairo
--->  Verifying checksum(s) for cairo
--->  Extracting cairo
--->  Applying patches to cairo
--->  Configuring cairo
--->  Building cairo
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for cairo is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/main.log
Error: Unable to upgrade port: 1

Here is relevant part of the main.log:

-compatibility_version 11203 -current_version 11203.0 -Wl,-single_module
:info:build Undefined symbols:
:info:build   "_XauDisposeAuth", referenced from:
:info:build       __xcb_get_auth_info in libxcb.a(xcb_auth.o)
:info:build       __xcb_get_auth_info in libxcb.a(xcb_auth.o)
:info:build   "_XauGetBestAuthByAddr", referenced from:
:info:build       __xcb_get_auth_info in libxcb.a(xcb_auth.o)
:info:build   "_XdmcpWrap", referenced from:
:info:build       __xcb_get_auth_info in libxcb.a(xcb_auth.o)
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [libcairo.la] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.0/src'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.0/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.0'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.0'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.0" && /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for cairo): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for cairo is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/main.log

Any thoughts? Thanks!

Attachments (3)

main.log (13.3 KB) - added by bownan@… 12 years ago.
main.2.log (9.7 KB) - added by bownan@… 12 years ago.
main.3.log (506.1 KB) - added by bownan@… 12 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

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

comment:2 Changed 12 years ago by mf2k (Frank Schima)

In the future, please fill in the Port field, Cc the port maintainer(s), use WikiFormatting. Also please attach the complete main.log after cleaning the port.

Changed 12 years ago by bownan@…

Attachment: main.log added

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

The "Skipping completed" lines in that log show it was not a clean attempt. Please "sudo port clean cairo", then try again, then attach the new main.log.

comment:4 Changed 12 years ago by bownan@…

Sorry -- please find attached the updated main.log after a clean attempt

Changed 12 years ago by bownan@…

Attachment: main.2.log added

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

The new log contains a new error:

:info:configure checking whether build environment is sane... configure: error: newly created file is older than distributed files!
:info:configure Check your system clock

Can you do as it says and check your system clock? Ideally use network time synchronization with a reliable source, such as time.apple.com.

comment:6 Changed 12 years ago by bownan@…

Not sure what happened as the system time was synchronized. Anyway, i re-ran clean and upgrade again and have attached the latest main.log. Same issue as the initial post. Thanks for your help

Changed 12 years ago by bownan@…

Attachment: main.3.log added

comment:7 Changed 12 years ago by jmroot (Joshua Root)

The question is why libtool is choosing to use libxcb.a. Are you perhaps missing libxcb.dylib?

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

Resolution: worksforme
Status: newclosed

In the absence of any further information from the user, I'm going to guess that whatever was wrong with the user's xorg-libxcb was specific to the user's system and that they have resolved it, and there's nothing for us to fix here.

Note: See TracTickets for help on using tickets.