Opened 15 years ago

Closed 15 years ago

#21718 closed defect (fixed)

gimp-app fails to build 64-bit

Reported by: miken32 (Michael Newton) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: LP64 Cc: fredrik.karlsson84@…, brody1@…, trevor.bain@…, cesarlr@…, reutter@…, wouter.beek@…, mhlambert@…, swebster@…, dershow, andreas.wilm@…, jonathan.alvarsson@…, tehcog (tehcog), hypocrite@…, royliu@…, moisesguimaraesm@…, yitping.kok@…, ross@…, whcordis@…, henx@…, vikingjs@…, widenflycht@…, steve@…, sylgar@…, leingang, home.benfranklin@…, p.sacre@…, phriedrich, mas@…, lhunath@…, jonastidstrom@…, lyle2.0@…
Port: gimp-app

Description

Complete log attached; I suspect there are some Carbon things that need to be rewritten as Cocoa?

The following build commands failed:
ScriptExec:
	CompileC build/ScriptExec.build/Deployment/ScriptExec.build/Objects-normal/x86_64/main.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c normal x86_64 c com.apple.compilers.gcc.4_2
(1 failure)

Error: Status 1 encountered during processing.

Attachments (5)

gimp-app.log (6.2 KB) - added by miken32 (Michael Newton) 15 years ago.
install log for gimp-app
main.c (13.2 KB) - added by asgalon 15 years ago.
Fixed compilation errors for 64 bit version... Runs on MacOS 10.6.2
patch-Portfile.diff (1.3 KB) - added by royliu@… 15 years ago.
The Portfile diff.
patch-main.c.diff (3.7 KB) - added by royliu@… 15 years ago.
The diff to "main.c", per Peter's submission.
patch-Portfile.2.diff (859 bytes) - added by jagerman@… 15 years ago.
Updated version of royliu's Portfile patch to also work for the +quartz variant

Download all attachments as: .zip

Change History (54)

Changed 15 years ago by miken32 (Michael Newton)

Attachment: gimp-app.log added

install log for gimp-app

comment:1 Changed 15 years ago by jmroot (Joshua Root)

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

comment:2 Changed 15 years ago by fredrik.karlsson84@…

Cc: fredrik.karlsson84@… added

Cc Me!

comment:3 Changed 15 years ago by brody1@…

Cc: brody1@… added

Cc Me!

comment:4 Changed 15 years ago by trevor.bain@…

Cc: trevor.bain@… added

Cc Me!

comment:5 Changed 15 years ago by cesarlr@…

Cc: cesarlr@… added

Cc Me!

comment:6 Changed 15 years ago by reutter@…

Cc: reutter@… added

Cc Me!

comment:7 Changed 15 years ago by wouter.beek@…

Cc: wouter.beek@… added

Cc Me!

comment:8 Changed 15 years ago by mhlambert@…

Cc: mhlambert@… added

Cc Me!

comment:9 Changed 15 years ago by swebster@…

Cc: swebster@… added

Cc Me!

comment:10 Changed 15 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:11 Changed 15 years ago by andreas.wilm@…

Cc: andreas.wilm@… added

Cc Me!

comment:12 Changed 15 years ago by imkira@…

The problem is related to the use of ARCHS=x86_64 when calling xcodebuild.

I don't know if this is an "appropriate" fix (call it at least a workaround) but you could easily build gimp-app port by adding the following to your gimp-app portfile:

xcode.build.settings	ARCHS=i386

You can achieve this with the following command:

echo "xcode.build.settings	ARCHS=i386" >> "$(port dir gimp-app)/PortFile"

I do not know if it is possible to delete the definition of ARCHS when calling xcodebuild with macports (which also works for me), since ARCHS="" doesn't work, but I find that approach more appropriate.

comment:13 Changed 15 years ago by swebster@…

Does this workaround allow you to successfully build a 64-bit gimp-app? Or just a 32-bit?

comment:14 in reply to:  13 Changed 15 years ago by fredrik.karlsson84@…

Replying to swebster@…:

Does this workaround allow you to successfully build a 64-bit gimp-app? Or just a 32-bit?

pretty much seems like a 32bit-build, doesn't it?

comment:15 in reply to:  12 ; Changed 15 years ago by nikeios.the.morgoth@…

Replying to imkira@…:

