Changes between Initial Version and Version 2 of Ticket #60014


Ignore:
Timestamp:
Jan 30, 2020, 9:04:25 PM (5 years ago)
Author:
mf2k (Frank Schima)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60014

    • Property Owner set to minskim@…
    • Property Cc minskim@… removed
    • Property Status changed from new to assigned
  • Ticket #60014 – Description

    initial v2  
    11build fails with modern c++ compiler(s), clang-9 in this case:
    2 
     2{{{
    33/opt/local/bin/clang++-mp-9.0  -Os -stdlib=libc++ -arch x86_64 -arch i386  -c -o UnAlz.o UnAlz.cpp
    44UnAlz.cpp:1910:23: error: cannot initialize a variable of type 'const unsigned long *' with an rvalue of type 'const z_crc_t *' (aka 'const unsigned int *')
     
    13132 warnings and 1 error generated.
    1414make: *** [UnAlz.o] Error 1
    15 
     15}}}
    1616
    1717
    1818the appended new Portfile also patches another build error:
    19 
     19{{{
    2020/opt/local/bin/clang++-mp-9.0  -Os -stdlib=libc++ -arch x86_64 -arch i386  -c -o UnAlz.o UnAlz.cpp
    2121UnAlz.cpp:1910:23: error: cannot initialize a variable of type 'const unsigned long *' with an rvalue of type 'const z_crc_t *' (aka 'const unsigned int *')
     
    24241 error generated.
    2525make: *** [UnAlz.o] Error 1
    26 
    27 
     26}}}
    2827
    2928since the source code files are not using unix newlines and I don't know how to handle them with the patch program directly and I'm too lazy to invoke tr, sed or another program to fix that first via the Portfile (which might help future patch-actions), I just added two new 'reinplace' instructions to the Portfile.