bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't build with gcc 4.3.0


From: Marcela Maslanova
Subject: can't build with gcc 4.3.0
Date: Thu, 03 Jan 2008 15:54:47 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

Hello,
new gcc 4.3.0 was introduced in Fedora. Groff-1.18.1.4 have this building error:

g++ -I. -I/builddir/build/BUILD/groff-1.18.1.4/src/devices/grolbp 
-I/builddir/build/BUILD/groff-1.18.1.4/src/include 
-I/builddir/build/BUILD/groff-1.18.1.4/src/include -DHAVE_CONFIG_H -O2 -g -pipe 
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic  -c lbp.cc
lbp.cc:28:1: error: "_GNU_SOURCE" redefined
<command-line>: error: this is the location of the previous definition

Whole build was here http://sunsite.mff.cuni.cz/rawhide20071220-gcc43/redefined/groff-1.18.1.4-10.fc8.log

I solve it with patch, which is attached. Please let me know, if it's ok this way.

Marcela Maslanova
diff -up groff-1.18.1.4/src/devices/grolbp/lbp.cc.old 
groff-1.18.1.4/src/devices/grolbp/lbp.cc
--- groff-1.18.1.4/src/devices/grolbp/lbp.cc.old        2008-01-03 
15:38:25.000000000 +0100
+++ groff-1.18.1.4/src/devices/grolbp/lbp.cc    2008-01-03 15:38:33.000000000 
+0100
@@ -25,7 +25,9 @@ TODO
 
  - Add X command to include bitmaps
 */
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
 
 #include "driver.h"
 #include "lbp.h"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]