Opened 9 years ago

Last modified 8 years ago

#48194 closed defect

libunrar @5.2.7_0: build fails with "use of undeclared identifier 'mprintf'" — at Version 2

Reported by: RobK88 Owned by: krischik@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: libunrar

Description (last modified by larryv (Lawrence Velázquez))

I am running the latest version of macports for Lion. Version 2.3.3

When I try to install libunrar, I get an error.

I tried to clean the port and reinstall. Same error.

The error logs reads as follows:

:debug:clean libunrar has no conflicts
:debug:main Executing org.macports.main (libunrar)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 503
:debug:main Skipping completed org.macports.archivefetch (libunrar)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (libunrar)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (libunrar)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (libunrar)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (libunrar)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (libunrar)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sun Jun 28 11:26:33 EDT 2015
:notice:build --->  Building libunrar
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (libunrar)
:debug:build 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/libunrar/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/work/unrar" && /usr/bin/make -j4 -w lib -f makefile CXX="/usr/bin/clang++" DESTDIR=/opt/local CXXFLAGS="-Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -stdlib=libc++"'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/work/unrar" && /usr/bin/make -j4 -w lib -f makefile CXX="/usr/bin/clang++" DESTDIR=/opt/local CXXFLAGS="-Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -stdlib=libc++" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/work/unrar'
:info:build /usr/bin/clang++  -Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL -c consio.cpp
:info:build /usr/bin/clang++  -Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL -c secpassword.cpp
:info:build /usr/bin/clang++  -Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL -c rijndael.cpp
:info:build /usr/bin/clang++  -Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL -c getbits.cpp
:info:build consio.cpp:328:5: error: use of undeclared identifier 'mprintf'
:info:build     mprintf(L"%s",Msg);
:info:build     ^
:info:build consio.cpp:330:3: error: use of undeclared identifier 'mprintf'
:info:build   mprintf(L"\n");
:info:build   ^
:info:build 2 errors generated.
:info:build make: *** [consio.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/work/unrar'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/work/unrar" && /usr/bin/make -j4 -w lib -f makefile CXX="/usr/bin/clang++" DESTDIR=/opt/local CXXFLAGS="-Os -DSILENT -DGUI -fPIC -arch x86_64 -stdlib=libc++" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -stdlib=libc++" 
:info:build Exit code: 2
:error:build org.macports.build for port libunrar returned: command execution failed
:debug:build Error code: CHILDSTATUS 20235 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for libunrar: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port libunrar for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/main.log
Grinchs-Mac-Pro:~ grinch$ sudo port clean libunrar
Password:
--->  Cleaning libunrar
Grinchs-Mac-Pro:~ grinch$ sudo port install linunrar
Error: Port linunrar not found
Grinchs-Mac-Pro:~ grinch$ sudo port install libunrar
--->  Fetching distfiles for libunrar
--->  Verifying checksums for libunrar
--->  Extracting libunrar
--->  Applying patches to libunrar
--->  Configuring libunrar
--->  Building libunrar
Error: org.macports.build for port libunrar returned: command execution failed
Please see the log file for port libunrar for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port libunrar failed
Grinchs-Mac-Pro:~ grinch$ sudo port clean libunrar
--->  Cleaning libunrar
Grinchs-Mac-Pro:~ grinch$ sudo port -t install libunrar
--->  Fetching distfiles for libunrar
--->  Verifying checksums for libunrar
--->  Extracting libunrar
--->  Applying patches to libunrar
--->  Configuring libunrar
--->  Building libunrar
Error: org.macports.build for port libunrar returned: command execution failed
Please see the log file for port libunrar for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_unrar/libunrar/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port libunrar failed

Change History (3)

comment:1 Changed 9 years ago by RobK88

Title should read:

"libunrar Fails to Build in Lion"

Sorry of the typo.

Changed 9 years ago by RobK88

Attachment: main.log added

comment:2 Changed 9 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Keywords: lion added
Owner: changed from macports-tickets@… to krischik@…
Summary: linunrar fais to build in lionlibunrar @5.2.7_0: build fails with "use of undeclared identifier 'mprintf'"

Thanks for the report. In future tickets, please Cc any port maintainers (port info --maintainers libunrar).

Note: See TracTickets for help on using tickets.