Package: gnash Version: 0.8.7-1 Severity: serious Tags: patch The latest gnash source fail to build on ia64. This is the error from <URL:https://buildd.debian.org/fetch.cgi?&pkg=gnash&ver=0.8.7-1&arch=ia64&stamp=1266658752&file=log>:
Making all in utilities make[3]: Entering directory `/build/buildd-gnash_0.8.7-1-ia64-mJKYpK/gnash-0.8.7/tmp.agg/utilities' ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../utilities -I.. -I../../libbase -I../../libnet -I../../libamf -I../../backend -I../../libcore -I../../libcore/asobj -I../../libcore/swf -I../../libcore/parser -I../../libcore/vm -I../../libmedia -I../../libsound -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../libmedia/gst -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c -o processor.o ../../utilities/processor.cpp /bin/bash ../libtool --tag=CXX --mode=link ia64-linux-gnu-g++ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -export-dynamic -Wl,--no-add-needed -Wl,--as-needed -o gprocessor processor.o ../libcore/libgnashcore.la ../libamf/libgnashamf.la ../libnet/libgnashnet.la ../libbase/libgnashbase.la ../libmedia/libgnashmedia.la ../libsound/libgnashsound.la ../libltdl/libltdlc.la -lglib-2.0 -lgstinterfaces-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -ldl -lcurl -ljpeg -lpng12 -lboost_thread-mt -lboost_date_time-mt -lpthread -ldl -lutil -lm -lpython2.5 -lpthread -lc -lrt -lX11 -llber -ldl libtool: link: ia64-linux-gnu-g++ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -Wl,--no-add-needed -Wl,--as-needed -o .libs/gprocessor processor.o -Wl,--export-dynamic /build/buildd-gnash_0.8.7-1-ia64-mJKYpK/gnash-0.8.7/tmp.agg/libltdl/./.libs/dlopen.a ../libcore/.libs/libgnashcore.so ../libamf/.libs/libgnashamf.so ../libnet/.libs/libgnashnet.so ../libbase/.libs/libgnashbase.so ../libmedia/.libs/libgnashmedia.so ../libsound/.libs/libgnashsound.so ../libltdl/.libs/libltdlc.a -lgstinterfaces-0.10 /usr/lib/libgstreamer-0.10.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so /usr/lib/libxml2.so /usr/lib/libglib-2.0.so /usr/lib/libcurl-gnutls.so /usr/lib/libjpeg.so -lpng12 -lboost_thread-mt -lboost_date_time-mt -lutil -lm -lpython2.5 -lpthread -lc -lrt -lX11 -llber -ldl -pthread -Wl,-rpath -Wl,/usr/lib/gnash ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../utilities -I.. -I../../libbase -I../../libnet -I../../libamf -I../../backend -I../../libcore -I../../libcore/asobj -I../../libcore/swf -I../../libcore/parser -I../../libcore/vm -I../../libmedia -I../../libsound -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../libmedia/gst -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c -o soldumper.o ../../utilities/soldumper.cpp In file included from ../../utilities/soldumper.cpp:44: ../../libamf/amf.h: In static member function 'static amf::Element::amf0_type_e amf::AMF::extractElementHeader(uint8_t*)': ../../libamf/amf.h:348: warning: cast from 'uint8_t*' to 'amf::Element::amf0_type_e*' increases required alignment of target type /bin/bash ../libtool --tag=CXX --mode=link ia64-linux-gnu-g++ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -ldl -lcurl -ljpeg -lpng12 -lboost_thread-mt -lboost_date_time-mt -lpthread -ldl -lutil -lm -lpython2.5 -lpthread -Wl,--no-add-needed -Wl,--as-needed -o soldumper soldumper.o ../libcore/libgnashcore.la ../libamf/libgnashamf.la ../libnet/libgnashnet.la ../libbase/libgnashbase.la ../libmedia/libgnashmedia.la ../libsound/libgnashsound.la ../libltdl/libltdlc.la -lglib-2.0 -lgstinterfaces-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -ldl -lcurl -ljpeg -lpng12 -lboost_thread-mt -lboost_date_time-mt -lpthread -ldl -lutil -lm -lpython2.5 -lpthread -lc -lrt -lX11 -llber -ldl libtool: link: ia64-linux-gnu-g++ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -Wl,--no-add-needed -Wl,--as-needed -o .libs/soldumper soldumper.o /build/buildd-gnash_0.8.7-1-ia64-mJKYpK/gnash-0.8.7/tmp.agg/libltdl/./.libs/dlopen.a ../libcore/.libs/libgnashcore.so ../libamf/.libs/libgnashamf.so ../libnet/.libs/libgnashnet.so ../libbase/.libs/libgnashbase.so ../libmedia/.libs/libgnashmedia.so ../libsound/.libs/libgnashsound.so ../libltdl/.libs/libltdlc.a -lgstinterfaces-0.10 /usr/lib/libgstreamer-0.10.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so /usr/lib/libxml2.so /usr/lib/libglib-2.0.so /usr/lib/libcurl-gnutls.so /usr/lib/libjpeg.so -lpng12 -lboost_thread-mt -lboost_date_time-mt -lutil -lm -lpython2.5 -lpthread -lc -lrt -lX11 -llber -ldl -pthread -Wl,-rpath -Wl,/usr/lib/gnash ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../utilities -I.. -I../../libbase -I../../libnet -I../../libamf -I../../backend -I../../libcore -I../../libcore/asobj -I../../libcore/swf -I../../libcore/parser -I../../libcore/vm -I../../libmedia -I../../libsound -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../libmedia/gst -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -c -o dumpshm.o ../../utilities/dumpshm.cpp ../../utilities/dumpshm.cpp:321:58: error: macro "_" passed 2 arguments, but takes just 1 ../../utilities/dumpshm.cpp:322:72: error: macro "_" passed 2 arguments, but takes just 1 ../../utilities/dumpshm.cpp:323:73: error: macro "_" passed 2 arguments, but takes just 1 ../../utilities/dumpshm.cpp:324:73: error: macro "_" passed 2 arguments, but takes just 1 In file included from ../../utilities/dumpshm.cpp:71: ../../libamf/amf.h: In static member function 'static amf::Element::amf0_type_e amf::AMF::extractElementHeader(uint8_t*)': ../../libamf/amf.h:348: warning: cast from 'uint8_t*' to 'amf::Element::amf0_type_e*' increases required alignment of target type ../../utilities/dumpshm.cpp: In function 'key_t list_lcs()': ../../utilities/dumpshm.cpp:319: error: '_' was not declared in this scope make[3]: *** [dumpshm.o] Error 1 make[3]: Leaving directory `/build/buildd-gnash_0.8.7-1-ia64-mJKYpK/gnash-0.8.7/tmp.agg/utilities' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/build/buildd-gnash_0.8.7-1-ia64-mJKYpK/gnash-0.8.7/tmp.agg' make[1]: *** [all] Error 2 make[1]: Leaving directory `/build/buildd-gnash_0.8.7-1-ia64-mJKYpK/gnash-0.8.7/tmp.agg' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 I had a look at the source, and believe the problem is incorrect use of the _() macro. This patch should solve it, by making sure it is only given one argument. I did not test it on a ia64 machine. diff -ru gnash-0.8.7/utilities/dumpshm.cpp gnash-0.8.7-pere/utilities/dumpshm.cpp --- gnash-0.8.7/utilities/dumpshm.cpp 2010-02-11 00:20:23.000000000 +0100 +++ gnash-0.8.7-pere/utilities/dumpshm.cpp 2010-02-25 10:12:00.000000000 +0100 @@ -316,12 +316,12 @@ } #ifdef IPC_PERM_KEY if (shmseg.shm_segsz == 64528) { - log_debug(_("Found it! \"set LCShmKey %s\" in your ~/.gnashrc", + log_debug(_("Found it! \"set LCShmKey %s\" in your ~/.gnashrc"), boost::io::group(hex, showbase, - shmseg.shm_perm.IPC_PERM_KEY))); - log_debug(_("Last changed on: %s", ctime(&shmseg.shm_ctime))); - log_debug(_("Last attached on: %s", ctime(&shmseg.shm_atime))); - log_debug(_("Last detached on: %s", ctime(&shmseg.shm_dtime))); + shmseg.shm_perm.IPC_PERM_KEY)); + log_debug(_("Last changed on: %s"), ctime(&shmseg.shm_ctime)); + log_debug(_("Last attached on: %s"), ctime(&shmseg.shm_atime)); + log_debug(_("Last detached on: %s"), ctime(&shmseg.shm_dtime)); return shmseg.shm_perm.IPC_PERM_KEY; } #endif // end of IPC_PERM_KEY Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org