Results 1 to 6 of 6

Thread: mtree port on Windows

  1. #1
    Member
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    342
    Thanks
    12
    Thanked 34 Times in 28 Posts

    mtree port on Windows

    Please help me to make / compile this FreeBSD utility

    https://github.com/archiecobbs/mtree-port

    on Windows.

    I do not use much C "stuff" (on Windows), maybe someone more "Winoriented" can make a 32/64 bit EXE faster.

    2^32 Thank you

  2. #2
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    Built it with cygwin, with some patches - http://nishi.dreamhosters.com/u/mtree_0.rar
    (strtoq and st_mtimespec don't exist in cygwin).

  3. The Following 3 Users Say Thank You to Shelwien For This Useful Post:

    encode (12th August 2017),fcorbelli (13th August 2017),necros (19th August 2017)

  4. #3
    Member
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    342
    Thanks
    12
    Thanked 34 Times in 28 Posts
    Many thanks, it's a rather useful utility for hash-checking files and dirs.
    But I get this

    C:\mtree_0>mtree -p //192.168.0.91/ssd/copie/rsync/d -f //192.168.0.91/ssd/copie/rsync/dmtree.txt -K sha1digest
    0 [main] mtree 9004 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    1361 [main] mtree 9004 open_stackdumpfile: Dumping stack trace to mtree.exe.stackdump

  5. #4
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    Well, here's another build with x64 cygwin - http://nishi.dreamhosters.com/u/mtree_1.rar
    Also its not my program, so kinda hard to fix runtime errors in it, especially ones I can't reproduce :)
    I also tried building with mingw, but its missing quite a few libs.

  6. The Following User Says Thank You to Shelwien For This Useful Post:

    necros (19th August 2017)

  7. #5
    Member
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    342
    Thanks
    12
    Thanked 34 Times in 28 Posts
    Code:
    C:\mtree_1>mtree -p //192.168.0.91/tutto/zroot/ssd/copie/rsync/d -f //192.168.0.91/tutto/tank/dmtree.txt
    mtree: line 7: invalid flag uarch
    on line 7 uarch

    Code:
    #       user: root
    #    machine: aserver
    #       tree: /tank/d
    #       date: Sat Aug 12 17:36:39 2017
    
    # .
    /set type=file uid=0 gid=0 mode=0777 nlink=1 flags=uarch
    .               type=dir mode=0755 nlink=16 time=1502386374.401045000
        Collegamento\040a\040Documenti\040-\040Administrator.lnk \
                    mode=0666 size=499 time=1440756085.756627000 \
                    sha1digest=e192b27810a6feba7c1e986594c054f43878092e

    Code:
    mtree -c -p /tank/d/testmtree/ >test.txt
    
    
    root@aserver:/tank/d # cat test.txt
    #          user: root
    #       machine: aserver
    #          tree: /tank/d/testmtree
    #          date: Sun Aug 13 13:08:27 2017
    
    # .
    /set type=file uid=0 gid=0 mode=0666 nlink=1 flags=uarch
    .               type=dir mode=0777 nlink=3 time=1502622441.182929000
        test1.txt   size=17 time=1502622431.847085514
    
    # ./anotherdir
    anotherdir      type=dir mode=0777 nlink=2 time=1502622446.919861000
        test.2.txt  size=25 time=1502622453.096859237
    # ./anotherdir
    ..

    from Windows (on a samba-shared volume)
    Code:
    C:\mtree_1>mtree -p //192.168.0.91/tutto/tank/d/testmtree -f //192.168.0.91/tutto/tank/d/test.txt
    mtree: line 7: invalid flag uarch
    from FreeBSD
    Code:
    root@aserver:/tank/d # mtree -p /tank/d/testmtree/ -f /tank/d/test.txt
    root@aserver:/tank/d #

  8. #6
    Member
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    342
    Thanks
    12
    Thanked 34 Times in 28 Posts
    Manually cutting "flags=uarch"
    Code:
    C:\mtree_1>mtree -p //192.168.0.91/tutto/tank/d/testmtree -f //192.168.0.91/tutto/tank/d/test.txt
    . changed
            user expected 0 found 4278190080
            gid expected 0 found 4278190080
    anotherdir changed
            user expected 0 found 4278190080
            gid expected 0 found 4278190080
    anotherdir/test.2.txt changed
            user expected 0 found 4278190080
            gid expected 0 found 4278190080
    test1.txt changed
            user expected 0 found 4278190080
            gid expected 0 found 4278190080

Similar Threads

  1. GUI windows archivers
    By Sportman in forum Download Area
    Replies: 3
    Last Post: 22nd January 2015, 08:39
  2. jpegoptim 1.2.4 for Windows
    By nikkho in forum Data Compression
    Replies: 23
    Last Post: 18th June 2013, 23:22
  3. GCC 4.4.1 for Windows
    By Bulat Ziganshin in forum The Off-Topic Lounge
    Replies: 1
    Last Post: 16th January 2010, 00:39
  4. Directory scanning in windows
    By Shelwien in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 26th November 2009, 14:49
  5. Java port of TarsaLZP
    By Piotr Tarsa in forum Data Compression
    Replies: 19
    Last Post: 8th July 2009, 06:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •