buid breakage


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

By looking at the source, rc is defined if GNOME is not defined, while
it is used only ifdef HAVE_POPT. Is this an error or does this have a
good reason to be like that ?

Here is the code snippet:
#ifndef GNOME
  int rc = 0;

#ifdef HAVE_POPT
  poptCtx = poptGetContext(PACKAGE, argc, (const char **)argv, options,
  poptSetOtherOptionHelp(poptCtx, _("[OPTION...] [FILE...]"));
  while (rc >= 0) {
    if((rc = poptGetNextOpt(poptCtx)) < -1) {



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