Astmanproxy - still alive and usable?

Hi.

I’ve just tried to install GitHub - davetroy/astmanproxy: Asterisk Manager Proxy and also a
fork of it GitHub - davies147/astmanproxy: Asterisk Manager Proxy on a machine:

Red Hat Enterprise Linux release 9.4 (Plow)

Linux 5.14.0-427.37.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 13 12:41:50
EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)

The installation instructions are simple :slight_smile:

    make
    make install

Unfortunately, “make” ends with:

/bin/ld: config.o:(.bss+0x0): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

/bin/ld: config_perms.o:(.bss+0x0): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

/bin/ld: common.o:(.bss+0x0): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

/bin/ld: proxyfunc.o:(.bss+0x0): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

/bin/ld: log.o:(.bss+0x0): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

/bin/ld: ssl.o:(.bss+0x120): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

/bin/ld: md5.o:(.bss+0x0): multiple definition of `pc’; astmanproxy.o:
(.bss+0x160): first defined here

collect2: error: ld returned 1 exit status

make: *** [Makefile:82: astmanproxy] Error 1

I tried to email the original author but I get a bounce back saying the
address no longer exists.

Does anyone know whether astmanproxy can still be used, and if so, how to
build it?

Alternatively does anyone know of something else which looks like AMI to a
connecting client, and can itself connect to more than one Asterisk server
(using AMI), combining the event streams from the upstream connections and
feeding them to the client (which is an application I can’t modify, and only
knows how to make one AMI connection for itself)?

Thanks,

Antony.

On Wednesday 05 March 2025 at 17:36:49, Pooh via Asterisk Community wrote:

Hi.

I’ve just tried to install GitHub - davetroy/astmanproxy: Asterisk Manager Proxy and also
a fork of it GitHub - davies147/astmanproxy: Asterisk Manager Proxy

Replying to my own posting after fiddling with this for a while, the problem
turns out to be the gcc compiler having become more strict about what poor
programming practices it allows https://gcc.gnu.org/gcc-10/porting_to.html

If anyone finds this posting and wants to build astmanproxy for themselves, the
necessary change to the source code is trivial:

In the file

src/include/astmanproxy.h

change the line:

struct proxyconfig pc;

to be:

extern struct proxyconfig pc;

Then the compiler doesn’t complain, the application builds, and as far as I
can tell so far, it works.

Antony.


When you find yourself arguing with an idiot,
you should first of all make sure
that the other person isn’t doing the same thing.

Good find @Pooh. Did you fork it to your own GitHub ?