Opened 13 years ago

Closed 12 years ago

Last modified 8 years ago

#29393 closed defect (fixed)

gdk-pixbuf2: loader does not recognize apple-red.png, thus gtk2 does not build

Reported by: mvondavier@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ak.ml@…, cooljeanius (Eric Gallager), ryandesign (Ryan Carsten Schmidt)
Port: gdk-pixbuf2 gtk2

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

Port command started with PID 18603
Computing dependencies for gtk2
Fetching gtk2
Attempting to fetch gtk+-2.24.4.tar.bz2 from ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/gtk+/2.24/
Verifying checksum(s) for gtk2
Extracting gtk2
Applying patches to gtk2
Configuring gtk2
Building gtk2
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for gtk2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Executing: /opt/local/bin/port install gtk2 +x11

from the log:

:info:build Making all in demos
:info:build /opt/local/bin/gdk-pixbuf-csource --raw --build-list		\
:info:build 	        apple_red  ./apple-red.png	\
:info:build                 gnome_foot ./gnome-foot.png	\
:info:build         > test-inline-pixbufs.h				\
:info:build 	|| (rm -f test-inline-pixbufs.h && false)
:info:build failed to load "./apple-red.png": Couldn't recognize the image file format for file './apple-red.png'
:info:build make[2]: *** [test-inline-pixbufs.h] Error 1
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/work/gtk+-2.24.4" && /usr/bin/make 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 gtk2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for gtk2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/main.log

Attachments (1)

main.log (1.7 MB) - added by mvondavier@… 13 years ago.
main.log as requested

Download all attachments as: .zip

Change History (16)

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

Description: modified (diff)
Port: gtk2 added

What computer, what OS version, and what version of Xcode?

Can you attach the complete main.log file?

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

Are your port definitions up to date, and are all installed ports up to date? If not, upgrade and try again.

sudo port clean gtk2
sudo port selfupdate
port outdated
sudo port upgrade outdated

Changed 13 years ago by mvondavier@…

Attachment: main.log added

main.log as requested

comment:3 Changed 13 years ago by mvondavier@…

Unfortunately, the same thing happens after selfupdate and upgrade outdated. All ports are up to date,

Hardware Overview:

  Model Name:	MacBook
  Model Identifier:	MacBook4,1
  Processor Name:	Intel Core 2 Duo
  Processor Speed:	2.4 GHz
  Number Of Processors:	1
  Total Number Of Cores:	2
  L2 Cache:	3 MB
  Memory:	4 GB
  Bus Speed:	800 MHz
  Boot ROM Version:	MB41.00C1.B00
  SMC Version (system):	1.31f1

comment:4 Changed 13 years ago by mvondavier@…

Also, OS is Snow Leopard 10.6.7 and Xcode is 3.2.6

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

Port: gdk-pixbuf2 added
Summary: gtk2 does not build, libpng does exist, put loader does not recognize apple-red.pnggdk-pixbuf2: loader does not recognize apple-red.png, thus gtk2 does not build

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

Owner: changed from macports-tickets@… to devans@…

comment:7 Changed 13 years ago by ak.ml@…

$ port -v installed gtk2 gdk-pixbuf2
The following ports are currently installed:
  gdk-pixbuf2 @2.22.1_1 platform='darwin 10' archs='x86_64'
  gdk-pixbuf2 @2.22.1_1+universal (active) platform='darwin 10' archs='i386 x86_64'
  gtk2 @2.24.5_0+universal+x11 (active) platform='darwin 10' archs='i386 x86_64'

The universal version (or just the i386 part) of gdk-pixbuf2 is broken.

The following command fails when gdk-pixbuf2 @2.22.1_1+universal is active but works when gdk-pixbuf2 @2.22.1_1 is active (both packages come from packages.macports.org)

$ cd "`port work gtk2`/gtk+-2.24.5-x86_64/demos"
$ /opt/local/bin/gdk-pixbuf-csource --raw --build-list \
apple_red  ./apple-red.png  \
gnome_foot ./gnome-foot.png \
> test-inline-pixbufs.h \
|| (rm -f test-inline-pixbufs.h && false)

I have a Macintel with 10.6.8.

comment:8 Changed 13 years ago by ak.ml@…

Cc: ak.ml@… added

Cc Me!

comment:9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

This also happens on Tiger/i386 if apple-gcc42 is set as the default compiler. It looks like this is an issue with gcc-4.2 and i386.

comment:10 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

Ok, I think the issue here was that libgio in glib2 was incorrectly built. Simply rebuilding glib2 was insufficient. I needed to rebuild gdk-pixbuf2 against the fixed glib2. I fixed glib2 in r91791 and bumped gdk-pixbuf2 to force a rebuild in r91792.

comment:11 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:12 Changed 11 years ago by cooljeanius (Eric Gallager)

When were these patches removed? Trying to view the latest revisions of each of the patches gives me a trac error...

(asking because this issue came up on the mailing lists again: https://lists.macosforge.org/pipermail/macports-users/2013-August/033241.html. Also I've been running into the same error with Homebrew: https://github.com/mxcl/homebrew/issues/21938)

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:13 in reply to:  12 ; Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to egall@…:

When were these patches removed?

r91990

comment:14 in reply to:  13 ; Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to larryv@…:

Replying to egall@…:

When were these patches removed?

r91990

Thanks. Anyways, hm... Ryan didn't seem to mention why he removed them... I'm assuming it's because they must've been integrated upstream or something?

Edit: could someone put him on cc for this?

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:15 in reply to:  14 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to egall@…:

Replying to larryv@…:

Replying to egall@…:

When were these patches removed?

r91990

Thanks. Anyways, hm... Ryan didn't seem to mention why he removed them... I'm assuming it's because they must've been integrated upstream or something?

That is what I am assuming as well, but it is 2 years ago now and I don't remember.

Note: See TracTickets for help on using tickets.