#44480: openjade 1.3.2_8 link: cannot find the library `/usr/lib/libiconv.la' -----------------------+----------------------------- Reporter: matteo@… | Owner: tlockhart1976@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: openjade | -----------------------+----------------------------- Comment (by tlockhart1976@…): Replying to [comment:20 andre.david@…]:
Replying to [comment:17 cal@…]:
The FAQ has an entry for build failures that would have prevented this issue as of MacPorts 2.3.2: wiki:FAQ#buildfails mentions that you should attempt the build with the `-t` flag, i.e. `sudo port -t install/upgrade openjade`, which would have hidden any files in `/usr/local` from openjade's build system.
Especially if you're also using other package managers and/or have a bunch of stuff in `/usr/local` you should make using `-t` a habit whenever a build fails. It does have a noticeable performance overhead, but avoids problems like these.
Well, I have the original issue with `/usr/lib/libiconv.la`, i.e. nothing with `/usr/local`. I am still unclear on how to proceed, since these are not stale files: {{{ $ ls -latr /usr/lib/libiconv.* -r-xr-xr-x 1 root wheel 2.1M Dec 3 07:35 /usr/lib/libiconv.2.dylib* lrwxr-xr-x 1 root wheel 20 Dec 20 15:28 /usr/lib/libiconv.dylib -> libiconv.2.4.0.dylib* lrwxr-xr-x 1 root wheel 16 Dec 20 15:28 /usr/lib/libiconv.2.4.0.dylib -> libiconv.2.dylib* }}}
The actual error (even when using `-t` after `clean --all`) is {{{ :info:build /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_openjade/openjade/work/openjade-1.3.2/libtool --mode=link /usr/bin/clang++ -allow-undefined -pipe -Os -isystem /opt/local/include -fno-rtti -arch x86_64 -stdlib=libc++ -I. -I./../include -I./../grove -I./../spgrove -I./../style -I/opt/local/include/OpenSP -I/opt/local/include/OpenSP/.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openjade\" -DVERSION=\"1.3.2\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DSIZEOF_SIZE_T=8 -DSIZEOF_UNSIGNED_INT=4 -DSP_HAVE_LOCALE=1 -DSP_HAVE_WCHAR=1 -DSP_HAVE_GETTEXT=1 -DSP_HAVE_BOOL=1 -DSP_ANSI_CLASS_INST=1 -DSP_HAVE_SOCKET=1 -DJADE_MIF=1 -DJADE_HTML=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/opt/local/share/sgml/catalog\" -DHAVE_DLFCN_H=1 -DDEFAULT_SCHEME_BUILTINS=\"/opt/local/share/sgml/openjade/builtins.dsl\" -Wl,-headerpad_max_install_names -arch x86_64 -o openjade jade.o SgmlFOTBuilder.o RtfFOTBuilder.o HtmlFOTBuilder.o TeXFOTBuilder.o TransformFOTBuilder.o MifFOTBuilder.o ../style/libostyle.la ../spgrove/libospgrove.la ../grove/libogrove.la /opt/local/lib/libosp.dylib -L/opt/local/lib -lintl :info:build libtool: link: `-allow-undefined' is deprecated because it is the default :info:build libtool: link: cannot find the library `/usr/lib/libiconv.la' :info:build make[2]: *** [openjade] Error 1 }}} Did I miss something?
I have the same /usr/lib/libiconv.dylib* files on my system, and openjade builds fine from source (and the pre-built package from MacPorts installs fine also). I do not see an explicit reference to /usr/lib/libiconv.la on your link line. Did I miss seeing it? Or is it being brought in by another library? -- Ticket URL: <https://trac.macports.org/ticket/44480#comment:21> MacPorts <https://www.macports.org/> Ports system for OS X