Bug 690292 - jpc_qmfb.c does not compile with Sun Studio Compiler
Summary: jpc_qmfb.c does not compile with Sun Studio Compiler
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 8.64
Hardware: Sun Solaris
: P4 normal
Assignee: Ralph Giles
URL:
Keywords:
: 690311 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-16 11:08 UTC by Jörn Clausen
Modified: 2009-02-27 16:04 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörn Clausen 2009-02-16 11:08:50 UTC
The file jasper/src/libjasper/jpc/jpc_qmfb.c contains CRLF line breaks. Sun
Studio Compiler does not accept the file in this format. Converting the file
(with dos2unix or similar) results in a successful build.
Comment 1 Ralph Giles 2009-02-16 12:01:42 UTC
*boggle* Hopefully you mean the preprocessor, at least?

Anyway, restored in r9481, and hopefully future mutations prevented by r9482.
Thanks for the report. Let me know if you find more.
Comment 2 Jörn Clausen 2009-02-16 13:02:00 UTC
The precise error was this:

/bin/sh ../../../libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I.
-I../../../src/libjasper/include/jasper -I../../../src/libjasper/include     -g
-c -o jpc_qmfb.lo jpc_qmfb.c
 cc -DHAVE_CONFIG_H -I. -I../../../src/libjasper/include/jasper
-I../../../src/libjasper/include -g -c jpc_qmfb.c -o jpc_qmfb.o
"jpc_qmfb.c", line 76: warning: invalid white space character in directive
"jpc_qmfb.c", line 78: warning: invalid white space character in directive
"jpc_qmfb.c", line 79: warning: invalid white space character in directive
"jpc_qmfb.c", line 80: warning: invalid white space character in directive
"jpc_qmfb.c", line 81: warning: invalid white space character in directive
"jpc_qmfb.c", line 83: warning: invalid white space character in directive
"jpc_qmfb.c", line 84: warning: invalid white space character in directive
"jpc_qmfb.c", line 85: warning: invalid white space character in directive
"jpc_qmfb.c", line 87: warning: invalid white space character in directive
"jpc_qmfb.c", line 88: warning: invalid white space character in directive
"jpc_qmfb.c", line 90: warning: invalid white space character in directive
"jpc_qmfb.c", line 91: warning: invalid white space character in directive

I think this is the compiler, not the preprocessor, but I can't say for sure.

Thanks for the fix!
Comment 3 Ralph Giles 2009-02-16 13:26:01 UTC
Those are all #include or #if/#endif lines, so it's preprocessor directive
parsing that's failing. It manages to count the lines correctly though. :)

Have you reported this against the Sun Studio Compiler as well?
Comment 4 Ralph Giles 2009-02-27 16:04:30 UTC
*** Bug 690311 has been marked as a duplicate of this bug. ***