On Wed, 2011-03-02 at 12:31 +0100, Jonas Smedegaard wrote:
> Hi Yves-Alexis,
> 
> Thanks a lot for the detailed bugreport!
> 
> On Wed, Mar 02, 2011 at 08:18:30AM +0100, Yves-Alexis Perez wrote:
> >I have some eps files (not easily sharable though) which make segfault
> >gs everytime. I've tried to rebuild ghostscript from upstream sources
> >to make a usable backtrace, but it appears that it's not reproducible
> >using git master nor 9.00 tag.
> 
> Perhaps the bug then is in one of the convenience libraries.
> 
> Just yesterday I discovered that the separately released jbig2dec 
> project is not uptodate with the code shipped with ghostscript sources.
> 
> Could you try rebuilding using upstream 9.00 tag but then rip out the 
> jbig2dec subdir and instead link against the Debian-provided 
> libjbig2dec?
> 
> 
> >I tried to rebuild the debian package but it doesn't seem to support 
> >DEB_BUILD_OPTIONS
> 
> Whoops.  If that is true, it is a bug in itself!
> 
> Did you actually try setting such options, or did you look at the rules 
> file and gave up when you found no ifdef explicitly in there?

I tried:

DEB_BUILD_OPTIONS='noopt,nostrip' debuild -us -uc

An example gcc command line is:

gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64
-DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -fPIC  -O2 -Wall
-Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes
-Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement
-fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned
long int" -g -O2 -g -O2 -fPIC -DUSE_LIBPAPER -DGS_DEVS_SHARED
-DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/9.01\" -I./psi -I./obj
-I./obj -I./base  -o ./obj/zcharout.o -c ./psi/zcharout.c

(so no -O0)

in the end:

debian/tmp/usr/bin/gs: ELF 64-bit LSB executable, x86-64, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not
stripped

but:

debian/libgs9/usr/lib/libgs.so.9.01: ELF 64-bit LSB shared object,
x86-64, version 1 (SYSV), dynamically linked, stripped

so there's not much I can do.
> 
> If the latter, please note that this package uses CDBS which abstracts 
> away those ifdef's (else it possibly means that not ghostsctript but 
> cdbs is broken!)
> 
> 
> >so I've tried rebuild manually using tips from another bug report, but:
> >
> >configure: WARNING: unrecognized options: --enable-debug
> 
> Yeah - ghostscript only uses limited autotools features, so that one 
> doesn't surprise me.

Ok.
> 
> 
> >So I'm doing CFLAGS='-O0 -g' ./configure && make and it gives:
> >
> >make: *** No rule to make target `src/compress.c', needed by
> >`obj/compress.o'.  Stop.
> 
> Above will pass CFLAGS to configure but not to make.  Even though 
> configure do advertise supporting CFLAGS in environment, it might 
> very well be that ghostscript do not respect it.
> 
> Was above failure tried against...
> 
>    some release of Debian package (with patches applied)

This one.

Regards,
-- 
Yves-Alexis

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to