[Kstars-devel] gcc 3.3.2 problem in kstars/indi/webcam

Jason Harris kstars at 30doradus.org
Tue Apr 6 21:28:02 CEST 2004


Hello,

When I try to compile kstars/indi/webcam on my laptop (gcc-3.3.2), I get the 
following:

gcc  -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith 
-Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   
-Wformat-security -Wmissing-format-attribute -c `test -f 'ccvt_mmx_old.S' || 
echo './'`ccvt_mmx_old.S
ccvt_mmx_old.S:450:22: pasting "ccvt_420i_rgb24" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:477:22: pasting "ccvt_420i_bgr24" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:505:22: pasting "ccvt_420i_rgb32" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:532:22: pasting "ccvt_420i_bgr32" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:562:22: pasting "ccvt_yuyv_rgb32" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:589:22: pasting "ccvt_yuyv_bgr32" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:622:22: pasting "ccvt_420p_rgb32" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:666:22: pasting "ccvt_420p_bgr32" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:720:22: pasting "ccvt_rgb24_420p" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:827:22: pasting "ccvt_bgr24_420p" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:947:21: pasting "ccvt_420i_420p" and ":" does not give a valid 
preprocessing token
ccvt_mmx_old.S:1019:21: pasting "ccvt_420i_yuyv" and ":" does not give a valid 
preprocessing token
make: *** [ccvt_mmx_old.o] Error 1

After googling around a bit, I found that this error is reported when a 
preprocessor directive uses "##" incorrectly; this was accepted by older 
versions of gcc but more recent versions are pickier.  However, 
ccvt_mmx_old.S doesn't use "##" anywhere.  And the lines it is compaining 
about all appear to be function declarations like this:

ENTRY(ccvt_420i_rgb24)

So I don't see where it gets the ":" that is supposedly being pasted onto 
"ccvt_420i_rgb24".  

Anyway, on a hunch, since the posts I reviewed indicated a gcc versioning 
issue, I cut-and-pasted the compile statement from make manually onto the 
command line, replacing "gcc" with "gcc32", which executes to gcc-3.2.3 
instead of 3.3.2.  The file compiles without any problems in that case.

I don't know what can be done to make this file compatible with gcc-3.3.2, but 
I wanted to bring this to the list's attention.   Hopefully, someone will 
have an idea how to fix it.

regards,
Jason

-- 
KStars: A KDE Planetarium
http://edu.kde.org/kstars


More information about the Kstars-devel mailing list