Opened 9 years ago

Closed 7 years ago

#48194 closed defect (fixed)

libunrar @5.2.7_0: build fails with "use of undeclared identifier 'mprintf'"

Reported by: RobK88 Owned by: krischik@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: anddam (Andrea D'Amore), jpenney (Jason Penney), kurthindenburg (Kurt Hindenburg), Serge3leo (Serguei E. Leontiev)
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

Attachments (1)

main.log (42.8 KB) - added by RobK88 9 years ago.

Download all attachments as: .zip

Change History (12)

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).

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

Keywords: lion removed

This doesn’t build on Yosemite either.

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

Cc: and.damore@… added

comment:5 Changed 9 years ago by jpenney (Jason Penney)

Cc: jpenney@… added

Cc Me!

comment:6 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:7 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

     # Copied from standalone libunrar port. Why do we need these?
-    configure.cxxflags-append -DSILENT -DGUI
+    #configure.cxxflags-append -DSILENT -DGUI

it works by commenting out this line - no idea why though

comment:8 Changed 9 years ago by Serge3leo (Serguei E. Leontiev)

Cc: leo@… added

Cc Me!

comment:9 in reply to:  7 Changed 9 years ago by Serge3leo (Serguei E. Leontiev)

Replying to khindenburg@…:

it works by commenting out this line - no idea why though

Thanks for workaround, it help for me. The "-DGUI" causes this error.

comment:10 Changed 9 years ago by Serge3leo (Serguei E. Leontiev)

The flag "-DGUI" seems to be completely broken in libunrar version 5.2.7 It should be removed, because it can't work

The flag "-DSILENT" should not delete. This flag looks useful.

Last edited 9 years ago by Serge3leo (Serguei E. Leontiev) (previous) (diff)

comment:11 Changed 7 years ago by l2dy (Zero King)

Resolution: fixed
Status: newclosed

In 793242fb/macports-ports:

unrar: update to 5.4.5

Fixes: #48194
Fixes: #48417
Fixes: #50713

Note: See TracTickets for help on using tickets.