Changes between Initial Version and Version 2 of Ticket #60014
- Timestamp:
- Jan 30, 2020, 9:04:25 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #60014
- Property Owner set to minskim@…
- Property Cc minskim@… removed
-
Property
Status
changed from
new
toassigned
-
Ticket #60014 – Description
initial v2 1 1 build fails with modern c++ compiler(s), clang-9 in this case: 2 2 {{{ 3 3 /opt/local/bin/clang++-mp-9.0 -Os -stdlib=libc++ -arch x86_64 -arch i386 -c -o UnAlz.o UnAlz.cpp 4 4 UnAlz.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 *') … … 13 13 2 warnings and 1 error generated. 14 14 make: *** [UnAlz.o] Error 1 15 15 }}} 16 16 17 17 18 18 the appended new Portfile also patches another build error: 19 19 {{{ 20 20 /opt/local/bin/clang++-mp-9.0 -Os -stdlib=libc++ -arch x86_64 -arch i386 -c -o UnAlz.o UnAlz.cpp 21 21 UnAlz.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 *') … … 24 24 1 error generated. 25 25 make: *** [UnAlz.o] Error 1 26 27 26 }}} 28 27 29 28 since 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.