Compile problem (syntax error) ports/x11-wm/fvwm2-devel
Parv
parv at pair.com
Mon Oct 31 03:44:17 PST 2005
in message <20051030084719.GP574 at 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
--
More information about the freebsd-ports
mailing list