https://bugs.freedesktop.org/show_bug.cgi?id=82911

          Priority: medium
            Bug ID: 82911
          Assignee: [email protected]
           Summary: Libreoffice 4.2.5.2 fails to build with IJG's libjpeg
                    9a
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: unspecified
         Component: Installation
           Product: LibreOffice

https://bugs.gentoo.org/show_bug.cgi?id=479946

Quoting

[build CXX] vcl/source/filter/jpeg/JpegReader.cxx
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegReader.cxx:
In function 'void init_source(j_decompress_ptr)':
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegReader.cxx:74:29:
error: invalid conversion from 'sal_Bool {aka unsigned char}' to 'boolean'
[-fpermissive]
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegReader.cxx:
In function 'boolean fill_input_buffer(j_decompress_ptr)':
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegReader.cxx:122:29:
error: invalid conversion from 'sal_Bool {aka unsigned char}' to 'boolean'
[-fpermissive]
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegReader.cxx:124:12:
error: invalid conversion from 'sal_Bool {aka unsigned char}' to 'boolean'
[-fpermissive]
[build CXX] vcl/source/filter/jpeg/JpegWriter.cxx
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegWriter.cxx:
In function 'boolean empty_output_buffer(j_compress_ptr)':
/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/vcl/source/filter/jpeg/JpegWriter.cxx:89:12:
error: invalid conversion from 'sal_Bool {aka unsigned char}' to 'boolean'
[-fpermissive]

And indeed, seeing same problem with, for example, FLTK library:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/fltk/files/fltk-1.3.2-jpeg-9a.patch?view=log
And other similar bugs:
https://bugs.gentoo.org/showdependencytree.cgi?id=479818&hide_resolved=0

as libjpeg HOMEPAGE is http://www.ijg.org/ where 9a is current

patch:

http://bugs.gentoo.org/attachment.cgi?id=355256

--- vcl/source/filter/jpeg/JpegReader.cxx
+++ vcl/source/filter/jpeg/JpegReader.cxx
@@ -71,7 +71,7 @@
      * but we don't clear the input buffer.
      * This is correct behavior for reading a series of images from one
source.
      */
-    source->start_of_file = sal_True;
+    source->start_of_file = boolean(sal_True);
 }

 long StreamRead( SvStream* pStream, void* pBuffer, long nBufferSize )
@@ -119,9 +119,9 @@

     source->pub.next_input_byte = source->buffer;
     source->pub.bytes_in_buffer = nbytes;
-    source->start_of_file = sal_False;
+    source->start_of_file = boolean(sal_False);

-    return sal_True;
+    return boolean(sal_True);
 }

 extern "C" void skip_input_data (j_decompress_ptr cinfo, long numberOfBytes)
--- vcl/source/filter/jpeg/JpegWriter.cxx
+++ vcl/source/filter/jpeg/JpegWriter.cxx
@@ -86,7 +86,7 @@
     destination->pub.next_output_byte = destination->buffer;
     destination->pub.free_in_buffer = BUFFER_SIZE;

-    return sal_True;
+    return boolean(sal_True);
 }

 extern "C" void term_destination (j_compress_ptr cinfo)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to