Installing Captagent on Debian 11 - configure: error: no acceptable C compiler found in $PATH

202 views
Skip to first unread message

Matthias Hohl

unread,
Sep 27, 2021, 11:08:11 AM9/27/21
to homer-...@googlegroups.com

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

 

Matthias Hohl

unread,
Sep 27, 2021, 11:11:12 AM9/27/21
to homer-...@googlegroups.com

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.

Andrew Colin

unread,
Sep 27, 2021, 11:12:38 AM9/27/21
to homer-...@googlegroups.com
Hi

Try apt-get install gcc
then compile again




--
Regards,

Andrew Colin
Senior DevOPS Team Lead

QXIP BV - Capture Engineering
Amsterdam, The Netherlands
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or legally privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of this original message. 

Michele Campus

unread,
Sep 27, 2021, 11:12:57 AM9/27/21
to homer-...@googlegroups.com
Hi Matthias,

Debian-11 has gcc10 by default that change a lot how the things are treated internally at kernel level.
Let me try to modify something and I'll ping you back. Anyway, you can also open a github issue where you explain all so we can keep track of that. I'll assign to myself. 

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


--
Michele Campus
mca...@qxip.net

Michele Campus

unread,
Sep 27, 2021, 11:16:42 AM9/27/21
to homer-...@googlegroups.com
If you can, install gcc compiler 9
sudo apt-get install gcc-9

and try again.

--
Michele Campus
mca...@qxip.net

Matthias Hohl

unread,
Sep 27, 2021, 11:20:05 AM9/27/21
to homer-...@googlegroups.com

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

Michele Campus

unread,
Sep 27, 2021, 11:22:03 AM9/27/21
to homer-...@googlegroups.com
Yes, I suggest you to try to stay to gcc-9 for now, because gcc-10 changed many things internally and we need to work on that.
I suggest you to unistall gcc-10 and try gcc-9.
Let me know.

Thanks



--
Michele Campus
mca...@qxip.net

Andrew Colin

unread,
Sep 27, 2021, 11:22:51 AM9/27/21
to homer-...@googlegroups.com
yes please uninstall gcc and try gcc9

Matthias Hohl

unread,
Sep 27, 2021, 11:42:59 AM9/27/21
to homer-...@googlegroups.com

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.

Michele Campus

unread,
Sep 27, 2021, 11:47:37 AM9/27/21
to homer-...@googlegroups.com
Let me try and back to you asap.

Thanks



--
Michele Campus
mca...@qxip.net

Matthias Hohl

unread,
Sep 27, 2021, 11:53:17 AM9/27/21
to homer-...@googlegroups.com

Thanks a lot for this amazing fast support 😊

Michele Campus

unread,
Sep 27, 2021, 12:38:05 PM9/27/21
to homer-...@googlegroups.com
You're welcome Matthias !
Customers like you are the one we want to keep our applications updates and efficient :) 

This said, I successfully compile the captagent on a Debian 11 VM with gcc-10 and gcc-9
What I did is modify this line  https://github.com/sipcapture/captagent/blob/master/configure.ac#L115
in this way:
CFLAGS="$CFLAGS -g -O0 -Wno-error -fno-common"

If it works, I'll create a branch called debian11 where I put this modification and a note about that ;)

Michele



--
Michele Campus
mca...@qxip.net

Michele Campus

unread,
Sep 27, 2021, 12:39:57 PM9/27/21
to homer-...@googlegroups.com
I made a typo :) This is the correct line to put
CFLAGS="$CFLAGS -g -O0 -Wno-error -fcommon"

Let me know
Michele
--
Michele Campus
mca...@qxip.net

Matthias Hohl

unread,
Sep 27, 2021, 12:51:12 PM9/27/21
to homer-...@googlegroups.com

Hello,

 

i changed the file /usr/src/captagent/ configure.ac at line 115 from

#CFLAGS="-g3"

 

to

CFLAGS="$CFLAGS -g -O0 -Wno-error -fcommon"

 

Then I did a ./build.sh and ./configure and then same problem by make install…

Matthias Hohl

unread,
Sep 27, 2021, 12:59:56 PM9/27/21
to homer-...@googlegroups.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?

Lorenzo Mangani

unread,
Sep 27, 2021, 2:55:51 PM9/27/21
to Homer Capture Server. sipcapture.org

This activity would be best performed by opening an issue on the repository of interest :) 
Could you kindly open one with the relevant details, and we can continue this in the proper setting?

Thanks!

Michele Campus

unread,
Sep 27, 2021, 3:08:56 PM9/27/21
to homer-...@googlegroups.com
So, with gcc-10 is working as I told you right?
For gcc-9 probably on Debian11 you have to to a symlink, but the default on Debian11 now is gcc-10.

Michele

Michele Campus

unread,
Sep 27, 2021, 3:11:01 PM9/27/21
to homer-...@googlegroups.com
As Lorenzo said, open an issue, even if the passage I told you solve the issue, so we can keep track of the solution and I'll report for the community.

Thanks a lot

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

Mounjaro for sale online

unread,
May 12, 2024, 6:37:59 PMMay 12
to Homer Capture Server. sipcapture.org
#MDMA #3MMC #Ecstacy #JWH #Alprazolam #4mmc #cocaine #eutylone #5cladba #butinaca ADB #6cladba #ketamine #k2sheets #k2spicespraywalmart #k2prisonsheets #cannabis #cannabinoids #benzos #etizolam #fentanyl @synthetic_butinaca
WhatsAp +15133346782
Reply all
Reply to author
Forward
Message has been deleted
0 new messages