Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17432 closed defect (fixed)

building gimp-gap

Reported by: tmaurizio@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: ffmpeg Cc: ben.e.findlay@…
Port: gimp-gap

Description (last modified by jmroot (Joshua Root))

Attemptin to install gimp-gap, this fail. Gimp2.6 work fine for me. I have Xcode 3.1 X11 2.3.1 on macosx 10.5.5

 sudo port install gimp-gap
--->  Fetching gimp-gap
--->  Verifying checksum(s) for gimp-gap
--->  Extracting gimp-gap
--->  Applying patches to gimp-gap
--->  Configuring gimp-gap
--->  Building gimp-gap
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_gimp-gap/work/gimp-gap-2.4.0" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -O3 -g -Wall -Wno-switch -O2 -no-cpp-precomp -DHAVE_LRINTF -fno-common -pipe -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o h263.o h263.c 
In file included from h263.c:40:
mpeg4data.h:226: warning: pointer targets in initialization differ in signedness
mpeg4data.h:227: warning: pointer targets in initialization differ in signedness
mpeg4data.h:330: warning: pointer targets in initialization differ in signedness
mpeg4data.h:331: warning: pointer targets in initialization differ in signedness
h263.c: In function 'h263_pred_dc':
h263.c:1522: warning: pointer targets in assignment differ in signedness
h263.c: In function 'mpeg4_encode_vol_header':
h263.c:2374: warning: pointer targets in passing argument 2 of 'ff_write_quant_matrix' differ in signedness
h263.c:2375: warning: pointer targets in passing argument 2 of 'ff_write_quant_matrix' differ in signedness
h263.c: In function 'ff_mpeg4_pred_dc':
h263.c:2503: warning: pointer targets in assignment differ in signedness
/usr/bin/gcc-4.0 -O3 -g -Wall -Wno-switch -O2 -no-cpp-precomp -DHAVE_LRINTF -fno-common -pipe -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o h261.o h261.c 
/usr/bin/gcc-4.0 -O3 -g -Wall -Wno-switch -O2 -no-cpp-precomp -DHAVE_LRINTF -fno-common -pipe -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o msmpeg4.o msmpeg4.c 
msmpeg4.c: In function 'msmpeg4_pred_dc':
msmpeg4.c:838: warning: pointer targets in assignment differ in signedness
msmpeg4.c: In function 'msmpeg4_encode_block':
msmpeg4.c:727: error: can't find a register in class 'BREG' while reloading 'asm'
{standard input}:14980:non-relocatable subtraction expression, "_msmpeg4v34_decode_mb" minus "L00000000003$pb"
{standard input}:14980:symbol: "_msmpeg4v34_decode_mb" can't be undefined in a subtraction expression
{standard input}:14957:non-relocatable subtraction expression, "_msmpeg4v12_decode_mb" minus "L00000000003$pb"
{standard input}:14957:symbol: "_msmpeg4v12_decode_mb" can't be undefined in a subtraction expression
{standard input}:14932:non-relocatable subtraction expression, "_wmv2_decode_mb" minus "L00000000003$pb"
{standard input}:14932:symbol: "_wmv2_decode_mb" can't be undefined in a subtraction expression
make[4]: *** [msmpeg4.o] Error 1
make[3]: *** [lib] Error 2
make[2]: *** [/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_gimp-gap/work/gimp-gap-2.4.0/extern_libs/ffmpeg/libavformat/libavformat.a] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History (8)

comment:1 Changed 16 years ago by tmaurizio@…

Cc: tmaurizio@… added

Cc Me!

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: tmaurizio@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…
Port: gimp-gap added

comment:3 Changed 16 years ago by dbevans (David B. Evans)

Keywords: ffmpeg added
Resolution: fixed
Status: newclosed

The problem seems to be an arch/platform dependent bug in the old ffmpeg code that is included in the distribution. It builds OK for me on 10.4.11 ppc.

Although this code is old, this version of gimp-gap is written specifically to it so the only thing to do is report the bug upstream and wait for a patch or new release. gimp-gap does not support external ffmpeg libraries (such as port ffmpeg) in this version.

To get around this, I have updated the port to disable this ffmpeg code by default at the expense of fewer supported video formats. To restore the ffmpeg code (which will continue to break for some) the +libavformat variant can be used.

This should allow you to proceed for now. Committed in r43011.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 16 years ago by ben.e.findlay@…

Cc: ben.e.findlay@… added

Cc Me!

comment:6 in reply to:  description Changed 16 years ago by ben.e.findlay@…

I get this exact same error after I used sudo port upgrade installed on my system. Has this been properly resolved, or is there something else I should do to get round it?

comment:7 Changed 16 years ago by dbevans (David B. Evans)

The offending code was disabled by default in r43011 as shown above but was re-enabled later because it really couldn't do anything without it.

The best alternative is to install gimp-gap-devel which incorporates a much newer version of ffmpeg and has more functionality and better integration with the gimp 2.6 branch. This version is a pre-2.6 release version which will replace the existing gimp-gap version shortly. Just deactivate gimp-gap first and install gimp-gap-devel

sudo port deactivate gimp-gap
sudo port install gimp-gap-devel

comment:8 Changed 16 years ago by dbevans (David B. Evans)

In r50716, updated gimp-gap-devel to svn 833 which incorporates latest ffmpeg 0.5 release snapshot. This should build well for all platforms. If not, please submit a new ticket with full details.

In r50718, fixed gimp-gap to abort with error message if attempting to install/upgrade on an i386 platform. Message suggests installing gimp-gap-devel instead.

Will update gimp-gap to version 2.6.0 when it is released (should be soon now.) In the meantime, gimp-gap-devel is a recent development snapshot from svn trunk.

Please be sure to resync your ports tree before trying to reinstall/upgrade to make sure you have the latest version of these ports.

Note: See TracTickets for help on using tickets.