[MacPorts] #45684: Builds hang post upgrading to Yosemite

MacPorts noreply at macports.org
Wed Oct 29 16:07:17 PDT 2014


#45684: Builds hang post upgrading to Yosemite
--------------------+--------------------------------
 Reporter:  j@…     |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.3.2
 Keywords:          |       Port:
--------------------+--------------------------------
 Similar to #45609 except nuking my install isn't an option.

 Here is what I've done. Followed instructions to migrate to a new OS.

 Haven't been able to install any packages. The current one I'm trying is
 unrar. I took the command that hangs using macports (last one on the debug
 prompt) and ran it directly and it completes fast without error.

 sh-3.2# port -d install unrar
 DEBUG: Changing to port directory:
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/unrar
 DEBUG: OS darwin/14.0.0 (Mac OS X 10.10) arch i386
 DEBUG: Reading variant descriptions from
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
 DEBUG: universal variant already exists, so not adding the default one
 DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
 DEBUG: Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 DEBUG: changing euid/egid - current euid: 0 - current egid: 0
 DEBUG: egid changed to: 501
 DEBUG: euid changed to: 502
 DEBUG: Starting logging for unrar
 DEBUG: unrar has no conflicts
 DEBUG: Executing org.macports.main (unrar)
 DEBUG: changing euid/egid - current euid: 0 - current egid: 0
 DEBUG: egid changed to: 501
 DEBUG: euid changed to: 502
 DEBUG: Skipping completed org.macports.archivefetch (unrar)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.fetch (unrar)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.checksum (unrar)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.extract (unrar)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.patch (unrar)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.configure (unrar)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: build phase started at Wed Oct 29 16:05:49 PDT 2014
 --->  Building unrar
 DEBUG: Executing proc-pre-org.macports.build-build-0
 DEBUG: Executing org.macports.build (unrar)
 DEBUG: Environment:
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/unrar/work/.CC_PRINT_OPTIONS'
 CPATH='/opt/local/include'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='10.10'
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/unrar/work/unrar"
 && /usr/bin/make -j4 -w all -f makefile.unix CXX="/usr/bin/clang++"
 DESTDIR=/opt/local CXXFLAGS="-Os -arch x86_64 -stdlib=libc++"
 LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64
 -stdlib=libc++"'
 DEBUG: Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/unrar/work/unrar"
 && /usr/bin/make -j4 -w all -f makefile.unix CXX="/usr/bin/clang++"
 DESTDIR=/opt/local CXXFLAGS="-Os -arch x86_64 -stdlib=libc++"
 LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64
 -stdlib=libc++"
 ^C
 sh-3.2# cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/unrar/work/unrar"
 && /usr/bin/make -j4 -w all -f makefile.unix CXX="/usr/bin/clang++"
 DESTDIR=/opt/local CXXFLAGS="-Os -arch x86_64 -stdlib=libc++"
 LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64
 -stdlib=libc++"
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/unrar/work/unrar'
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c rar.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c strlist.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c strfn.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c pathfn.cpp
 strfn.cpp:182:18: warning: '&&' within '||' [-Wlogical-op-parentheses]
   return(ch>='A' && ch<='Z' || ch>='a' && ch<='z');
          ~~~~~~~~^~~~~~~~~~ ~~
 pathfn.cpp:611:23: warning: '&&' within '||' [-Wlogical-op-parentheses]
       if (ChPtr[1]==0 && strlen(ArcName)<MaxLength-3 ||
 stricomp(ChPtr+1,"exe")==0 || stricomp(ChPtr+1,"sfx")==0)
           ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
 pathfn.cpp:611:23: note: place parentheses around the '&&' expression to
 silence this warning
       if (ChPtr[1]==0 && strlen(ArcName)<MaxLength-3 ||
 stricomp(ChPtr+1,"exe")==0 || stricomp(ChPtr+1,"sfx")==0)
                       ^
           (                                         )
 strfn.cpp:182:18: note: place parentheses around the '&&' expression to
 silence this warning
   return(ch>='A' && ch<='Z' || ch>='a' && ch<='z');
                  ^
          (                 )
 strfn.cpp:182:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
   return(ch>='A' && ch<='Z' || ch>='a' && ch<='z');
                             ~~ ~~~~~~~~^~~~~~~~~~
 strfn.cpp:182:40: note: place parentheses around the '&&' expression to
 silence this warning
   return(ch>='A' && ch<='Z' || ch>='a' && ch<='z');
                                        ^
                                (                 )
 pathfn.cpp:659:23: warning: '&&' within '||' [-Wlogical-op-parentheses]
       if (ChPtr[1]==0 && wcslen(ArcNameW)<MaxLength-3 ||
 wcsicomp(ChPtr+1,L"exe")==0 || wcsicomp(ChPtr+1,L"sfx")==0)
           ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
 pathfn.cpp:659:23: note: place parentheses around the '&&' expression to
 silence this warning
       if (ChPtr[1]==0 && wcslen(ArcNameW)<MaxLength-3 ||
 wcsicomp(ChPtr+1,L"exe")==0 || wcsicomp(ChPtr+1,L"sfx")==0)
                       ^
           (                                          )
 pathfn.cpp:757:64: warning: '&&' within '||' [-Wlogical-op-parentheses]
     if (strchr(Extended ? "?*<>|\"":"?*",*s)!=NULL || Extended &&
 (byte)*s<32)
                                                    ~~
 ~~~~~~~~~^~~~~~~~~~~~~~
 pathfn.cpp:757:64: note: place parentheses around the '&&' expression to
 silence this warning
     if (strchr(Extended ? "?*<>|\"":"?*",*s)!=NULL || Extended &&
 (byte)*s<32)
                                                                ^
                                                       (
 )
 pathfn.cpp:777:66: warning: '&&' within '||' [-Wlogical-op-parentheses]
     if (wcschr(Extended ? L"?*<>|\"":L"?*",*s)!=NULL || Extended &&
 (uint)*s<32)
                                                      ~~
 ~~~~~~~~~^~~~~~~~~~~~~~
 pathfn.cpp:777:66: note: place parentheses around the '&&' expression to
 silence this warning
     if (wcschr(Extended ? L"?*<>|\"":L"?*",*s)!=NULL || Extended &&
 (uint)*s<32)
                                                                  ^
                                                         (
 )
 pathfn.cpp:797:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 pathfn.cpp:804:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 pathfn.cpp:819:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 pathfn.cpp:826:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 pathfn.cpp:841:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 pathfn.cpp:848:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 pathfn.cpp:863:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 pathfn.cpp:870:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 pathfn.cpp:1315:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c savepos.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c smallfn.cpp
 2 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c global.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c file.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c filefn.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c filcreat.cpp
 13 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c archive.cpp
 file.cpp:33:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 file.cpp:291:12: warning: enumeration value 'FILE_HANDLENORMAL' not
 handled in switch [-Wswitch]
     switch(HandleType)
            ^
 file.cpp:383:9: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
         else
         ^
 file.cpp:479:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 filcreat.cpp:119:11: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
           else
           ^
 filcreat.cpp:141:18: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if (Name!=NULL && strlen(Name)>ASIZE(NewName)-10 ||
       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
 filcreat.cpp:141:18: note: place parentheses around the '&&' expression to
 silence this warning
   if (Name!=NULL && strlen(Name)>ASIZE(NewName)-10 ||
                  ^
       (                                           )
 filcreat.cpp:142:19: warning: '&&' within '||' [-Wlogical-op-parentheses]
       NameW!=NULL && wcslen(NameW)>ASIZE(NewNameW)-10)
       ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 filcreat.cpp:142:19: note: place parentheses around the '&&' expression to
 silence this warning
       NameW!=NULL && wcslen(NameW)>ASIZE(NewNameW)-10)
                   ^
       (                                              )
 In file included from archive.cpp:4:
 ./arccmt.cpp:46:17: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if (OldFormat && (OldMhd.Flags & MHD_PACK_COMMENT)!=0 || !OldFormat &&
 CommHead.Method!=0x30)
       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
 ./arccmt.cpp:46:17: note: place parentheses around the '&&' expression to
 silence this warning
   if (OldFormat && (OldMhd.Flags & MHD_PACK_COMMENT)!=0 || !OldFormat &&
 CommHead.Method!=0x30)
                 ^
       (                                                )
 ./arccmt.cpp:46:71: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if (OldFormat && (OldMhd.Flags & MHD_PACK_COMMENT)!=0 || !OldFormat &&
 CommHead.Method!=0x30)
                                                         ~~
 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
 ./arccmt.cpp:46:71: note: place parentheses around the '&&' expression to
 silence this warning
   if (OldFormat && (OldMhd.Flags & MHD_PACK_COMMENT)!=0 || !OldFormat &&
 CommHead.Method!=0x30)
                                                                       ^
                                                            (
 )
 archive.cpp:100:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c arcread.cpp
 archive.cpp:235:20: warning: '&&' within '||' [-Wlogical-op-parentheses]
             Volume && (NewMhd.Flags & MHD_FIRSTVOLUME)==0)
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 archive.cpp:235:20: note: place parentheses around the '&&' expression to
 silence this warning
             Volume && (NewMhd.Flags & MHD_FIRSTVOLUME)==0)
                    ^
             (                                            )
 archive.cpp:241:41: warning: '&&' within '||' [-Wlogical-op-parentheses]
             Volume && NewLhd.UnpVer>=29 && (NewMhd.Flags &
 MHD_FIRSTVOLUME)==0))
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 archive.cpp:241:41: note: place parentheses around the '&&' expression to
 silence this warning
             Volume && NewLhd.UnpVer>=29 && (NewMhd.Flags &
 MHD_FIRSTVOLUME)==0))
                                         ^
             (
 )
 3 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c unicode.cpp
 4 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c system.cpp
 arcread.cpp:740:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c isnt.cpp
 5 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c crypt.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c crc.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c rawread.cpp
 crypt.cpp:234:21: warning: '&&' within '||' [-Wlogical-op-parentheses]
         (Salt==NULL && !Cache[I].SaltPresent || Salt!=NULL &&
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ~~
 crypt.cpp:234:21: note: place parentheses around the '&&' expression to
 silence this warning
         (Salt==NULL && !Cache[I].SaltPresent || Salt!=NULL &&
                     ^
          (                                  )
 crypt.cpp:235:30: warning: '&&' within '||' [-Wlogical-op-parentheses]
         Cache[I].SaltPresent && memcmp(Cache[I].Salt,Salt,SALT_SIZE)==0)
 &&
         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 crypt.cpp:235:30: note: place parentheses around the '&&' expression to
 silence this warning
         Cache[I].SaltPresent && memcmp(Cache[I].Salt,Salt,SALT_SIZE)==0)
 &&
                              ^
 1 warning generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c encname.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c resource.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c match.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c timefn.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c rdwrfn.cpp
 2 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c consio.cpp
 match.cpp:70:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 match.cpp:129:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 rdwrfn.cpp:97:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 rdwrfn.cpp:180:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 2 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c options.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c ulinks.cpp
 2 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c errhnd.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c rarvm.cpp
 ulinks.cpp:20:9: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
         else
         ^
 1 warning generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c secpassword.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c rijndael.cpp
 rarvm.cpp:502:50: warning: '&&' within '||' [-Wlogical-op-parentheses]
           Flags=(Result<Value1 || Result==Value1 && FC)|(Result==0 ?
 VM_FZ:(Result&VM_FS));
                                ~~ ~~~~~~~~~~~~~~~^~~~~
 rarvm.cpp:502:50: note: place parentheses around the '&&' expression to
 silence this warning
           Flags=(Result<Value1 || Result==Value1 && FC)|(Result==0 ?
 VM_FZ:(Result&VM_FS));
                                                  ^
                                   (                   )
 rarvm.cpp:513:50: warning: '&&' within '||' [-Wlogical-op-parentheses]
           Flags=(Result>Value1 || Result==Value1 && FC)|(Result==0 ?
 VM_FZ:(Result&VM_FS));
                                ~~ ~~~~~~~~~~~~~~~^~~~~
 rarvm.cpp:513:50: note: place parentheses around the '&&' expression to
 silence this warning
           Flags=(Result>Value1 || Result==Value1 && FC)|(Result==0 ?
 VM_FZ:(Result&VM_FS));
                                                  ^
                                   (                   )
 rarvm.cpp:787:12: warning: 53 enumeration values not handled in switch:
 'VM_ADD', 'VM_SUB', 'VM_JZ'... [-Wswitch]
     switch(Cmd->OpCode)
            ^
 rarvm.cpp:821:12: warning: 50 enumeration values not handled in switch:
 'VM_MOV', 'VM_CMP', 'VM_JZ'... [-Wswitch]
     switch(Cmd->OpCode)
            ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c getbits.cpp
 rarvm.cpp:871:10: warning: enumeration value 'VMSF_NONE' not handled in
 switch [-Wswitch]
   switch(FilterType)
          ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c sha1.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c extinfo.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c extract.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c volume.cpp
 extract.cpp:68:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 extract.cpp:210:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 extract.cpp:235:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 extract.cpp:269:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 extract.cpp:277:65: warning: '&&' within '||' [-Wlogical-op-parentheses]
       !Cmd->Recurse && MatchedArgs>=Cmd->FileArgs->ItemsCount() &&
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
 extract.cpp:277:65: note: place parentheses around the '&&' expression to
 silence this warning
       !Cmd->Recurse && MatchedArgs>=Cmd->FileArgs->ItemsCount() &&
                                                                 ^
 extract.cpp:467:66: warning: '&&' within '||' [-Wlogical-op-parentheses]
         if (!PasswordAll && (!Arc.Solid || Arc.NewLhd.UnpVer>=20 &&
 (Arc.NewLhd.Flags & LHD_SOLID)==0))
                                         ~~
 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 extract.cpp:467:66: note: place parentheses around the '&&' expression to
 silence this warning
         if (!PasswordAll && (!Arc.Solid || Arc.NewLhd.UnpVer>=20 &&
 (Arc.NewLhd.Flags & LHD_SOLID)==0))
                                                                  ^
                                            (
 )
 extract.cpp:466:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 extract.cpp:759:7: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
       else
       ^
 extract.cpp:835:9: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
         else
         ^
 extract.cpp:904:11: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
           else
           ^
 extract.cpp:918:35: warning: '&&' within '||' [-Wlogical-op-parentheses]
       bool ValidCRC=Arc.OldFormat &&
 GET_UINT32(DataIO.UnpFileCRC)==GET_UINT32(Arc.NewLhd.FileCRC) ||
 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~~
 extract.cpp:918:35: note: place parentheses around the '&&' expression to
 silence this warning
       bool ValidCRC=Arc.OldFormat &&
 GET_UINT32(DataIO.UnpFileCRC)==GET_UINT32(Arc.NewLhd.FileCRC) ||
 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 extract.cpp:919:35: warning: '&&' within '||' [-Wlogical-op-parentheses]
                    !Arc.OldFormat &&
 GET_UINT32(DataIO.UnpFileCRC)==GET_UINT32(Arc.NewLhd.FileCRC^0xffffffff);
 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 extract.cpp:919:35: note: place parentheses around the '&&' expression to
 silence this warning
                    !Arc.OldFormat &&
 GET_UINT32(DataIO.UnpFileCRC)==GET_UINT32(Arc.NewLhd.FileCRC^0xffffffff);
 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 extract.cpp:1005:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c list.cpp
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c find.cpp
 list.cpp:135:11: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
           else
           ^
 list.cpp:142:46: warning: '&&' within '||' [-Wlogical-op-parentheses]
             Arc.GetHeaderType()==ENDARC_HEAD &&
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
 list.cpp:142:46: note: place parentheses around the '&&' expression to
 silence this warning
             Arc.GetHeaderType()==ENDARC_HEAD &&
                                              ^
 list.cpp:277:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c unpack.cpp
 5 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c cmddata.cpp
 13 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c filestr.cpp
 3 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c recvol.cpp
 In file included from unpack.cpp:7:
 ./unpack15.cpp:326:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 ./unpack15.cpp:334:42: warning: '&&' within '||' [-Wlogical-op-
 parentheses]
   if (OldAvr3 > 0xb0 || AvrPlc >= 0x2a00 && OldAvr2 < 0x40)
                      ~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 ./unpack15.cpp:334:42: note: place parentheses around the '&&' expression
 to silence this warning
   if (OldAvr3 > 0xb0 || AvrPlc >= 0x2a00 && OldAvr2 < 0x40)
                                          ^
                         (                                 )
 filestr.cpp:21:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 filestr.cpp:36:57: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if (FileName!=NULL && *FileName!=0 || FileNameW!=NULL && *FileNameW!=0)
                                      ~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
 filestr.cpp:36:57: note: place parentheses around the '&&' expression to
 silence this warning
   if (FileName!=NULL && *FileName!=0 || FileNameW!=NULL && *FileNameW!=0)
                                                         ^
                                         (                               )
 filestr.cpp:62:31: warning: '&&' within '||' [-Wlogical-op-parentheses]
       SrcCharset==RCH_DEFAULT && IsUnicode((byte *)&Data[0],DataSize))
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 filestr.cpp:62:31: note: place parentheses around the '&&' expression to
 silence this warning
       SrcCharset==RCH_DEFAULT && IsUnicode((byte *)&Data[0],DataSize))
                               ^
       (                                                              )
 In file included from unpack.cpp:8:
 ./unpack20.cpp:262:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 cmddata.cpp:896:17: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
                 else
                 ^
 cmddata.cpp:1242:58: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if ((NewLhd.FileAttr & ExclFileAttr)!=0 || InclAttrSet &&
 (NewLhd.FileAttr & InclFileAttr)==0)
                                           ~~
 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 cmddata.cpp:1242:58: note: place parentheses around the '&&' expression to
 silence this warning
   if ((NewLhd.FileAttr & ExclFileAttr)!=0 || InclAttrSet &&
 (NewLhd.FileAttr & InclFileAttr)==0)
                                                          ^
                                              (
 )
 cmddata.cpp:1253:65: warning: '&&' within '||' [-Wlogical-op-parentheses]
     bool Unicode=(NewLhd.Flags & LHD_UNICODE) || ArgNameW!=NULL &&
 *ArgNameW!=0;
                                               ~~
 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
 cmddata.cpp:1253:65: note: place parentheses around the '&&' expression to
 silence this warning
     bool Unicode=(NewLhd.Flags & LHD_UNICODE) || ArgNameW!=NULL &&
 *ArgNameW!=0;
                                                                 ^
                                                  (
 )
 cmddata.cpp:1297:38: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if (Command[0]!=0 && Command[1]!=0 &&
 strchr(SingleCharCommands,*Command)!=NULL || *ArcName==0)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~~
 cmddata.cpp:1297:38: note: place parentheses around the '&&' expression to
 silence this warning
   if (Command[0]!=0 && Command[1]!=0 &&
 strchr(SingleCharCommands,*Command)!=NULL || *ArcName==0)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c rs.cpp
 recvol.cpp:87:9: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
         else
         ^
 recvol.cpp:104:11: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
           else
           ^
 recvol.cpp:270:25: warning: '&&' within '||' [-Wlogical-op-parentheses]
     if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 &&
 FileNumber!=P[2])
         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ~~
 recvol.cpp:270:25: note: place parentheses around the '&&' expression to
 silence this warning
     if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 &&
 FileNumber!=P[2])
                         ^
         (                                    )
 recvol.cpp:270:64: warning: '&&' within '||' [-Wlogical-op-parentheses]
     if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 &&
 FileNumber!=P[2])
                                               ~~
 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
 recvol.cpp:270:64: note: place parentheses around the '&&' expression to
 silence this warning
     if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 &&
 FileNumber!=P[2])
                                                                ^
                                                  (
 )
 4 warnings generated.
 /usr/bin/clang++  -Os -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DUNRAR -c scantree.cpp
 4 warnings generated.
 scantree.cpp:90:51: warning: '&&' within '||' [-Wlogical-op-parentheses]
   if (Name[0]=='.' && (Name[1]==0 || Name[1]=='.' && Name[2]==0))
                                   ~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~
 scantree.cpp:90:51: note: place parentheses around the '&&' expression to
 silence this warning
   if (Name[0]=='.' && (Name[1]==0 || Name[1]=='.' && Name[2]==0))
                                                   ^
                                      (                         )
 scantree.cpp:104:56: warning: '&&' within '||' [-Wlogical-op-parentheses]
     if (NameW[0]=='.' && (NameW[1]==0 || NameW[1]=='.' && NameW[2]==0))
                                       ~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
 scantree.cpp:104:56: note: place parentheses around the '&&' expression to
 silence this warning
     if (NameW[0]=='.' && (NameW[1]==0 || NameW[1]=='.' && NameW[2]==0))
                                                        ^
                                          (                           )
 scantree.cpp:152:30: warning: '&&' within '||' [-Wlogical-op-parentheses]
                    Wildcards && Recurse==RECURSE_WILDCARDS ||
                    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 scantree.cpp:152:30: note: place parentheses around the '&&' expression to
 silence this warning
                    Wildcards && Recurse==RECURSE_WILDCARDS ||
                              ^
                    (                                      )
 scantree.cpp:153:35: warning: '&&' within '||' [-Wlogical-op-parentheses]
                    ScanEntireDisk && Recurse!=RECURSE_DISABLE);
                    ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
 scantree.cpp:153:35: note: place parentheses around the '&&' expression to
 silence this warning
                    ScanEntireDisk && Recurse!=RECURSE_DISABLE);
                                   ^
                    (                                         )
 4 warnings generated.
 3 warnings generated.
 /usr/bin/clang++ -o unrar -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -stdlib=libc++ rar.o
 strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o filefn.o
 filcreat.o archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o
 rawread.o encname.o resource.o match.o timefn.o rdwrfn.o consio.o
 options.o ulinks.o errhnd.o rarvm.o secpassword.o rijndael.o getbits.o
 sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o
 filestr.o recvol.o rs.o scantree.o
 strip unrar
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/unrar/work/unrar'
 sh-3.2#

-- 
Ticket URL: <https://trac.macports.org/ticket/45684>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list