[Top][All Lists]

[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 (X11/20071115)

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

g++ -I. -I/builddir/build/BUILD/groff- 
-I/builddir/build/BUILD/groff- -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-

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

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

reply via email to

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