[Libreoffice] gdk-pixbuf compile error

Joseph Powers jpowers27 at cox.net
Wed Jun 1 09:28:59 PDT 2011


On Jun 1, 2011, at 8:19 AM, Christian Lohmaier wrote:

> Hi *,
> 
> On Wed, Jun 1, 2011 at 7:59 AM, Joseph Powers <jpowers27 at cox.net> wrote:
>> [problem with gdk-pixbuf on Mac]
> 
> Sure that it isn't just a problem with mixing linking against SDK and
> linking against the system?
> 
> The modules that librsvg did now "pull in" to the build don't properly
> link against the SDK, so while it might find the system lib during
> compile, later on the SDK one is used or the other way round. Maybe
> that's the cause of the problems.
> 
> ciao
> Christian

I'm fairly sure it's not a link issue (at least not just a link issue):

libtool: compile:  /usr/bin/gcc-4.0 -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -DGDK_PIXBUF_COMPILATION -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_LOCALEDIR=\"/Users/jpowers27/build/bootstrap/gdk-pixbuf/./unxmacxi.pro/misc/share/locale\" -DGDK_PIXBUF_LIBDIR=\"/Users/jpowers27/build/bootstrap/gdk-pixbuf/./unxmacxi.pro/misc/lib\" -DGDK_PIXBUF_BINARY_VERSION=\"2.10.0\" -DGDK_PIXBUF_PREFIX=\"/Users/jpowers27/build/bootstrap/gdk-pixbuf/./unxmacxi.pro/misc\" -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DGDK_PIXBUF_ENABLE_BACKEND -DPIXBUF_LIBDIR=\"/Users/jpowers27/build/bootstrap/gdk-pixbuf/./unxmacxi.pro/misc/lib/gdk-pixbuf-2.0/2.10.0/loaders\" -DBUILT_MODULES_DIR=\"./.libs\" -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DG_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_DEPRECATED -I/Users/jpowers27/build/bootstrap/solver/350/unxmacxi.pro/inc/external -I/Users/jpowers27/build/bootstrap/solver/350/unxmacxi.pro/inc/external/glib-2.0 -I/Users/jpowers27/build/bootstrap/solver/350/unxmacxi.pro/inc/external/libpng -I/Users/jpowers27/build/bootstrap/solver/350/unxmacxi.pro/inc/external/libjpeg -Wall -MT io-png.lo -MD -MP -MF .deps/io-png.Tpo -c io-png.c  -fno-common -DPIC -o .libs/io-png.o
io-png.c: In function 'png_simple_error_callback':
io-png.c:186: error: dereferencing pointer to incomplete type
io-png.c: In function 'gdk_pixbuf__png_image_load':
io-png.c:290: error: dereferencing pointer to incomplete type
io-png.c:344: warning: passing argument 5 of 'png_get_iCCP' from incompatible pointer type
io-png.c: In function 'gdk_pixbuf__png_image_begin_load':
io-png.c:462: error: dereferencing pointer to incomplete type
io-png.c: In function 'gdk_pixbuf__png_image_load_increment':
io-png.c:534: error: dereferencing pointer to incomplete type
io-png.c: In function 'png_info_callback':
io-png.c:657: warning: format '%ld' expects type 'long int', but argument 5 has type 'png_uint_32'
io-png.c:657: warning: format '%ld' expects type 'long int', but argument 6 has type 'png_uint_32'
io-png.c:681: warning: passing argument 5 of 'png_get_iCCP' from incompatible pointer type
io-png.c: In function 'png_error_callback':
io-png.c:772: error: dereferencing pointer to incomplete type
io-png.c: In function 'real_save_png':
io-png.c:981: error: dereferencing pointer to incomplete type
io-png.c:1009: warning: pointer targets in passing argument 5 of 'png_set_iCCP' differ in signedness
make[4]: *** [io-png.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
dmake:  Error code 2, while making './unxmacxi.pro/misc/build/so_built_so_gdk-pixbuf'

The above was generated after applying your patch:

LibreOffice (libs-extern-sys) lohmaier+LibreOffice * gdk-pixbuf/ (gdk-pixbuf-2.23.0.patch makefile.mk): compile gdk-pixbuf against SDK (Mac)

Joe P.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110601/69310b1a/attachment.html>


More information about the LibreOffice mailing list