From: Dean M. <dm...@sd...> - 2012-05-01 22:33:18
|
Arch Linux fails to build t4k_common: t4k_loaders.c: In function ‘saveSVGInfo’: t4k_loaders.c:841:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] t4k_loaders.c: In function ‘do_png_save’: t4k_loaders.c:1031:17: error: dereferencing pointer to incomplete type t4k_loaders.c:1032:17: error: dereferencing pointer to incomplete type t4k_loaders.c:1033:17: error: dereferencing pointer to incomplete type t4k_loaders.c:1034:17: error: dereferencing pointer to incomplete type t4k_loaders.c:1035:17: error: dereferencing pointer to incomplete type t4k_loaders.c:1036:17: error: dereferencing pointer to incomplete type make[3]: *** [t4k_loaders.lo] Error 1 make[3]: Leaving directory `/tmp/yaourt-tmp-dmonty/aur-t4k_common/src/t4k_common-0.1.1/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/yaourt-tmp-dmonty/aur-t4k_common/src/t4k_common-0.1.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/yaourt-tmp-dmonty/aur-t4k_common/src/t4k_common-0.1.1' make: *** [all] Error 2 === I tried using git and get something similar t4k_loaders.c: In function 'do_png_save': t4k_loaders.c:1031:11: error: dereferencing pointer to incomplete type t4k_loaders.c:1032:11: error: dereferencing pointer to incomplete type t4k_loaders.c:1033:11: error: dereferencing pointer to incomplete type t4k_loaders.c:1034:11: error: dereferencing pointer to incomplete type t4k_loaders.c:1035:11: error: dereferencing pointer to incomplete type t4k_loaders.c:1036:11: error: dereferencing pointer to incomplete type In file included from t4k_globals.h:37:0, from t4k_loaders.c:28: t4k_loaders.c: At top level: t4k_common.h:251:13: warning: 'wrapped_lines' defined but not used [-Wunused-variable] make[3]: *** [t4k_loaders.lo] Error 1 make[3]: Leaving directory `/home/dmonty/tmp/t4kcommon/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/dmonty/tmp/t4kcommon/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dmonty/tmp/t4kcommon' make: *** [all] Error 2 ======== $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.7-20120414/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release Thread model: posix gcc version 4.7.0 20120414 (prerelease) (GCC) -- Dean Montgomery Network Support Tech./Programmer http://dmonty.blogs.sd73.bc.ca/ dm...@sd... School District #73 |
From: Tasos L. <tla...@gm...> - 2012-05-02 07:55:41
|
On 02/05/12 01:33, Dean Montgomery wrote: > Arch Linux fails to build t4k_common: > [snip] > Hello, is seems that direct access to info_ptr is broken with libpng 1.5. The attached patch works for me. Please review as I am not quite familiar with the libpng API or the t4k codebase. Thanks -- Tasos Latsas gpg: 0x219810C9 https://github.com/tlatsas |
From: sasayins <sas...@gm...> - 2012-05-02 08:04:37
|
Hi Tasos, Thanks for the patch. It seems the patch is correct and the setter and the getter function of that struct pointer should be use instead of the actual struct pointer. Your patch should apply to the t4kcommon git. Thanks, kiko On Wed, May 2, 2012 at 3:55 PM, Tasos Latsas <tla...@gm...> wrote: > On 02/05/12 01:33, Dean Montgomery wrote: > > Arch Linux fails to build t4k_common: > > > [snip] > > > Hello, > > is seems that direct access to info_ptr is broken with libpng 1.5. > The attached patch works for me. Please review as I am not quite > familiar with the libpng API or the t4k codebase. > > Thanks > > -- > Tasos Latsas > > gpg: 0x219810C9 > https://github.com/tlatsas > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Tuxmath-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxmath-devel > > |