[MacPorts] #48194: libunrar @5.2.7_0: build fails with "use of undeclared identifier 'mprintf'" (was: linunrar fais to build in lion)
MacPorts
noreply at macports.org
Sun Jun 28 12:59:35 PDT 2015
#48194: libunrar @5.2.7_0: build fails with "use of undeclared identifier
'mprintf'"
-----------------------+------------------------
Reporter: amtor@… | Owner: krischik@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords: lion
Port: libunrar |
-----------------------+------------------------
Changes (by larryv@…):
* keywords: => lion
* owner: macports-tickets@… => krischik@…
Old description:
> 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
New description:
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
}}}
--
Comment:
Thanks for the report. In future tickets, please Cc any port maintainers
(`port info --maintainers libunrar`).
--
Ticket URL: <https://trac.macports.org/ticket/48194#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list