Menu

#408 Unable to compile on 3.9.0 on MacOS Mojave

Bug
closed-fixed
nobody
None
5
2020-01-25
2018-12-28
No

Hello - I am attempting to compile grip on MacOS Mojave with macports installed gnome and Xcode toolchain. The package configure script completes successfully, however the compile fails with the following errors:

cdplay.c:1556:11: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
  if((mode==PM_PLAYLIST)) {
      ~~~~^~~~~~~~~~~~~
cdplay.c:1556:11: note: remove extraneous parentheses around the comparison to silence this warning
  if((mode==PM_PLAYLIST)) {
     ~    ^            ~
cdplay.c:1556:11: note: use '=' to turn this equality comparison into an assignment
  if((mode==PM_PLAYLIST)) {
          ^~
          =
cdplay.c:2046:40: error: use of undeclared identifier 'MAILER'
      g_snprintf(mailcmd,256,"%s < %s",MAILER,filename);
                                       ^
2 errors generated.
make[2]: *** [cdplay.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I think some of these can be tuned out with the right warnings suppressing - but the last on regarding the undefined identifier needs more attention. Can you help point me in the right direction?

Thanks,

Rett

Discussion

  • Solbu

    Solbu - 2019-02-16

    You can use «--disable-werror» as option to configure, which will turn the errors into warnings.

     
  • Solbu

    Solbu - 2020-01-25
    • status: open --> closed-fixed
     
  • Solbu

    Solbu - 2020-01-25

    Fixed in the comming release.

     

Log in to post a comment.