The preprocessing of the header files in Mac Tiger (10.4), removes last 'r' from lines, i.e.
struct xtests_integer_failure_reporter_selector
is converted into:
struct xtests_integer_failure_reporter_selecto
giving all kind of problems when compiling
Just commenting out the part that removes CRs from the file is enough (build/gcc40.mac/makefile, lines 1790-1803 ):
$(STLSOFT_PREP_FILE): $(STLSOFT_SENTINEL_HEADER)
@echo Ensuring all STLSoft C source files are in UNIX format
# @find $(STLSOFT) -name '*.h' | while read f ; do \
# set -e ; sed 's/\r$$//' $$f > $$f.tmp ; mv $$f.tmp $$f ; \
# done
@echo dos2unix.has.been.performed > $(STLSOFT_PREP_FILE)
$(FASTFORMAT_PREP_FILE): $(FASTFORMAT_SENTINEL_HEADER)
@echo Ensuring all fastformat - and bundled library - C source files are in UNIX format
# @find $(PROJ_BASE_DIR) -name '*.[ch]' | while read f ; do \
# set -e ; sed 's/\r$$//' $$f > $$f.tmp ; mv $$f.tmp $$f ; \
# done
@echo dos2unix.has.been.performed > $(FASTFORMAT_PREP_FILE)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just commenting out the part that removes CRs from the file is enough (build/gcc40.mac/makefile, lines 1790-1803 ):
$(STLSOFT_PREP_FILE): $(STLSOFT_SENTINEL_HEADER)
@echo Ensuring all STLSoft C source files are in UNIX format
# @find $(STLSOFT) -name '*.h' | while read f ; do \ # set -e ; sed 's/\r$$//' $$f > $$f.tmp ; mv $$f.tmp $$f ; \ # done
@echo dos2unix.has.been.performed > $(STLSOFT_PREP_FILE)
$(FASTFORMAT_PREP_FILE): $(FASTFORMAT_SENTINEL_HEADER)
@echo Ensuring all fastformat - and bundled library - C source files are in UNIX format
# @find $(PROJ_BASE_DIR) -name '*.[ch]' | while read f ; do \ # set -e ; sed 's/\r$$//' $$f > $$f.tmp ; mv $$f.tmp $$f ; \ # done
@echo dos2unix.has.been.performed > $(FASTFORMAT_PREP_FILE)