Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #54

Open
fulvous opened this issue Mar 30, 2023 · 0 comments
Open

Compilation error #54

fulvous opened this issue Mar 30, 2023 · 0 comments

Comments

@fulvous
Copy link

fulvous commented Mar 30, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant