Comments (14)
🌟
from captagent.
Hello,
now it worked!
i rm the whole usr/src/captagent directory and git clone again captagent, made the edit in configure.ac and now all went through... looks like ./build.sh doesn't work well, if there is ./build already once executed in directory.
from captagent.
Thanks @ciscospirit for the test and the confirmation.
I'll do some test and probably I'll create a debian11
branch with that fix in the configure.ac
and put some comment about that.
The idea is then create captagent compatible 100% with gcc-10, but this required various change, so for now this is the best way to deal with it.
Thanks a lot again.
from captagent.
I think there is already #239, which fixes this issue. @kYroL01
from captagent.
Your report is appreciated. Please star this repository to motivate its developers! ⭐
from captagent.
if i try to use gcc-9 instead of gcc on Debian 11 (apt-get install gcc vs. apt-get install gcc-9) i got an error by command "./configure --enable-ssl --enable-tls --enable-ipv6":
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in /usr/src/captagent': configure: error: no acceptable C compiler found in $PATH See
config.log' for more details
from captagent.
Thank you @ciscospirit .
- Debian 11 has
gcc-10
by default, so if you installapt-get install gcc
, it will install version 10.
In this case you can solve it change this line https://github.com/sipcapture/captagent/blob/master/configure.ac#L115
with this
CFLAGS="$CFLAGS -g -O0 -Wno-error -fcommon"
and run again
./build.sh
./configure --enable-ssl --enable-tls --enable-ipv6
make && make install
- If you have installed
gcc-9
you have to symlink the version 9 on Debian 11 in this way:
sudo ln -s /usr/bin/gcc-9 /usr/bin/gcc
and then place the same line as before
CFLAGS="$CFLAGS -g -O0 -Wno-error -fcommon"
and then
./build.sh
./configure --enable-ssl --enable-tls --enable-ipv6
make && make install
I think this will solve your problem - I tested on a Debian 11 VM
from captagent.
i already tried this to change this Line 115 in /usr/src/captagent/configure.ac but still got the same problem.
make && make install is not working and bring out the above error.
i have this gcc installed:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20210110 (Debian 10.2.1-6)
from captagent.
i have this OS installed: bullseye (11.0) 5.10.0-8-amd64 SMP (ext4)
from captagent.
could it possible that i maybe miss some depencies installing?
i installed this:
apt-get install libexpat1-dev libpcap-dev libjson-c-dev libtool automake flex bison libgcrypt11-dev libuv1-dev libpcre3-dev libfl2 libfl-dev
but if i try apt-get install gcc there are some more suggested packages and recommended packages which i didn't installed with this:
The following additional packages will be installed:
cpp
Suggested packages:
cpp-doc gcc-multilib manpages-dev autoconf automake libtool flex bison gcc-doc
Recommended packages:
libc6-dev | libc-dev
The following NEW packages will be installed:
cpp gcc
from captagent.
@ciscospirit
I reproduced exactly the same situation on a new Debian11 and in the way I suggest you I solve the problem for gcc-10.
Could you please try from scratch again and install all the pkgs suggested ?
The -Wno-error -fcommon
must do the trick here.
from captagent.
@btriller don't forget to star us :-) https://github.com/sipcapture/homer/stargazers
from captagent.
@ciscospirit and you as well :-) https://github.com/sipcapture/homer/stargazers
from captagent.
@btriller I test today and I'll merge it. Wanted to be sure this was tested more and have different feedback.
Thank you all! and as Alex said, star us :D
from captagent.
Related Issues (20)
- captagent[3276431]: [ERR] protocol_sip.c:141 Couldnot find this call HOT 29
- Captagent Problem on Debian 11 HOT 5
- Problem with systemd captagent HOT 7
- TLS doesn't work for captagent HOT 1
- Multiple transport profiles HOT 6
- Captagent crashed: double free or corruption HOT 4
- Can not compile - Missing files? HOT 2
- Сaptagent does not capture traffic destined for the ipsec tunnel HOT 1
- captagent 6.4.1 DEB Missing the package dependencies: error while loading shared libraries: libfl.so.2: HOT 1
- Centos7 compile error HOT 8
- Is --enable-mysql option working ? HOT 4
- TODO: remove MySQL feature as not supported anymore
- "TLS has been not enabled." - even after fresh reinstall HOT 3
- Segmentation fault when specify a specific filter with Captagent 6.4.1 HOT 9
- segfault at 0 ip 00007f480b0167de sp 00007f480a40ec00 error 4 in socket_pcap.so HOT 15
- Segmentation fault socket_pcap.c Captagent 6.4.1 HOT 3
- Segfault with captagent version 6.4.1 on Debian 11 HOT 16
- have problem with debian 12 and capagent HOT 2
- [ERR] protocol_sip.c:141 This is not DIAMETER HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captagent.