echo "xcode.build.settings	ARCHS=i386" >> "$(port dir gimp-app)/PortFile"

It still doesn't compile for me... What can I have done wrong? (I double checked the Portfile and the option about going 32 bit it's there...)

comment:16 in reply to:  15 Changed 15 years ago by fredrik.karlsson84@…

Replying to nikeios.the.morgoth@…:

Replying to imkira@…:

echo "xcode.build.settings	ARCHS=i386" >> "$(port dir gimp-app)/PortFile"

It still doesn't compile for me... What can I have done wrong? (I double checked the Portfile and the option about going 32 bit it's there...)

as imkira said:

I don't know if this is an "appropriate" fix (call it at least a workaround) but you could easily build gimp-app port by adding the following to your gimp-app portfile:

(...)

I do not know if it is possible to delete the definition of ARCHS when calling xcodebuild with macports (which also works for me), since ARCHS="" doesn't work, but I find that approach more appropriate.

have you got a log or something to share? i haven't tried this, since it's only a workaround, not a fix. you still cannot compile gimp-app in 64bit (as far as i know)... and won't there be a problem to compile only gimp-app in 32bit when the rest is compiled in 64? i'd figure you'll have to compile all the dependencies in 32bit... or?

comment:17 Changed 15 years ago by imkira@…

Sorry guys, I would also prefer to have a 64bit build :) Since I was a bit in a hurry when I wanted to install gimp, I just made a temporary workaround in order to install the app and make some quick artwork.

nikeios.the.morgoth, I don't know much about macport's internals, but it is possible that macports doesn't detect the change to the Portfile after the compilation failed. Try to do the following (I hope it works):

sudo port clean gimp-app
sudo port patch gimp-app
sudo echo "xcode.build.settings ARCHS=i386" >> "$(port dir gimp-app)/PortFile"
sudo port install gimp-app

fredrik.karlsson84, you mean the error log during the compilation? Like I said, I haven't investigated too much but I would say that its some lack of support for 64bit Carbon, because of loads of "implicit declaration of function" lines pointing to what seem to be Carbon functions (I am not a Carbon coder too anyway, so I may be wrong here :)... The problem itself is only limited to the files included in gimp-app code. I mean, no dependencies are causing the problem.

comment:18 in reply to:  17 Changed 15 years ago by nikeios.the.morgoth@…

nikeios.the.morgoth, I don't know much about macport's internals

more than me anyway :P

I tried with you last suggestion and this is what I get

Ryuk:~ Elle$ sudo port clean gimp-app
--->  Cleaning gimp-app
Ryuk:~ Elle$ sudo port patch gimp-app
--->  Computing dependencies for gimp-app
--->  Fetching gimp-app
--->  Attempting to fetch ScriptExec.tar.gz from http://garr.dl.sourceforge.net/gimp-app
--->  Attempting to fetch gimp.app.skel.tar.gz from http://garr.dl.sourceforge.net/gimp-app
--->  Verifying checksum(s) for gimp-app
--->  Extracting gimp-app
Ryuk:~ Elle$ sudo echo "xcode.build.settings ARCHS=i386" >> "$(port dir gimp-app)/PortFile"
Ryuk:~ Elle$ sudo port -v install gimp-appPortfile changed since last build; discarding previous state.
--->  Computing dependencies for gimp-app..
--->  Building gimp2
/usr/bin/make  all-recursive
Making all in m4macros
make[2]: Nothing to be done for `all'.
Making all in tools
Making all in pdbgen
make[3]: Nothing to be done for `all-am'.
Making all in cursors
make[2]: Nothing to be done for `all'.
Making all in themes
Making all in Default
Making all in images
Making all in preferences
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
make[4]: Nothing to be done for `all-am'.
Making all in Small
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in po-libgimp
make[2]: Nothing to be done for `all'.
Making all in po-plug-ins
make[2]: Nothing to be done for `all'.
Making all in po-python
make[2]: Nothing to be done for `all'.
Making all in po-script-fu
make[2]: Nothing to be done for `all'.
Making all in po-tips
make[2]: Nothing to be done for `all'.
Making all in data
Making all in brushes
make[3]: Nothing to be done for `all'.
Making all in environ
make[3]: Nothing to be done for `all'.
Making all in gradients
make[3]: Nothing to be done for `all'.
Making all in images
make[3]: Nothing to be done for `all'.
Making all in interpreters
make[3]: Nothing to be done for `all'.
Making all in palettes
make[3]: Nothing to be done for `all'.
Making all in patterns
make[3]: Nothing to be done for `all'.
Making all in tips
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in desktop
make[2]: Nothing to be done for `all'.
Making all in menus
make[2]: Nothing to be done for `all'.
Making all in libgimpbase
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include -DPREFIX=\""/opt/local"\" -DGIMPDIR=\"".gimp-2.6"\" -DDATADIR=\""/opt/local/share/gimp/2.0"\" -DLOCALEDIR=\""/opt/local/share/locale"\" -DPLUGINDIR=\""/opt/local/lib/gimp/2.0"\" -DSYSCONFDIR=\""/opt/local/etc/gimp/2.0"\" -DGIMP_PACKAGE=\""gimp"\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimpcpuaccel.lo -MD -MP -MF .deps/gimpcpuaccel.Tpo -c -o gimpcpuaccel.lo gimpcpuaccel.c
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include -DPREFIX=\""/opt/local"\" -DGIMPDIR=\"".gimp-2.6"\" -DDATADIR=\""/opt/local/share/gimp/2.0"\" -DLOCALEDIR=\""/opt/local/share/locale"\" -DPLUGINDIR=\""/opt/local/lib/gimp/2.0"\" -DSYSCONFDIR=\""/opt/local/etc/gimp/2.0"\" -DGIMP_PACKAGE=\""gimp"\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimputils.lo -MD -MP -MF .deps/gimputils.Tpo -c -o gimputils.lo gimputils.c
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DPREFIX=\"/opt/local\" -DGIMPDIR=\".gimp-2.6\" -DDATADIR=\"/opt/local/share/gimp/2.0\" -DLOCALEDIR=\"/opt/local/share/locale\" -DPLUGINDIR=\"/opt/local/lib/gimp/2.0\" -DSYSCONFDIR=\"/opt/local/etc/gimp/2.0\" -DGIMP_PACKAGE=\"gimp\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimpcpuaccel.lo -MD -MP -MF .deps/gimpcpuaccel.Tpo -c gimpcpuaccel.c  -fno-common -DPIC -o .libs/gimpcpuaccel.o
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DPREFIX=\"/opt/local\" -DGIMPDIR=\".gimp-2.6\" -DDATADIR=\"/opt/local/share/gimp/2.0\" -DLOCALEDIR=\"/opt/local/share/locale\" -DPLUGINDIR=\"/opt/local/lib/gimp/2.0\" -DSYSCONFDIR=\"/opt/local/etc/gimp/2.0\" -DGIMP_PACKAGE=\"gimp\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimputils.lo -MD -MP -MF .deps/gimputils.Tpo -c gimputils.c  -fno-common -DPIC -o .libs/gimputils.o
/var/tmp//ccgQ5f2e.s:125:suffix or operands invalid for `pushf'
/var/tmp//ccgQ5f2e.s:126:suffix or operands invalid for `pushf'
/var/tmp//ccgQ5f2e.s:127:suffix or operands invalid for `pop'
/var/tmp//ccgQ5f2e.s:130:suffix or operands invalid for `push'
/var/tmp//ccgQ5f2e.s:131:suffix or operands invalid for `popf'
/var/tmp//ccgQ5f2e.s:132:suffix or operands invalid for `pushf'
/var/tmp//ccgQ5f2e.s:133:suffix or operands invalid for `pop'
/var/tmp//ccgQ5f2e.s:134:suffix or operands invalid for `popf'
make[2]: *** [gimpcpuaccel.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/gimputils.Tpo .deps/gimputils.Plo
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
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_gimp2/work/gimp-2.6.7" && /usr/bin/make -j2 all " returned error 2
Command output: make[3]: Nothing to be done for `all'.
Making all in palettes
make[3]: Nothing to be done for `all'.
Making all in patterns
make[3]: Nothing to be done for `all'.
Making all in tips
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in desktop
make[2]: Nothing to be done for `all'.
Making all in menus
make[2]: Nothing to be done for `all'.
Making all in libgimpbase
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include -DPREFIX=\""/opt/local"\" -DGIMPDIR=\"".gimp-2.6"\" -DDATADIR=\""/opt/local/share/gimp/2.0"\" -DLOCALEDIR=\""/opt/local/share/locale"\" -DPLUGINDIR=\""/opt/local/lib/gimp/2.0"\" -DSYSCONFDIR=\""/opt/local/etc/gimp/2.0"\" -DGIMP_PACKAGE=\""gimp"\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimpcpuaccel.lo -MD -MP -MF .deps/gimpcpuaccel.Tpo -c -o gimpcpuaccel.lo gimpcpuaccel.c
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include -DPREFIX=\""/opt/local"\" -DGIMPDIR=\"".gimp-2.6"\" -DDATADIR=\""/opt/local/share/gimp/2.0"\" -DLOCALEDIR=\""/opt/local/share/locale"\" -DPLUGINDIR=\""/opt/local/lib/gimp/2.0"\" -DSYSCONFDIR=\""/opt/local/etc/gimp/2.0"\" -DGIMP_PACKAGE=\""gimp"\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimputils.lo -MD -MP -MF .deps/gimputils.Tpo -c -o gimputils.lo gimputils.c
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DPREFIX=\"/opt/local\" -DGIMPDIR=\".gimp-2.6\" -DDATADIR=\"/opt/local/share/gimp/2.0\" -DLOCALEDIR=\"/opt/local/share/locale\" -DPLUGINDIR=\"/opt/local/lib/gimp/2.0\" -DSYSCONFDIR=\"/opt/local/etc/gimp/2.0\" -DGIMP_PACKAGE=\"gimp\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimpcpuaccel.lo -MD -MP -MF .deps/gimpcpuaccel.Tpo -c gimpcpuaccel.c  -fno-common -DPIC -o .libs/gimpcpuaccel.o
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DPREFIX=\"/opt/local\" -DGIMPDIR=\".gimp-2.6\" -DDATADIR=\"/opt/local/share/gimp/2.0\" -DLOCALEDIR=\"/opt/local/share/locale\" -DPLUGINDIR=\"/opt/local/lib/gimp/2.0\" -DSYSCONFDIR=\"/opt/local/etc/gimp/2.0\" -DGIMP_PACKAGE=\"gimp\" -DGIMP_DATA_VERSION=\"2.0\" -DGIMP_SYSCONF_VERSION=\"2.0\" -DGIMP_PLUGIN_VERSION=\"2.0\" -DG_LOG_DOMAIN=\"LibGimpBase\" -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O2 -arch x86_64 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -MT gimputils.lo -MD -MP -MF .deps/gimputils.Tpo -c gimputils.c  -fno-common -DPIC -o .libs/gimputils.o
/var/tmp//ccgQ5f2e.s:125:suffix or operands invalid for `pushf'
/var/tmp//ccgQ5f2e.s:126:suffix or operands invalid for `pushf'
/var/tmp//ccgQ5f2e.s:127:suffix or operands invalid for `pop'
/var/tmp//ccgQ5f2e.s:130:suffix or operands invalid for `push'
/var/tmp//ccgQ5f2e.s:131:suffix or operands invalid for `popf'
/var/tmp//ccgQ5f2e.s:132:suffix or operands invalid for `pushf'
/var/tmp//ccgQ5f2e.s:133:suffix or operands invalid for `pop'
/var/tmp//ccgQ5f2e.s:134:suffix or operands invalid for `popf'
make[2]: *** [gimpcpuaccel.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/gimputils.Tpo .deps/gimputils.Plo
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for gimp2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: gimp2
Error: Status 1 encountered during processing.

(I don't know if this is the right way to post it, so if I did something wrong, I apologize in advance)

I also checked /opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/gimp-app/Portfile (that I assume to be the portfile for gimp-app) and the part about compiling in 32 bit is there...

If anyone wants other logs and explains me how to get them just ask :)

comment:19 Changed 15 years ago by swebster@…

nikeios.the.morgoth: your log shows a problem building gimp2, not gimp-app. You might want to check out #21011 for your problem.

comment:20 in reply to:  19 Changed 15 years ago by nikeios.the.morgoth@…

You are right, I'm sorry for having bothered you all. I promise next time to triple-check everything. I report that after following instruction for bug #21011 and imkira's everything compiled. I should add that gimp starts but freeze just after visualizing the 3 default windows (I don't know why, tomorrow I'll check again any error I could have done and for other reported bugs). Thanks a lot to you all

comment:21 Changed 15 years ago by jonathan.alvarsson@…

Cc: jonathan.alvarsson@… added

Cc Me!

comment:22 Changed 15 years ago by tehcog (tehcog)

Cc: brewerleece@… added

Cc Me!

comment:23 Changed 15 years ago by hypocrite@…

Cc: hypocrite@… added

Cc Me!

comment:24 Changed 15 years ago by royliu@…

Cc: royliu@… added

Cc Me!

comment:25 Changed 15 years ago by moisesguimaraesm@…

Cc: moisesguimaraesm@… added

Cc Me!

comment:26 Changed 15 years ago by yitping.kok@…

Cc: yitping.kok@… added

Cc Me!

comment:27 Changed 15 years ago by ross@…

Cc: ross@… added

Cc Me!

comment:28 Changed 15 years ago by whcordis@…

Cc: whcordis@… added

Cc Me!

comment:29 Changed 15 years ago by henx@…

Cc: henx@… added

Cc Me!

comment:30 Changed 15 years ago by vikingjs@…

Cc: vikingjs@… added

Cc Me!

Changed 15 years ago by asgalon

Attachment: main.c added

Fixed compilation errors for 64 bit version... Runs on MacOS 10.6.2

comment:31 in reply to:  description ; Changed 15 years ago by asgalon

Replying to miken32@…:

hi!

I have run the thing through XCode and discovered that it uses some deprecated functions that would not work with 64 bit code. So I did some quick changes to main.c and now it seems to work... I removed the StandardAlert() call on the RedFatalAlert method and changed FSSpec access to FSRef. I have attached the changed ScriptExec/main.c above.

comment:32 in reply to:  31 Changed 15 years ago by vikingjs@…

Thanks, Peter! At first blush at least it seems I'm up and running.

Replying to peter@…:

Replying to miken32@…:

hi!

I have run the thing through XCode and discovered that it uses some deprecated functions that would not work with 64 bit code. So I did some quick changes to main.c and now it seems to work... I removed the StandardAlert() call on the RedFatalAlert method and changed FSSpec access to FSRef. I have attached the changed ScriptExec/main.c above.

comment:33 Changed 15 years ago by royliu@…

Works for me! Attached is the Portfile diff, as well as Peter's patch to "main.c". You have to put "patch-main.c.diff" into the "files" directory of the gimp-app Port.

Changed 15 years ago by royliu@…

Attachment: patch-Portfile.diff added

The Portfile diff.

Changed 15 years ago by royliu@…

Attachment: patch-main.c.diff added

The diff to "main.c", per Peter's submission.

comment:34 Changed 15 years ago by widenflycht@…

Cc: widenflycht@… added

Cc Me!

comment:35 in reply to:  33 ; Changed 15 years ago by steve@…

Replying to royliu@…:

Works for me! Attached is the Portfile diff, as well as Peter's patch to "main.c". You have to put "patch-main.c.diff" into the "files" directory of the gimp-app Port.

Thanks, Peter and Royliu - the patches work for me too (10.6.2 on i7 iMac)

Best wishes, Steve

$ sudo patch /opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/gimp-app/Portfile \
Downloads/patch-Portfile.diff
patching file /opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/gimp-app/Portfile

$ sudo cp Downloads/patch-main.c.diff \
/opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/gimp-app/files/

$ sudo port install gimp

comment:36 Changed 15 years ago by steve@…

Cc: steve@… added

Cc Me!

comment:37 Changed 15 years ago by sylgar@…

Cc: sylgar@… added

Cc Me!

comment:38 Changed 15 years ago by leingang

Cc: mleingang@… added

Cc Me!

comment:39 in reply to:  35 Changed 15 years ago by orbeckst (Oliver Beckstein)

Steve's recipe works for me (10.6.2 on a MacBook Pro). Many thanks for the nice description!

Replying to steve@…:

Replying to royliu@…:

Works for me! Attached is the Portfile diff, as well as Peter's patch to "main.c". You have to put "patch-main.c.diff" into the "files" directory of the gimp-app Port.

Thanks, Peter and Royliu - the patches work for me too (10.6.2 on i7 iMac)

comment:40 Changed 15 years ago by mf2k (Frank Schima)

Cc: home.benfranklin@… added

Cc reporter of duplicate #23916.

comment:41 Changed 15 years ago by p.sacre@…

Cc: p.sacre@… added

Cc Me!

Changed 15 years ago by jagerman@…

Attachment: patch-Portfile.2.diff added

Updated version of royliu's Portfile patch to also work for the +quartz variant

comment:42 Changed 15 years ago by phriedrich

Cc: info@… added

Cc Me!

comment:43 Changed 15 years ago by mas@…

Cc: mas@… added

Cc Me!

comment:44 Changed 15 years ago by lhunath@…

Seems a working patch was added 3 months ago. Is anything holding this back from being merged into the tree?

comment:45 Changed 15 years ago by lhunath@…

Cc: lhunath@… added

Cc Me!

comment:46 Changed 15 years ago by jonastidstrom@…

Cc: jonastidstrom@… added

Cc Me!

comment:47 Changed 15 years ago by lyle2.0@…

Cc: lyle2.0@… added

Cc Me!

comment:48 Changed 15 years ago by jebus197@…

WTF? I'm still getting this bug now after all this time. I waited hours for Gimp to build on Snow Leopard 10.6.3 and then:

--->  Computing dependencies for gimp
--->  Building gimp-app
Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec" && xcodebuild  -alltargets -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=x86_64 SDKROOT= " returned error 1
Command output:     setenv LANG en_US.US-ASCII
    /Developer/usr/bin/gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -fvisibility=hidden -mmacosx-version-min=10.6 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/build/ScriptExec.build/Deployment/ScriptExec.build/ScriptExec.hmap -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/build/Deployment -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/build/Deployment/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/build/ScriptExec.build/Deployment/ScriptExec.build/DerivedSources/x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/build/ScriptExec.build/Deployment/ScriptExec.build/DerivedSources -include /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Caches-/com.apple.Xcode.0/SharedPrecompiledHeaders/ScriptExec_Prefix-bxvafiexhspvwpbbchdlxcdxqeyh/ScriptExec_Prefix.pch -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/build/ScriptExec.build/Deployment/ScriptExec.build/Objects-normal/x86_64/main.o

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c: In function 'main':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:121: warning: implicit declaration of function 'InitCursor'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:146: warning: implicit declaration of function 'RunApplicationEventLoop'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c: In function 'LoadMenuBar':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:315: warning: implicit declaration of function 'CreateNibReference'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:316: warning: implicit declaration of function 'SetMenuBarFromNib'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:317: warning: implicit declaration of function 'DisposeNibReference'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c: In function 'FSMakePath':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:333: warning: implicit declaration of function 'FSpMakeFSRef'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:336: warning: pointer targets in passing argument 2 of 'FSRefMakePath' differ in signedness
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c: In function 'RedFatalAlert':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:344: warning: implicit declaration of function 'StandardAlert'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c: In function 'AppOpenDocAEHandler':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:412: error: 'typeFSS' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:412: error: (Each undeclared identifier is reported only once
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:412: error: for each function it appears in.)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:417: warning: pointer targets in passing argument 2 of 'FSMakePath' differ in signedness
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c: In function 'AppOpenAppAEHandler':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c:444: warning: no return statement in function returning non-void
** BUILD FAILED **


The following build commands failed:
ScriptExec:
	CompileC build/ScriptExec.build/Deployment/ScriptExec.build/Objects-normal/x86_64/main.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_gimp-app/work/ScriptExec/main.c normal x86_64 c com.apple.compilers.gcc.4_2
(1 failure)


Error: The following dependencies failed to build: gimp-app gimp-jp2 gimp-lqr-plugin liblqr gtk-nodoka-engine coreutils gutenprint icns-gimp ufraw cfitsio dcraw exiv2 gtkimageview xsane sane-backends libusb-compat libusb
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.
MyMac:~ jebus197$ }}}

Can someone please tell me in simple steps how to fix this? I'm not a programmer.

comment:49 Changed 15 years ago by jmroot (Joshua Root)

Keywords: LP64 added
Resolution: fixed
Status: newclosed
Summary: gimp-app fails to build on Snow Leopardgimp-app fails to build 64-bit

Fixed in r66399. It seems this port's maintainer is dormant, and nobody pointed out on e.g. the -dev list that there was a patch here that needed to be applied.

Note: See TracTickets for help on using tickets.