Summary: | Compilation Error in webcam module of CVS | ||
---|---|---|---|
Product: | [Applications] kstars | Reporter: | Xavier Fung <xavier114fch> |
Component: | general | Assignee: | kstars |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Xavier Fung
2004-04-21 08:56:56 UTC
Hello, We are aware of this issue. It's some problem with gcc version 3.3.x, but we have not yet tracked it dowen. As a workaround, you can do the following: 1. cd to kstars/kstars/indi/webcam 2. paste the failed compile command onto the command line, but omit the "-ansi" argument: gcc -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 3. cd back to the top directory, and try "make" again. Thank you for the bug report. regards, Jason Hello Jason, The problem mentioned has been resolved by not enabling -ansi. Thank you. However, another compliation matter comes. Here is the error message: make[3]: Entering directory `/home/xavier/kdeedu/kstars/kstars/indi' source='indidrivermain.c' object='indidrivermain.o' libtool=no \ depfile='.deps/indidrivermain.Po' tmpdepfile='.deps/indidrivermain.TPo' \ depmode=gcc3 /bin/sh ../../../admin/depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DQT_THREAD_SUPPORT -D_REENTRANT -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 'indidrivermain.c' || echo './'`indidrivermain.c indidrivermain.c: In function `IDLog': indidrivermain.c:441: warning: function might be possible candidate for `printf' format attribute indidrivermain.c: In function `IUUpdateSwitches': indidrivermain.c:561: error: assignment of read-only member `s' indidrivermain.c: In function `IUUpdateNumbers': indidrivermain.c:585: error: assignment of read-only member `s' indidrivermain.c:592: error: assignment of read-only member `s' indidrivermain.c: In function `clientMsgCB': indidrivermain.c:637: warning: unused parameter `arg' indidrivermain.c: In function `dispatch': indidrivermain.c:705: warning: implicit declaration of function `f_scansexa' indidrivermain.c:727: warning: declaration of `ep' shadows a previous local indidrivermain.c:673: warning: shadowed declaration is here indidrivermain.c: In function `pstateStr': indidrivermain.c:863: warning: return discards qualifiers from pointer target type indidrivermain.c:864: warning: return discards qualifiers from pointer target type indidrivermain.c:865: warning: return discards qualifiers from pointer target type indidrivermain.c:866: warning: return discards qualifiers from pointer target type indidrivermain.c: In function `sstateStr': indidrivermain.c:878: warning: return discards qualifiers from pointer target type indidrivermain.c:879: warning: return discards qualifiers from pointer target type indidrivermain.c: In function `ruleStr': indidrivermain.c:891: warning: return discards qualifiers from pointer target type indidrivermain.c:892: warning: return discards qualifiers from pointer target type indidrivermain.c:893: warning: return discards qualifiers from pointer target type indidrivermain.c: In function `permStr': indidrivermain.c:905: warning: return discards qualifiers from pointer target type indidrivermain.c:906: warning: return discards qualifiers from pointer target type indidrivermain.c:907: warning: return discards qualifiers from pointer target type indidrivermain.c: At top level: indidrivermain.c:929: warning: initialization discards qualifiers from pointer target type make[3]: *** [indidrivermain.o] Error 1 make[3]: Leaving directory `/home/xavier/kdeedu/kstars/kstars/indi' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/xavier/kdeedu/kstars/kstars/indi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/xavier/kdeedu/kstars/kstars' make: *** [all-recursive] Error 1 It seems there are some coding problems here. Thanks for your quick reply. Xavier Hello, On Wednesday 21 April 2004 09:54 am, Xavier Fung wrote: > indidrivermain.c:441: warning: function might be possible candidate for > `printf' format attribute indidrivermain.c: In function `IUUpdateSwitches': > indidrivermain.c:561: error: assignment of read-only member `s' > indidrivermain.c: In function `IUUpdateNumbers': > indidrivermain.c:585: error: assignment of read-only member `s' > indidrivermain.c:592: error: assignment of read-only member `s' This is again, a problem that is restricted to only some versions of gcc. On my system, these errors are only warnings. This is why we haven't caught the problem yet. Also, this issue is already reported as Bug #80019, so please watch that bug report for updates (I may have a fix already, but I want to run it by the INDI programmer first). regards, Jason Jasem committed the fix. |