Giter Site home page Giter Site logo

Comments (14)

btriller avatar btriller commented on August 17, 2024 3

🌟

from captagent.

ciscospirit avatar ciscospirit commented on August 17, 2024 1

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.

kYroL01 avatar kYroL01 commented on August 17, 2024 1

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.

btriller avatar btriller commented on August 17, 2024 1

I think there is already #239, which fixes this issue. @kYroL01

from captagent.

github-actions avatar github-actions commented on August 17, 2024

Your report is appreciated. Please star this repository to motivate its developers! ⭐

from captagent.

ciscospirit avatar ciscospirit commented on August 17, 2024

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.

kYroL01 avatar kYroL01 commented on August 17, 2024

Thank you @ciscospirit .

  1. Debian 11 has gcc-10 by default, so if you install apt-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
  1. 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.

ciscospirit avatar ciscospirit commented on August 17, 2024

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.

ciscospirit avatar ciscospirit commented on August 17, 2024

i have this OS installed: bullseye (11.0) 5.10.0-8-amd64 SMP (ext4)

from captagent.

ciscospirit avatar ciscospirit commented on August 17, 2024

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.

kYroL01 avatar kYroL01 commented on August 17, 2024

@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.

adubovikov avatar adubovikov commented on August 17, 2024

@btriller don't forget to star us :-) https://github.com/sipcapture/homer/stargazers

from captagent.

adubovikov avatar adubovikov commented on August 17, 2024

@ciscospirit and you as well :-) https://github.com/sipcapture/homer/stargazers

from captagent.

kYroL01 avatar kYroL01 commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.