Bug#954547: sipxtapi: FTBFS: os/linux/OsTaskLinux.cpp:52:19: error: ‘int gettid() ’ was declared ‘extern’ and later ‘static’ [-fpermissive]

Lucas Nussbaum lucas at debian.org
Sun Mar 22 07:31:28 GMT 2020


Source: sipxtapi
Version: 3.3.0~test17-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200321 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> /bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../sipXportLib/include -I../../sipXcallLib/include  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SSL -DDEFAULT_CODECS_PATH='"/usr/lib/x86_64-linux-gnu/sipxtapi/codecs"'   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DHAVE_SPEEX -D__pingtel_on_posix__ -D_linux_ -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fmessage-length=0 -Wall -Wformat -Wwrite-strings -Wpointer-arith -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -c -o pt_csem.lo `test -f 'os/linux/pt_csem.c' || echo './'`os/linux/pt_csem.c
> os/linux/OsTaskLinux.cpp:52:19: error: ‘int gettid()’ was declared ‘extern’ and later ‘static’ [-fpermissive]
>    52 | static inline int gettid() {return syscall(SYS_gettid);}
>       |                   ^~~~~~
> In file included from /usr/include/unistd.h:1170,
>                  from os/linux/OsTaskLinux.cpp:16:
> /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration of ‘__pid_t gettid()’
>    34 | extern __pid_t gettid (void) __THROW;
>       |                ^~~~~~
> os/linux/OsTaskLinux.cpp: In static member function ‘static void* OsTaskLinux::taskEntry(void*)’:
> os/linux/OsTaskLinux.cpp:855:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   855 |    return ((void *)returnCode);
>       |                    ^~~~~~~~~~
> /bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../sipXportLib/include -I../../sipXcallLib/include  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SSL -DDEFAULT_CODECS_PATH='"/usr/lib/x86_64-linux-gnu/sipxtapi/codecs"'   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DHAVE_SPEEX -D__pingtel_on_posix__ -D_linux_ -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fmessage-length=0 -Wall -Wformat -Wwrite-strings -Wpointer-arith -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -c -o pt_mutex.lo `test -f 'os/linux/pt_mutex.c' || echo './'`os/linux/pt_mutex.c
> make[6]: *** [Makefile:2208: libsipXport_la-OsTaskLinux.lo] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/03/21/sipxtapi_3.3.0~test17-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-voip-maintainers mailing list