RangeNetworks / openbts

GSM+GPRS Radio Access Network Node
GNU Affero General Public License v3.0
864 stars 326 forks source link

Compilation error #54

Open fulvous opened 1 year ago

fulvous commented 1 year ago

Hi guys:

I am using Debian 11 (bullseye), 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux.

I succesfully run ./configure, but when running make I have the following errors:

`libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. "-DREPO_REV=\"7766ef94f2 CommonLibs:76b71d509b\"" -I../apps -I../CommonLibs -I../Control -I../GSM -I../GSMShare -I../GPRS -I../SGSNGGSN -I../SIP -I../SMS -I../TRXManager -I../Globals -I../CLI -I../Peering -I../NodeManager -I../NodeManager/JsonBox-0.4.3/include -I../Scanning -g -O2 -Wall -pthread -ldl -rdynamic -DTIMESTAMP_ISO=\"2023-03-30T11:30:19\" -O3 -lsqlite3 -MT libcommon_la-BitVector.lo -MD -MP -MF .deps/libcommon_la-BitVector.Tpo -c BitVector.cpp -fPIC -DPIC -o .libs/libcommon_la-BitVector.o In file included from /usr/include/unistd.h:1170, from ./Threads.h:34, from ./Logger.h:217, from BitVector.cpp:35: /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:28: error: macro "gettid" passed 1 arguments, but takes just 0 34 extern __pid_t gettid (void) __THROW; ^ In file included from BitVector.cpp:35: ./Logger.h:52: note: macro "gettid" defined here 52 # define gettid() syscall(SYS_gettid)

In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/string.h:26, from Vector.h:33, from BitVector.h:30, from BitVector.cpp:30: /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:30: error: expected initializer before ‘throw’ 34 | extern __pid_t gettid (void) __THROW; | ^~~ make[2]: [Makefile:803: libcommon_la-BitVector.lo] Error 1 make[2]: se sale del directorio '/opt/openbts/CommonLibs' make[1]: [Makefile:574: all-recursive] Error 1 make[1]: se sale del directorio '/opt/openbts' make: *** [Makefile:505: all] Error 2`

Could you please help?