Menu

#198 Cannot compile Xfe 1.40 on !Linux

v1.0_(example)
closed-fixed
nobody
None
9
2015-08-11
2015-01-12
ibara2
No

In main.cpp:310, there is FXString cmd under an #if defined(linux) block.
However, cmd is used again on line 333 outside the #if defined(linux) block. The compiler throws a not declared in this scope error on !Linux and compilation fails.

Found while trying to compile on OpenBSD:
c++ -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../intl -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/include -I/usr/X11R6/include/freetype2 -I/usr/local/include -I/usr/local/include/fox-1.6 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -O2 -pipe -DHAVE_XFT_H -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cpp &&\ mv -f $depbase.Tpo $depbase.Po
main.cpp: In function 'int main(int, char**)':
main.cpp:333: error: 'cmd' was not declared in this scope

Discussion

  • Roland Baudin

    Roland Baudin - 2015-01-12

    OK, this is clearly a bug for non Linux systems. Of course, you can easily fix it by moving the cmd declaration outside the #if define(linux) directive.
    Anyway, the bug will be fixed in the next release.
    Thanks for the bug report,
    RB

     
  • ibara2

    ibara2 - 2015-01-17

    Yes. That's what I did for the OpenBSD port.
    Thanks for the quick reply!

     
  • Roland Baudin

    Roland Baudin - 2015-08-11

    This is fixed in Xfe 1.40.1.
    Thanks for the bug report.

     
  • Roland Baudin

    Roland Baudin - 2015-08-11
    • status: open --> closed-fixed
     

Log in to post a comment.