Comment 8 for bug 819774

Revision history for this message
Julian Taylor (jtaylor) wrote :

_FORTIFY_SOURCE used in ubuntu (but not in debian) somehow breaks parsegen. natty is also not affected.
the simple fix would be to just disable the fortification for the 3 files it compiles.

cfg.c:600:7: sorry, unimplemented: called from here
/usr/include/bits/stdio2.h:96:1: sorry, unimplemented: inlining failed in call to 'fprintf': indirect function call with a yet undetermined callee

--- zsnes-1.510+bz2.orig/src/Makefile.in 2011-08-06 00:11:41.000000000 +0200
+++ zsnes-1.510+bz2/src/Makefile.in 2011-08-06 00:15:24.299201891 +0200
@@ -95,7 +95,7 @@
 %.o: %.cpp
  @CXX@ @CXXFLAGS@ -o $@ -c $<
 %.o %.h: %.psr $(PSR)
- ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $<
+ ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@ -O1 -D_FORTIFY_SOURCE=0" -cheader $*.h -fname $* $*.o $<

 default: main
 all: main tools