[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Fwd: 18 out of 50 hunks FAILED -- saving rejects t

From: Chris Ohmstede
Subject: Re: [Swftools-common] Fwd: 18 out of 50 hunks FAILED -- saving rejects to file JBIG2Stream.cc.rej
Date: Fri, 25 May 2012 22:59:27 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 05/25/2012 10:00 PM, George Kirkham wrote:

Thanks very much for updating the packages  (I have been using the git package)

git clone git://git.swftools.org/swftools swftools
cd swftools
./configure >../swfconfigure1.log 2>&1
make >../swfmake1.log 2>&1

Thanks also to Chris, I have now installed the extra packages and also i needed libpoppler-dev
apt-get install libfontconfig1-dev libfftw3-dev libzzip-dev libpoppler-dev

However make is still reporting errors that I would like to understand or better yet have fixed in the swftools package?

./lib/pdf/inject-xpdf.pl:28:print "Applying security patches...\n";

$c = 'find . \( -name "*.cc" -or -name "*.h" -or -name "*.c" \) -exec cp {} {}.orig \;';
print "$c\n";

system("patch < ../xpdf-changes.patch 2>&1 | grep -i failed");


But I could not find what generated the error text "
18 out of 50 hunks FAILED -- saving rejects to file JBIG2Stream.cc.rej"

Error log extract
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -Ilame -Ilib/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer  as3/assets.c -o as3/assets.o
rm -f librfxswf.a
ar r librfxswf.a modules/swfaction.o modules/swfbits.o modules/swfbutton.o modules/swfcgi.o modules/swfdraw.o modules/swfdump.o modules/swffilter.o modules/swffont.o modules/swfobject.o modules/swfrender.o modules/swfshape.o modules/swfsound.o modules/swftext.o modules/swftools.o modules/swfalignzones.o rfxswf.o drawer.o lame/psymodel.o lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o lame/lame.o h.263/dct.o h.263/h263tables.o h.263/swfvideo.o action/assembler.o action/compile.o action/lex.swf4.o action/lex.swf5.o action/libming.o action/swf4compiler.tab.o action/swf5compiler.tab.o action/actioncompiler.o as3/abc.o as3/pool.o as3/files.o as3/opcodes.o as3/code.o as3/registry.o as3/builtin.o as3/tokenizer.yy.o as3/parser.tab.o as3/scripts.o as3/compiler.o as3/import.o as3/expr.o as3/parser_help.o as3/state.o as3/common.o as3/initcode.o as3/assets.o
ar: creating librfxswf.a
ranlib librfxswf.a
cd pdf;make libgfxpdf
make[2]: Entering directory `/usr/adm/5swftools/swftools/lib/pdf'
Extracting xpdf-3.02.tar.gz
Applying security patches...
find . \( -name "*.cc" -or -name "*.h" -or -name "*.c" \) -exec cp {} {}.orig \;
Hunk #22 FAILED at 703.
Hunk #23 FAILED at 719.
Hunk #26 FAILED at 1044.
Hunk #27 FAILED at 1059.
Hunk #29 FAILED at 1337.
Hunk #32 FAILED at 1568.
Hunk #33 FAILED at 1579.
Hunk #34 FAILED at 1595.
Hunk #35 FAILED at 1818.
Hunk #36 FAILED at 1831.
Hunk #37 FAILED at 1845.
Hunk #42 FAILED at 2516.
Hunk #43 FAILED at 2676.
Hunk #44 FAILED at 2701.
Hunk #45 FAILED at 2715.
Hunk #46 FAILED at 2742.
Hunk #47 FAILED at 2767.
Hunk #48 FAILED at 3178.
18 out of 50 hunks FAILED -- saving rejects to file JBIG2Stream.cc.rej
Hunk #3 FAILED at 61.
Hunk #5 FAILED at 108.
Hunk #7 FAILED at 146.
Hunk #8 FAILED at 173.
4 out of 11 hunks FAILED -- saving rejects to file gmem.cc.rej
g++ -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -Ilame -Ilib/lame -fPIC -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer  -I ./ -I xpdf  VectorGraphicOutputDev.cc -o VectorGraphicOutputDev.o

George Kirkham


The 'test' command has the -o and -L switches.  AFAIAA, 'test' was
replaced with 'rm -f', but, the extra switches got accidentally left

The Makefile for both current and Git versions no longer contains them.

> I found a few packages that you are missing.  I'm not sure how
> important they are but install these:
> libfontconfig1-dev
> libfftw3-dev
> libzzip-dev
> Hope it works out

Indeed.  Hopefully Chris' input resolves your issues?

( other ) Chris :o)

SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an existing subscription, please kindly point your favourite web browser at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>
Hi George

Oops, I'm not surprised by libpoppler, I just missed that one.

Hmmm, I'm not getting the same results as you.  In your first make you see:
Extracting xpdf-3.02.tar.gz
on line 83.

The errors seem to occur while supplying security patches when this tar is extracted.  In the release of swftools that I'm using “swftools-0.9.2.tar.gz” there is no xpdf-3.02.tar.gz.  The /lib/pdf/xpdf directory already exists and I have no errors.

I've also noticed that you are building from /usr/adm/4swftools/swftools/ instead of a home directory.  Are you building as root?  Once again, probably doesn't matter but it's something different compared to my build.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]