[Asterisk-Users] cvs STABLE of 08/10 & gcc4 issue

Patrick asterisk at puzzled.xs4all.nl
Sat Aug 13 14:48:45 MST 2005


Hi all,

I'm trying to make my cvs STABLE 08/10 srpms build properly on an
updated FC4 box. When I rebuild the srpm with FC4's gcc4 I get this
error:

gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT
-D_GNU_SOURCE  -O3 -march=i686   -DZAPTEL_OPTIMIZATIONS
-DASTERISK_VERSION=\"CVS-v1-0-08/13/05-23:45:43\" -DINSTALL_PREFIX=\"\"
-DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\"
-DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\"
-DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\"
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=
\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"
-DBUSYDETECT_MARTIN         -c -o channel.o channel.c
channel.c:64: error: static declaration of 'uniquelock' follows
non-static declaration
include/asterisk/channel.h:58: error: previous declaration of
'uniquelock' was here
make: *** [channel.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.94064 (%install)

When I force the use of gcc32 all is well and the asterisk srpm compiles
fine. Any ideas how I can make asterisk compile with gcc4 too?

Thanks and regards,
Patrick



More information about the asterisk-users mailing list