Ticket #4033 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Compile failure on AIX 7.2

Reported by: dp Owned by: andrew_b
Priority: major Milestone: 4.8.24
Component: mc-core Version: 4.8.23
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master

Description (last modified by andrew_b) (diff)

Hi there,

I was unable to compile MC on AIX. The error message is the following:

gmake[2]: Entering directory '/home/dp/rpmbuild/BUILD/mc-4.8.23/src'
Making all in filemanager
gmake[3]: Entering directory '/home/dp/rpmbuild/BUILD/mc-4.8.23/src/filemanager'
  CC       achown.lo
  CC       boxes.lo
  CC       chmod.lo
  CC       chown.lo
  CC       cmd.lo
  CC       command.lo
  CC       dir.lo
  CC       ext.lo
  CC       file.lo
  CC       filegui.lo
In file included from /usr/include/sys/statvfs.h:51,
                 from filegui.c:71:
../../lib/vfs/vfs.h:118:5: error: expected identifier before numeric constant
     VFS_REMOTE = 1 << 2,
     ^~~~~~~~~~
gmake[3]: *** [Makefile:602: filegui.lo] Error 1
gmake[3]: Leaving directory '/home/dp/rpmbuild/BUILD/mc-4.8.23/src/filemanager'
gmake[2]: *** [Makefile:736: all-recursive] Error 1
gmake[2]: Leaving directory '/home/dp/rpmbuild/BUILD/mc-4.8.23/src'
gmake[1]: *** [Makefile:623: all-recursive] Error 1
gmake[1]: Leaving directory '/home/dp/rpmbuild/BUILD/mc-4.8.23'
gmake: *** [Makefile:551: all] Error 2

The full log is attached.

Attachments

log (31.5 KB) - added by dp 5 years ago.
statvfs.h (4.8 KB) - added by dp 5 years ago.
vmount.h (10.7 KB) - added by dp 5 years ago.
log-2019-11-19-1.bz2 (163.0 KB) - added by dp 5 years ago.
log-2019-11-19-2.log (106.5 KB) - added by dp 5 years ago.

Change History

Changed 5 years ago by dp

comment:1 follow-up: ↓ 2 Changed 5 years ago by andrew_b

  • Description modified (diff)

Please show your /usr/include/sys/statvfs.h.

comment:2 in reply to: ↑ 1 Changed 5 years ago by dp

Replying to andrew_b:

Please show your /usr/include/sys/statvfs.h.

The file is attached.

Changed 5 years ago by dp

comment:3 follow-up: ↓ 4 Changed 5 years ago by andrew_b

Thanks.
/usr/include/sys/vmount.h please.

Changed 5 years ago by dp

comment:4 in reply to: ↑ 3 Changed 5 years ago by dp

Replying to andrew_b:

Thanks.
/usr/include/sys/vmount.h please.

Done.

comment:5 follow-up: ↓ 6 Changed 5 years ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.24

Branch: 4033_aix_vfs_flags
changeset:68d99619776de98790be0bb0107ec3d0b5be151e

Please test.

Changed 5 years ago by dp

comment:6 in reply to: ↑ 5 Changed 5 years ago by dp

Replying to andrew_b:

Branch: 4033_aix_vfs_flags
changeset:68d99619776de98790be0bb0107ec3d0b5be151e

Please test.

Please find the new log attached.

comment:7 follow-up: ↓ 8 Changed 5 years ago by andrew_b

In your log I can see something strange starting from line 598:

    593   CC       event.lo
    594 In file included from ../../lib/mcconfig.h:4,
    595                  from ../../lib/global.h:104,
    596                  from event.c:29:
    597 ../../lib/vfs/vfs.h:1:1: error: expected identifier or '(' before '<' token
    598  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    599  ^
    600 ../../lib/vfs/vfs.h:12:6: error: stray '\342' in program
    601       Б.. Midnight Commander
    602       ^
    603 ../../lib/vfs/vfs.h:12:7: error: stray '\200' in program
    604       Б.. Midnight Commander
    605        ^
    606 ../../lib/vfs/vfs.h:12:8: error: stray '\223' in program
    607       Б.. Midnight Commander
    608         ^
    609 ../../lib/vfs/vfs.h:16:13: error: stray '#' in program
    610        if (/^#__msie303:/.test(window.location.hash))
    611              ^
    612 ../../lib/vfs/vfs.h:17:64: error: stray '#' in program
    613          window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
    614                                                                 ^
    615 ../../lib/vfs/vfs.h:18:5: error: expected identifier or '(' before '<' token
    616      </script><![endif]-->
    617      ^

How did you do that?

comment:8 in reply to: ↑ 7 Changed 5 years ago by dp

Replying to andrew_b:

In your log I can see something strange starting from line 598:

    593   CC       event.lo
    594 In file included from ../../lib/mcconfig.h:4,
    595                  from ../../lib/global.h:104,
    596                  from event.c:29:
    597 ../../lib/vfs/vfs.h:1:1: error: expected identifier or '(' before '<' token
    598  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    599  ^
    600 ../../lib/vfs/vfs.h:12:6: error: stray '\342' in program
    601       Б.. Midnight Commander
    602       ^
    603 ../../lib/vfs/vfs.h:12:7: error: stray '\200' in program
    604       Б.. Midnight Commander
    605        ^
    606 ../../lib/vfs/vfs.h:12:8: error: stray '\223' in program
    607       Б.. Midnight Commander
    608         ^
    609 ../../lib/vfs/vfs.h:16:13: error: stray '#' in program
    610        if (/^#__msie303:/.test(window.location.hash))
    611              ^
    612 ../../lib/vfs/vfs.h:17:64: error: stray '#' in program
    613          window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
    614                                                                 ^
    615 ../../lib/vfs/vfs.h:18:5: error: expected identifier or '(' before '<' token
    616      </script><![endif]-->
    617      ^

How did you do that?

Sorry, that was my mistake. I supposed that a raw file is being downloaded if I click on the provided link. I will re-download them and will run the compilation again.

Changed 5 years ago by dp

comment:9 Changed 5 years ago by dp

MC has been successfully compiled. Thank you!

comment:10 Changed 5 years ago by andrew_b

  • Votes for changeset set to dp andrew_b
  • Branch state changed from on review to approved

comment:11 Changed 5 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from dp andrew_b to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:12 Changed 5 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.