[opensuse-packaging] libpng error on Factory
Hi I'm having trouble with the new versions of libpng (I think) my grabby project (webcam utility) here http://tinyurl.com/2ulm8pw It builds fine for 11.2 and SLE11 SP1, but I cannot figure out if it's a code issue or a png.h issue. I'v removed all the Makefile items to exclude the debug build. Could someone look at the build log http://tinyurl.com/3xraaj7 and maybe enlighten me as to where/what to do? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.12-0.7-default up 4 days 11:54, 3 users, load average: 0.17, 0.09, 0.02 GPU GeForce 8600 GTS Silent - Driver Version: 256.35 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 30/06/10 00:35, Malcolm escribió:
Hi I'm having trouble with the new versions of libpng (I think) my grabby project (webcam utility) here http://tinyurl.com/2ulm8pw
It builds fine for 11.2 and SLE11 SP1, but I cannot figure out if it's a code issue or a png.h issue. I'v removed all the Makefile items to exclude the debug build.
Could someone look at the build log http://tinyurl.com/3xraaj7 and maybe enlighten me as to where/what to do?
Ok,pngconf.h is included by picio.c on line 5, and then fails with usr/include/pngconf.h:371:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token Qquestion is what that line says exactly ? post your findings. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 30/06/10 00:35, Malcolm escribió:
Hi I'm having trouble with the new versions of libpng (I think) my grabby project (webcam utility) here http://tinyurl.com/2ulm8pw
It builds fine for 11.2 and SLE11 SP1, but I cannot figure out if it's a code issue or a png.h issue. I'v removed all the Makefile items to exclude the debug build.
Could someone look at the build log http://tinyurl.com/3xraaj7 and maybe enlighten me as to where/what to do?
Ok,pngconf.h is included by picio.c on line 5, and then fails with
usr/include/pngconf.h:371:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
Qquestion is what that line says exactly ? post your findings. Hi
On Wed, 30 Jun 2010 11:10:25 -0400
Cristian Rodríguez
El 30/06/10 12:21, Malcolm escribió:
libpng12-devel-1.2.43-3.2 pngconf.h Line 371 says; __pngconf.h__ in libpng already includes setjmp.h;
So as per the INSTALL doc referred to, I added a patch before png.h to skip this check (#define PNG_SKIP_SETJMP_CHECK) and it now builds. I'm no coder, so I guess I need to rtfm some more ;)
Something else is including setjmp.h , workaround looks fine to me, but it is better remedy the root cause. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, 30 Jun 2010 13:27:18 -0400
Cristian Rodríguez
El 30/06/10 12:21, Malcolm escribió:
libpng12-devel-1.2.43-3.2 pngconf.h Line 371 says; __pngconf.h__ in libpng already includes setjmp.h;
So as per the INSTALL doc referred to, I added a patch before png.h to skip this check (#define PNG_SKIP_SETJMP_CHECK) and it now builds. I'm no coder, so I guess I need to rtfm some more ;)
Something else is including setjmp.h , workaround looks fine to me, but it is better remedy the root cause. Hi I did an fgrep on the src files and found no reference to setjmp? So it must be calling from an picio includes?
picio.c:#include
El 30/06/10 14:11, Malcolm escribió:
Hi I did an fgrep on the src files and found no reference to setjmp? So it must be calling from an picio includes?
if you stick a big "gcc -M picio.c" somewhere during %build you will get the header dependency list. anyway .. png.h looks quite hackish and this can be a bug. Unless you app breaks in a fairly obscure way, I suggest to leave it as is, ;) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 30/06/10 12:21, Malcolm escribió:
So as per the INSTALL doc referred to, I added a patch before png.h to skip this check (#define PNG_SKIP_SETJMP_CHECK) and it now builds.
passing -DPNG_SKIP_SETJMP_CHECK in CFLAGS will also help in case a workaround patch is not what you want. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Malcolm