Hello,
trying to install captagent on Debian 11 closed with an error.
I did this until it fails:
cd /usr/src
git clone https://github.com/sipcapture/captagent.git captagent
cd captagent
./build.sh
./configure --enable-ssl --enable-tls --enable-ipv6
# ./configure --enable-ssl --enable-tls --enable-ipv6
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to use compression...
checking whether to use ssl...
checking whether to use mysql...
checking whether to use pcre...
checking whether to use redis...
checking whether to use TLS...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
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
Does anyone know how to solve this?
Mit freundlichen Grüßen,
Matthias
before i run it, I installed the requirements:
apt-get install libexpat1-dev libpcap-dev libjson-c-dev libtool automake flex bison libgcrypt11-dev libuv1-dev libpcre3-dev libfl2 libfl-dev
apt-get install -y libgcrypt20 libgcrypt20-dev libssl-dev
--
You received this message because you are subscribed to the Google Groups "Homer Capture Server. sipcapture.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to homer-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/1431015219.3490030.1632755286083.JavaMail.zimbra%40mx.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/1179402719.3490269.1632755470319.JavaMail.zimbra%40mx.
--
You received this message because you are subscribed to the Google Groups "Homer Capture Server. sipcapture.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to homer-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/1431015219.3490030.1632755286083.JavaMail.zimbra%40mx.
Hello,
i tried the solution of andrew colin:
# apt-get install gcc
/debian bullseye/main amd64 gcc amd64 4:10.2.1-1 [5192 B]
So configuration looks fine now, but make && make install isn’t successful :/
Should I try with your version 9 too ?
# make && make install
Making all in src
make[1]: Entering directory '/usr/src/captagent/src'
make all-recursive
make[2]: Entering directory '/usr/src/captagent/src'
Making all in .
make[3]: Entering directory '/usr/src/captagent/src'
CCLD captagent
/usr/bin/ld: conf_function.o:/usr/src/captagent/src/../include/captagent/api.h:125: multiple definition of `module_list'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:125: first defined here
/usr/bin/ld: conf_function.o:/usr/src/captagent/src/../include/captagent/modules.h:30: multiple definition of `module_path'; captagent.o:/usr/src/captagent/src/../include/captagent/modules.h:30: first defined here
/usr/bin/ld: conf_function.o:/usr/src/captagent/src/../include/captagent/api.h:123: multiple definition of `hepmod'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:123: first defined here
/usr/bin/ld: modules.o:/usr/src/captagent/src/../include/captagent/modules.h:30: multiple definition of `module_path'; captagent.o:/usr/src/captagent/src/../include/captagent/modules.h:30: first defined here
/usr/bin/ld: modules.o:/usr/src/captagent/src/../include/captagent/api.h:125: multiple definition of `module_list'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:125: first defined here
/usr/bin/ld: modules.o:/usr/src/captagent/src/../include/captagent/api.h:123: multiple definition of `hepmod'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:123: first defined here
/usr/bin/ld: xmlread.o:/usr/src/captagent/src/../include/captagent/api.h:125: multiple definition of `module_list'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:125: first defined here
/usr/bin/ld: xmlread.o:/usr/src/captagent/src/../include/captagent/api.h:123: multiple definition of `hepmod'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:123: first defined here
/usr/bin/ld: capplan.o:/usr/src/captagent/src/conf_function.h:82: multiple definition of `modules'; conf_function.o:/usr/src/captagent/src/conf_function.h:82: first defined here
/usr/bin/ld: capplan.o:/usr/src/captagent/src/../include/captagent/modules.h:30: multiple definition of `module_path'; captagent.o:/usr/src/captagent/src/../include/captagent/modules.h:30: first defined here
/usr/bin/ld: capplan.o:/usr/src/captagent/src/../include/captagent/api.h:125: multiple definition of `module_list'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:125: first defined here
/usr/bin/ld: capplan.o:/usr/src/captagent/src/../include/captagent/api.h:123: multiple definition of `hepmod'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:123: first defined here
/usr/bin/ld: capplan.tab.o:/usr/src/captagent/src/conf_function.h:82: multiple definition of `modules'; conf_function.o:/usr/src/captagent/src/conf_function.h:82: first defined here
/usr/bin/ld: capplan.tab.o:/usr/src/captagent/src/../include/captagent/modules.h:30: multiple definition of `module_path'; captagent.o:/usr/src/captagent/src/../include/captagent/modules.h:30: first defined here
/usr/bin/ld: capplan.tab.o:/usr/src/captagent/src/../include/captagent/api.h:125: multiple definition of `module_list'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:125: first defined here
/usr/bin/ld: capplan.tab.o:/usr/src/captagent/src/../include/captagent/api.h:123: multiple definition of `hepmod'; captagent.o:/usr/src/captagent/src/../include/captagent/api.h:123: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:624: captagent] Error 1
make[3]: Leaving directory '/usr/src/captagent/src'
make[2]: *** [Makefile:733: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/captagent/src'
make[1]: *** [Makefile:520: all] Error 2
make[1]: Leaving directory '/usr/src/captagent/src'
make: *** [Makefile:465: all-recursive] Error 1
.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/CAAKNkuy2keyXhY4NJuWULnvgNY5arJRi5POzQOvLyKjMYyB0rQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/966636872.3493282.1632756001435.JavaMail.zimbra%40mx.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/966636872.3493282.1632756001435.JavaMail.zimbra%40mx.
Hey,
i tried now to install apt-get install gcc-9 and do # ./configure --enable-ssl --enable-tls --enable-ipv6 but now same error like before.
Looks like gcc-9 is not working in this way for captagent with Debian 11.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/CAHovRKutwtvqTPg67-Q7k1KAwf%2BUU_JDH8_E93%2BYGP7YCCNavw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/1663190922.3499592.1632757375519.JavaMail.zimbra%40mx.
Thanks a lot for this amazing fast support 😊
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/CAAKNkuzOoukREvoGOe6y2HK01KNXM0UHv9PBVwT7btp1R%3Duwng%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/1561206258.3501522.1632757993157.JavaMail.zimbra%40mx.
CFLAGS="$CFLAGS -g -O0 -Wno-error -fcommon"
Then I did a ./build.sh and ./configure and then same problem by make install…
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/CAAKNkuy%2BrZdV4Qr%2BxPjF8ZisQy554UrEqz_-NYPp1x9iXRcASg%40mail.gmail.com.
Also this just work with gcc-10…
If I do ap-get remove gcc and ap-get install gcc-9 I got same error like before by doing ./configure command:
so don’t know…. Maybe I miss something?
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/1915203830.3513634.1632761465491.JavaMail.zimbra%40mx.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/760187539.3515290.1632761991450.JavaMail.zimbra%40mx.
--
You received this message because you are subscribed to the Google Groups "Homer Capture Server. sipcapture.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to homer-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/homer-discuss/17f7c066-b614-4b13-a4bf-341fa2e16d11n%40googlegroups.com.