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

Patch for build breakage



On Mon, 2004-02-16 at 17:34, Hubert Figuiere wrote:
> I'm try to rebuild dia from CVS on my newly installed Debian/unstable.
> 
> I did configure --enable-gnome --enable-debug
> 
> Then, during make, I get this error: 
> ../../../dia/app/app_procs.c: In function `process_opts':
> ../../../dia/app/app_procs.c:706: error: `rc' undeclared (first use in
> this function)
> ../../../dia/app/app_procs.c:706: error: (Each undeclared identifier is
> reported only once
> ../../../dia/app/app_procs.c:706: error: for each function it appears
> in.)

Attached is the patch to fix the problem. Since I don't want to mess up
with others tree, I attach it here. If it is OK, then I'll commit it.


Thanks

Hub
Index: app/app_procs.c
===================================================================
RCS file: /cvs/gnome/dia/app/app_procs.c,v
retrieving revision 1.128
diff -u -r1.128 app_procs.c
--- app/app_procs.c	16 Feb 2004 19:47:56 -0000	1.128
+++ app/app_procs.c	17 Feb 2004 14:40:46 -0000
@@ -700,11 +700,9 @@
 	     GSList **files, char **export_file_name,
 	     char **export_file_format, char **size)
 {
-#ifndef GNOME
+#ifdef HAVE_POPT
   int rc = 0;
-#endif  
 
-#ifdef HAVE_POPT
   poptCtx = poptGetContext(PACKAGE, argc, (const char **)argv, options, 0);
   poptSetOtherOptionHelp(poptCtx, _("[OPTION...] [FILE...]"));
   while (rc >= 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK