Summary: | ASTERISK-02999: Fails to compile on Linux FC3 (latest CVS) | ||
Reporter: | nigelhorne (nigelhorne) | Labels: | |
Date Opened: | 2004-12-15 10:05:08.000-0600 | Date Closed: | 2004-12-15 13:10:07.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) mydiff.txt | |
Description: | I just sent this by email, but then my account arrived ;-) I just downloaded the latest libpri according to the instructions at http://www.asterisk.org/index.php?menu=download When I try to compile it fails thus. I don't know why it fails, I see tons of warnings but no fatals. Anyway maybe you can help. This is on Fedora Core 3 Linux, gcc is 3.4.2 -Nigel Horne cc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -O2 -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer -ffast-math -msse2 -msse -mmmx -mfpmath=sse -pedantic -c -o pri.o pri.c In file included from pri.c:23: pri_internal.h:37: warning: ISO C forbids forward references to `enum' types pri_internal.h:38: warning: ISO C forbids forward references to `enum' types In file included from pri.c:24: pri_q921.h:74: warning: type of bit-field `ea1' is a GCC extension pri_q921.h:75: warning: type of bit-field `c_r' is a GCC extension pri_q921.h:76: warning: type of bit-field `sapi' is a GCC extension pri_q921.h:77: warning: type of bit-field `ea2' is a GCC extension pri_q921.h:78: warning: type of bit-field `tei' is a GCC extension pri_q921.h:80: warning: ISO C forbids zero-size array `data' pri_q921.h:93: warning: type of bit-field `ft' is a GCC extension pri_q921.h:94: warning: type of bit-field `ss' is a GCC extension pri_q921.h:95: warning: type of bit-field `x0' is a GCC extension pri_q921.h:96: warning: type of bit-field `p_f' is a GCC extension pri_q921.h:97: warning: type of bit-field `n_r' is a GCC extension pri_q921.h:99: warning: ISO C forbids zero-size array `data' pri_q921.h:112: warning: type of bit-field `ft' is a GCC extension pri_q921.h:113: warning: type of bit-field `m2' is a GCC extension pri_q921.h:114: warning: type of bit-field `p_f' is a GCC extension pri_q921.h:115: warning: type of bit-field `m3' is a GCC extension pri_q921.h:117: warning: ISO C forbids zero-size array `data' pri_q921.h:130: warning: type of bit-field `ft' is a GCC extension pri_q921.h:131: warning: type of bit-field `n_s' is a GCC extension pri_q921.h:132: warning: type of bit-field `p_f' is a GCC extension pri_q921.h:133: warning: type of bit-field `n_r' is a GCC extension pri_q921.h:135: warning: ISO C forbids zero-size array `data' pri_q921.h:140: warning: ISO C forbids zero-size array `raw' In file included from pri.c:25: pri_q931.h:73: warning: ISO C forbids zero-size array `raw' pri_q931.h:79: warning: type of bit-field `crlen' is a GCC extension pri_q931.h:80: warning: type of bit-field `x0' is a GCC extension pri_q931.h:82: warning: ISO C forbids zero-size array `contents' pri_q931.h:93: warning: type of bit-field `msg' is a GCC extension pri_q931.h:94: warning: type of bit-field `f' is a GCC extension pri_q931.h:96: warning: ISO C forbids zero-size array `data' pri_q931.h:103: warning: ISO C forbids zero-size array `data' pri.c: In function `pri_node2str': pri.c:32: warning: return discards qualifiers from pointer target type pri.c:34: warning: return discards qualifiers from pointer target type pri.c:36: warning: return discards qualifiers from pointer target type pri.c:38: warning: return discards qualifiers from pointer target type pri.c: In function `pri_switch2str': pri.c:46: warning: return discards qualifiers from pointer target type pri.c:48: warning: return discards qualifiers from pointer target type pri.c:50: warning: return discards qualifiers from pointer target type pri.c:52: warning: return discards qualifiers from pointer target type pri.c:54: warning: return discards qualifiers from pointer target type pri.c:56: warning: return discards qualifiers from pointer target type pri.c:58: warning: return discards qualifiers from pointer target type pri.c:60: warning: return discards qualifiers from pointer target type pri.c:62: warning: return discards qualifiers from pointer target type pri.c:64: warning: return discards qualifiers from pointer target type pri.c: In function `pri_event2str': pri.c:226: warning: return discards qualifiers from pointer target type pri.c:228: warning: return discards qualifiers from pointer target type pri.c:230: warning: return discards qualifiers from pointer target type pri.c:232: warning: return discards qualifiers from pointer target type pri.c:234: warning: return discards qualifiers from pointer target type pri.c:236: warning: return discards qualifiers from pointer target type pri.c: In function `pri_check_event': pri.c:248: warning: passing arg 1 of `pri_error' discards qualifiers from pointer target type pri.c: In function `pri_dump_event': pri.c:429: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:435: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:438: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:440: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:441: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:442: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:445: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c:448: warning: passing arg 1 of `pri_message' discards qualifiers from pointer target type pri.c: In function `pri_message': pri.c:510: warning: format not a string literal and no format arguments pri.c: In function `pri_error': pri.c:523: warning: format not a string literal and no format arguments make: *** [pri.o] Error 1 ****** ADDITIONAL INFORMATION ****** gcc 3.4.2 | ||
Comments: | By: nigelhorne (nigelhorne) 2004-12-15 10:13:36.000-0600 Installing zlib-devel fixed this. Please close - I couldn't work out on your website how to remove/close my bug. By: Mark Spencer (markster) 2004-12-15 10:51:20.000-0600 I did fix the one warning that is interesting. By: Russell Bryant (russell) 2004-12-15 13:10:07.000-0600 fixed in 1.0 |