braice / MuMuDVB

A DVB IPTV streaming software
http://mumudvb.braice.net/
GNU General Public License v2.0
216 stars 133 forks source link

Make fails with error: ‘curr_channel’ undeclared (unicast_monit.c) #285

Closed outhud closed 2 years ago

outhud commented 2 years ago

Hi,

I'm trying to run MuMuDVB on Raspberry Pi 3 B running Ubuntu 20.04.3 64-bit.

There didn't seem to be a .deb file to install on arm64, so I'm trying to build from source.

The makefails with the error below:

make[1]: Entering directory '/home/ubuntu/MuMuDVB/src'
make  all-am
make[2]: Entering directory '/home/ubuntu/MuMuDVB/src'
gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -g -O2 -MT unicast_monit.o -MD -MP -MF .deps/unicast_monit.Tpo -c -o unicast_monit.o unicast_monit.c
unicast_monit.c: In function ‘unicast_send_prometheus’:
unicast_monit.c:558:10: error: ‘curr_channel’ undeclared (first use in this function)
  558 |     for (curr_channel = 0; curr_channel < number_of_channels; curr_channel++)
      |          ^~~~~~~~~~~~
unicast_monit.c:558:10: note: each undeclared identifier is reported only once for each function it appears in
unicast_monit.c:539:69: warning: parameter ‘channels’ set but not used [-Wunused-but-set-parameter]
  539 | unicast_send_prometheus (int number_of_channels, mumudvb_channel_t *channels, int Socket, strength_parameters_t *strengthparams)
      |                                                  ~~~~~~~~~~~~~~~~~~~^~~~~~~~
unicast_monit.c: In function ‘unicast_send_channel_list_xml’:
unicast_monit.c:613:9: warning: unused variable ‘scam_vars’ [-Wunused-variable]
  613 |   char *scam_vars;
      |         ^~~~~~~~~
make[2]: *** [Makefile:492: unicast_monit.o] Error 1
make[2]: Leaving directory '/home/ubuntu/MuMuDVB/src'
make[1]: *** [Makefile:346: all] Error 2
make[1]: Leaving directory '/home/ubuntu/MuMuDVB/src'
make: *** [Makefile:347: all-recursive] Error 1

Any ideas on how to solve this? I ran ./configure with no options and it completed OK.

braice commented 2 years ago

Hello

I think it is because of a recent commit, can you please try a git checkout with a comit of two weeks ago?

I will dive deeper in the next few days to make a fix..

Brice

On Sun, Jan 30, 2022, 19:53 outhud @.***> wrote:

Hi,

I'm trying to run MuMuDVB on Raspberry Pi 3 B running Ubuntu 20.04.3 64-bit.

There didn't seem to be a .deb file to install on arm64, so I'm trying to build from source.

The make fails with the error below:

make[1]: Entering directory '/home/ubuntu/MuMuDVB/src'

make all-am

make[2]: Entering directory '/home/ubuntu/MuMuDVB/src'

gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -g -O2 -MT unicast_monit.o -MD -MP -MF .deps/unicast_monit.Tpo -c -o unicast_monit.o unicast_monit.c

unicast_monit.c: In function ‘unicast_send_prometheus’:

unicast_monit.c:558:10: error: ‘curr_channel’ undeclared (first use in this function)

558 | for (curr_channel = 0; curr_channel < number_of_channels; curr_channel++)

  |          ^~~~~~~~~~~~

unicast_monit.c:558:10: note: each undeclared identifier is reported only once for each function it appears in

unicast_monit.c:539:69: warning: parameter ‘channels’ set but not used [-Wunused-but-set-parameter]

539 | unicast_send_prometheus (int number_of_channels, mumudvb_channel_t channels, int Socket, strength_parameters_t strengthparams)

  |                                                  ~~~~~~~~~~~~~~~~~~~^~~~~~~~

unicast_monit.c: In function ‘unicast_send_channel_list_xml’:

unicast_monit.c:613:9: warning: unused variable ‘scam_vars’ [-Wunused-variable]

613 | char *scam_vars;

  |         ^~~~~~~~~

make[2]: *** [Makefile:492: unicast_monit.o] Error 1

make[2]: Leaving directory '/home/ubuntu/MuMuDVB/src'

make[1]: *** [Makefile:346: all] Error 2

make[1]: Leaving directory '/home/ubuntu/MuMuDVB/src'

make: *** [Makefile:347: all-recursive] Error 1

Any ideas on how to solve this? I ran ./configure with no options and it completed OK.

— Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/285, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDYJXEBO4C43HSQ2QCDUYWCLXANCNFSM5NES3CVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

braice commented 2 years ago

Should be fixed now

You can #close this issue

On Sun, Jan 30, 2022 at 10:34 PM Brice Dubost @.***> wrote:

Hello

I think it is because of a recent commit, can you please try a git checkout with a comit of two weeks ago?

I will dive deeper in the next few days to make a fix..

Brice

On Sun, Jan 30, 2022, 19:53 outhud @.***> wrote:

Hi,

I'm trying to run MuMuDVB on Raspberry Pi 3 B running Ubuntu 20.04.3 64-bit.

There didn't seem to be a .deb file to install on arm64, so I'm trying to build from source.

The make fails with the error below:

make[1]: Entering directory '/home/ubuntu/MuMuDVB/src'

make all-am

make[2]: Entering directory '/home/ubuntu/MuMuDVB/src'

gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -g -O2 -MT unicast_monit.o -MD -MP -MF .deps/unicast_monit.Tpo -c -o unicast_monit.o unicast_monit.c

unicast_monit.c: In function ‘unicast_send_prometheus’:

unicast_monit.c:558:10: error: ‘curr_channel’ undeclared (first use in this function)

558 | for (curr_channel = 0; curr_channel < number_of_channels; curr_channel++)

  |          ^~~~~~~~~~~~

unicast_monit.c:558:10: note: each undeclared identifier is reported only once for each function it appears in

unicast_monit.c:539:69: warning: parameter ‘channels’ set but not used [-Wunused-but-set-parameter]

539 | unicast_send_prometheus (int number_of_channels, mumudvb_channel_t channels, int Socket, strength_parameters_t strengthparams)

  |                                                  ~~~~~~~~~~~~~~~~~~~^~~~~~~~

unicast_monit.c: In function ‘unicast_send_channel_list_xml’:

unicast_monit.c:613:9: warning: unused variable ‘scam_vars’ [-Wunused-variable]

613 | char *scam_vars;

  |         ^~~~~~~~~

make[2]: *** [Makefile:492: unicast_monit.o] Error 1

make[2]: Leaving directory '/home/ubuntu/MuMuDVB/src'

make[1]: *** [Makefile:346: all] Error 2

make[1]: Leaving directory '/home/ubuntu/MuMuDVB/src'

make: *** [Makefile:347: all-recursive] Error 1

Any ideas on how to solve this? I ran ./configure with no options and it completed OK.

— Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/285, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDYJXEBO4C43HSQ2QCDUYWCLXANCNFSM5NES3CVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

outhud commented 2 years ago

Great, compiling for me now. Thanks for the quick reply!