Summary: | ASTERISK-06346: Compilation problem with chan_h323 and gcc 4.0.1 | ||
Reporter: | Mike Anikienko (mike anikienko) | Labels: | |
Date Opened: | 2006-02-17 02:07:11.000-0600 | Date Closed: | 2006-04-03 13:37:11 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_h323 |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) chan_h323.c.diff | |
Description: | gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer -DT38_SUPPORT -DWITH_SMDI -Imisdn -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DCRYPTO -fPIC -c -o chan_h323.o chan_h323.c chan_h323.c: In function 'oh323_hangup': chan_h323.c:499: warning: initialization discards qualifiers from pointer target type chan_h323.c: In function '__oh323_new': chan_h323.c:738: warning: passing argument 1 of 'snprintf' discards qualifiers from pointer target type chan_h323.c:745: error: 'struct ast_channel' has no member named 'type' chan_h323.c:768: warning: passing argument 1 of '__builtin_strncpy' discards qualifiers from pointer target type chan_h323.c: In function 'connection_made': chan_h323.c:1237: warning: unused variable 'c' chan_h323.c: In function 'chan_ringing': chan_h323.c:1439: warning: unused variable 'c' chan_h323.c: At top level: chan_h323.c:2314: warning: initialization from incompatible pointer type make[1]: *** [chan_h323.o] &ASTERISK-1048;&ASTERISK-1090;&ASTERISK-1074;&ASTERISK-1067;&ASTERISK-1076;&ASTERISK-1066; 1 Where is ast_channel.type ? What is instead 'type'? ****** ADDITIONAL INFORMATION ****** gcc -v Using built-in specs. Target: i586-mandriva-linux-gnu Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-languages=c,c++,ada,f95,objc,java --host=i586-mandriva-linux-gnu --with-system-zlib --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-gtk-cairo --disable-libjava-multilib Thread model: posix gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0) | ||
Comments: | By: Andrey S Pankov (casper) 2006-02-19 12:15:42.000-0600 Please find the patch chan_h323.c.diff attached. It fixes all the issues with chan_h323 not being updated for current SVN trunk. Disclaimer is on file at Digium. By: Andrey S Pankov (casper) 2006-02-19 12:30:06.000-0600 Moreover, compilation issues for non-default channel driver should not be reported as 'major' I think... By: Mike Anikienko (mike anikienko) 2006-02-19 23:41:30.000-0600 Thanks, problem solved. 'Major' because not described change in other part of asterisk result problem in this part. This problem appear since ~ 02-01-06. By: Matt O'Gorman (mogorman) 2006-04-03 13:36:47 Committed revision 17104. By: Matt O'Gorman (mogorman) 2006-04-03 13:37:09 solved with patch from 6446 |