#50713: unRAR 5.2.7 does nor build on Mac OS X 10.6.8, Snow Leopard, because "‘mprintf’ was not declared in this scope" -----------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: unrar -----------------------------+-------------------------------- {{{ /usr/bin/llvm-g++-4.2 -Os -DSILENT -DGUI -fPIC -arch x86_64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL -c rijndael.cpp consio.cpp: In function ‘void OutComment(const wchar*, size_t)’: consio.cpp:328: error: ‘mprintf’ was not declared in this scope consio.cpp:330: error: ‘mprintf’ was not declared in this scope make: *** [consio.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_archivers_unrar/libunrar/work/unrar' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_archivers_unrar/libunrar/work/unrar" && /usr/bin/make -j8 -w lib -f makefile CXX="/usr/bin/llvm-g++-4.2" DESTDIR=/opt/local CXXFLAGS="-Os -DSILENT -DGUI -fPIC -arch x86_64 " LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 " Exit code: 2 Error: org.macports.build for port libunrar returned: command execution failed DEBUG: Error code: CHILDSTATUS 54538 2 DEBUG: Backtrace: command execution failed }}} I'm not that proficient in C++ but I think the cause is that `consio.hpp` is not included. This C++ header file has: {{{ #ifdef SILENT inline void mprintf(const wchar *fmt,...) {} inline void eprintf(const wchar *fmt,...) {} inline void Alarm() {} inline int Ask(const wchar *AskStr) {return 0;} inline bool getwstr(wchar *str,size_t n) {return false;} #else void mprintf(const wchar *fmt,...); void eprintf(const wchar *fmt,...); void Alarm(); int Ask(const wchar *AskStr); bool getwstr(wchar *str,size_t n); #endif }}} -- Ticket URL: <https://trac.macports.org/ticket/50713> MacPorts <https://www.macports.org/> Ports system for OS X