Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2005 06:44:28 -0500
From:      Parv <parv@pair.com>
To:        ports@freebsd.org
Subject:   Re: Compile problem (syntax error) ports/x11-wm/fvwm2-devel
Message-ID:  <20051031114428.GA30438@holestein.holy.cow>
In-Reply-To: <20051030084719.GP574@snoozy.vdgrift.org>
References:  <20051030084719.GP574@snoozy.vdgrift.org> <20051031012259.GA17712@holestein.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20051030084719.GP574@snoozy.vdgrift.org>, wrote Bert van
de Grift thusly...
>
> There seems to be a problem with ports/x11-wm/fvwm2-devel.
> 
> Recently it is upgraded from 2.5.13_1 to 2.5.14_4 but when I try
> to compile this new version I get the following error in
> FvwmProxy.c:
>
>
> cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..  -I/usr/local/include
> -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include
> -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include
> -I/usr/X11R6/include  -I/usr/local/include     -Wall -Wno-implicit-int -O
> -pipe  -c FvwmProxy.c
> FvwmProxy.c: In function `AdjustOneWindow':
> FvwmProxy.c:728: syntax error before `int'
> FvwmProxy.c:730: `dx' undeclared (first use in this function)
> FvwmProxy.c:730: (Each undeclared identifier is reported only once
> FvwmProxy.c:730: for each function it appears in.)
> gmake[3]: *** [FvwmProxy.o] Error 1

Trying a shot in the dark based on that 4.11 has 2.9x gcc & 5.4 has
3.4 AND old C requirement that a variable must be declared before
assignment (which may be total waste of time) ...

Does the following compile on your 4.11 box ...

  #include <stdio.h>
  int main()
  { int i;
    for (i = 0; i < 3 ; i++)
    { int q = i + 1;
      printf( "%d " , q);
    }
    return 0;
  }


... and if that fails but does this compile ...

  #include <stdio.h>
  int main()
  { int i;
    for (i = 0; i < 3 ; i++)
    { int q;
      q = i + 1;
      printf( "%d " , q);
    }
    return 0;
  }


... try the command (assuming code is saved in a file called
hogwash.c) ...

  cc -Wall -Wno-implicit-int -O -pipe -o hogwash hogwash.c \
  && ./hogwash  # [ws]hould print 1 2 3.



  - Parv

-- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051031114428.GA30438>