Opened 8 years ago

Closed 7 years ago

#31893 closed defect (worksforme)

Incompatible library version: libintl.8.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0

Reported by: david.reitter@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Schmidt), miq.susko@…
Port:

Description (last modified by ryandesign (Ryan Schmidt))

root@elin:~ $ cat  /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/main.log
version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncursesw 5.8_0 exists in the ports tree
:debug:main ncursesw 5.8_0  is the latest installed
:debug:main ncursesw 5.8_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main universal_variant is false, so not adding the default universal variant
:debug:main No need to upgrade! ncursesw 5.8_0 >= ncursesw 5.8_0
:msg:main --->  Computing dependencies for ncurses:info:main .:debug:main Searching for dependency: ncursesw
:debug:main Found Dependency: receipt exists for ncursesw
:msg:main 
:debug:main Executing org.macports.main (ncurses)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 503
:debug:main euid changed to: 506
:debug:main Skipping completed org.macports.archivefetch (ncurses)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (ncurses)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (ncurses)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (ncurses)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (ncurses)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (ncurses)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Fri Nov  4 11:38:47 EDT 2011
:notice:build --->  Building ncurses
:debug:build Executing org.macports.build (ncurses)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9" && /usr/bin/make -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9" && /usr/bin/make -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9'
:info:build cd man && /usr/bin/make DESTDIR="" all
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9/man'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9/man'
:info:build cd include && /usr/bin/make DESTDIR="" all
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9/include'
:info:build AWK=gawk sh ./MKparametrized.sh ./Caps >parametrized.h
:info:build dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
:info:build   Referenced from: /opt/local/lib/libintl.8.dylib
:info:build   Reason: Incompatible library version: libintl.8.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
:info:build ./MKparametrized.sh: line 61: 15011 Trace/BPT trap: 5       ${AWK-awk} '
:info:build $3 != "str" {next;}
:info:build $1 ~ /^acs_/        {print "-1,\t/* ", $2, " */"; count++; next;}
:info:build $0 ~ /#[0-9]/       {print "1,\t/* ", $2, " */"; count++; next;}
:info:build             {print "0,\t/* ", $2, " */"; count++;}
:info:build END         {printf("} /* %d entries */;\n\n", count);}
:info:build ' < $CAPS
:info:build make[1]: *** [parametrized.h] Error 133
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9/include'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/work/ncurses-5.9" && /usr/bin/make -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for ncurses): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for ncurses is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/main.log

Change History (4)

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Summary: libncurses fails to install, missing libiconv dependencyIncompatible library version: libintl.8.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0

The error "Incompatible library version: libintl.8.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0" usually indicates that you have the libiconv port installed for the wrong architecture. And the usual reason for that is that you migrated from Leopard or earlier to Snow Leopard or later, and did not then uninstall and reinstall all your ports. See wiki:Migration.

comment:2 Changed 7 years ago by miq.susko@…

Same happens to me:

bash-3.2# apachectl start
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
  Referenced from: /usr/sbin/httpd
  Reason: Incompatible library version: httpd requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
/usr/sbin/apachectl: line 78: 33316 Trace/BPT trap          $HTTPD -k $ARGV

This is after I have run:

$sudo port uninstall installed
$sudo port install -s -v apache2

I am using OS X 10.6.8; Xcode 4.2 is installed

comment:3 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: miq.susko@… added

david.reitter, did my suggestions above help you?

miq.susko, please remember to use WikiFormatting, and to Cc yourself on tickets you want to receive replies on. You have something very wrong with your system if /usr/sbin/httpd is referencing /opt/local/lib/libiconv.2.dylib; replace /usr/sbin/httpd with a copy from your backups or from your OS X installation disc, or reinstall OS X. MacPorts' apache2 is in /opt/local/apache2. P.S: Short options like -s and -v have no effect unless you place them immediately after the word port.

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

Closing due to lack of response from reporter.

Note: See TracTickets for help on using tickets.