logo       

Bug#319304: FTBFS: conflicting declarations of uniquelock: msg#00188

linux.debian.packages.voip.devel

Subject: Bug#319304: FTBFS: conflicting declarations of uniquelock

Package: asterisk
Version: 1.0.9.dfsg-3
Severity: serious
Tags: patch

asterisk fails to build because it declares uniquelock as extern in
channel.h and defines is as static in channel.c:

gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE
-O2 -march=i386 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"\"
-DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\"
-DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\"
-DASTVARRUNDIR=\"/var/run/asterisk\" -DASTSPOOLDIR=\"/var/spool/asterisk\"
-DASTDATADIR=\"/usr/share/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\"
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\"
-DASTMODDIR=\"/usr/lib/asterisk/modules\"
-DASTAGIDIR=\"/usr/share/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[1]: *** [channel.o] Error 1
make[1]: Leaving directory `/tmp/buildd/asterisk-1.0.9.dfsg'
make: *** [build-arch-stamp] Error 2

The attached patch makes the definition in channel.c not use static.

--
Matt

Attachment: patch
Description: Text document

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-voip-maintainers mailing list
Pkg-voip-maintainers@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise