Opened 15 years ago

Closed 15 years ago

#21710 closed defect (fixed)

cairo-1.8.8 not building under MacPorts 1.8.1, Snow Leopard 10.6.1

Reported by: lists@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: cairo

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

Trying to install R. Requires cairo, which fails as follows:

lydia:local pbw$ sudo port clean cairo
--->  Cleaning cairo
lydia:local pbw$ sudo port install cairo
--->  Computing dependencies for cairo
--->  Fetching cairo
--->  Verifying checksum(s) for cairo
--->  Extracting cairo
--->  Configuring cairo
--->  Building cairo
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/work/cairo-1.8.8" && /usr/bin/make -j2 all " returned error 2
Command output:   "_png_get_error_ptr", referenced from:
      _png_simple_warning_callback in cairo-png.o
      _png_simple_error_callback in cairo-png.o
      _stream_read_func in cairo-png.o
      _stream_write_func in cairo-png.o
      _stdio_read_func in cairo-png.o
      _stdio_write_func in cairo-png.o
  "_png_create_write_struct", referenced from:
      _write_png in cairo-png.o
  "_png_destroy_read_struct", referenced from:
      _read_png in cairo-png.o
  "_png_create_info_struct", referenced from:
      _read_png in cairo-png.o
      _write_png in cairo-png.o
  "_png_get_io_ptr", referenced from:
      _stream_read_func in cairo-png.o
      _stream_write_func in cairo-png.o
      _stdio_read_func in cairo-png.o
      _stdio_write_func in cairo-png.o
  "_png_set_read_user_transform_fn", referenced from:
      _read_png in cairo-png.o
      _read_png in cairo-png.o
  "_png_read_image", referenced from:
      _read_png in cairo-png.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libcairo.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Change History (2)

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

Cc: ryandesign@… added
Description: modified (diff)
Port: cairo added

It looks like your libpng is not built for the same architecture as your cairo. Perhaps you upgraded to Snow Leopard from Leopard and did not uninstall and reinstall all your ports? See the Migration page in the wiki. cairo works fine on Snow Leopard and every other OS version for me.

Also when filing a ticket please remember WikiFormatting.

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

Resolution: fixed
Status: newclosed

In r58514 I added a warning to the cairo and cairo-devel ports if the dependencies are not installed for the right architecture.

Note: See TracTickets for help on using tickets.