AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
8 stars 6 forks source link

Latest compile on debian 12 results in a warning / compile failure #270

Closed KB4MDD closed 8 months ago

KB4MDD commented 8 months ago

I am compiling the latest app_rpt on debian 12.
Linux kj4jj-220-1 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux Asterisk 20.5.2

I used - phreaknet install -b -s -v 20 This worked ok with no error message. asterisk was running.

After rpt_install.sh, I see this warning message:

   [CC] app_rpt/rpt_telemetry.c -> app_rpt/rpt_telemetry.o
app_rpt/rpt_telemetry.c: In function ‘rpt_telemetry’:
app_rpt/rpt_telemetry.c:2896:24: warning: ‘return’ with a value, in function returning void [-Wreturn-type]
 2896 |                 return NULL;
      |                        ^~~~
app_rpt/rpt_telemetry.c:2600:6: note: declared here
 2600 | void rpt_telemetry(struct rpt *myrpt, int mode, void *data)
      |      ^~~~~~~~~~~~~

The compile error is shown here:

/usr/bin/ld: backtrace.o: in function `__ast_bt_get_symbols':
/usr/src/asterisk-20.5.2/main/backtrace.c:224: undefined reference to `bfd_openr'
/usr/bin/ld: /usr/src/asterisk-20.5.2/main/backtrace.c:230: undefined reference to `bfd_check_format'
/usr/bin/ld: /usr/src/asterisk-20.5.2/main/backtrace.c:258: undefined reference to `bfd_map_over_sections'
/usr/bin/ld: /usr/src/asterisk-20.5.2/main/backtrace.c:262: undefined reference to `bfd_close'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:323: asterisk] Error 1
make: *** [Makefile:396: main] Error 2

Further attempts to run make result in the above error.

encbar5 commented 8 months ago

I built using asl3-asterisk, with asterisk 20.5.2 and this was not a problem. asl3-asterisk commit 7230a71 app_rpt commit d4b6a01 command: asl3-asterisk/build-tree -a 20.5.2 -r 1 -v 0.1.5.d4b6a01

It may be possible that rpt_install.sh is not doing something right.