[MacPorts] #45695: libiconv: build cannot find stdarg.h

MacPorts noreply at macports.org
Fri Oct 31 09:39:48 PDT 2014


#45695: libiconv: build cannot find stdarg.h
--------------------------+--------------------------
  Reporter:  normadize@…  |      Owner:  ryandesign@…
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.3.2
Resolution:               |   Keywords:
      Port:  libiconv     |
--------------------------+--------------------------

Comment (by normadize@…):

 I just did a complete wipe and reinstall of XCode and CLT (by wipe I mean
 moved to thrash then manually deleting all files mentioned in
 /var/db/receipts/*{DevSDK,CLTools}*.bom) and installed XCode from App
 Store and CLT by doing xcode-select --install.

 Attempting to install libiconv again (needed by gcc49), I now get a
 different error:

 {{{
 $ sudo port -v install libiconv
 --->  Computing dependencies for libiconv.
 --->  Building libiconv
 if test -n "$GNULIB_TOOL"; then \
           $GNULIB_TOOL --lib=libicrt --source-base=srclib --m4-base=srcm4
 --makefile-name=Makefile.gnulib --no-libtool --local-dir=gnulib-local
 --no-vc-files \
             --import binary-io error gettext gettext-h mbstate memmove
 progname relocatable-prog safe-read sigpipe stdio stdlib strerror unistd
 uniwidth/width unlocked-io xalloc libiconv-misc; \
         fi
 cd libcharset && make -f Makefile.devel all
 make[1]: Nothing to be done for `all'.
 cd preload && make -f Makefile.devel all
 make[1]: Nothing to be done for `all'.
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/lib'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/lib'
 cd preload && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/preload'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/preload'
 cd srclib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/srclib'
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 make[2]: Nothing to be done for `am--refresh'.
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/srclib'
 make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 make[3]: Nothing to be done for `am--refresh'.
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 make[2]: Nothing to be done for `all-am'.
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/srclib'
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/srclib'
 cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/src'
 /usr/bin/clang -c -I. -I. -I.. -I../include -I./../include -I../srclib
 -I./../srclib -I../lib -pipe -Os -arch x86_64
 -DINSTALLDIR=\"/opt/local/bin\" -DLOCALEDIR=\"/opt/local/share/locale\"
 ./iconv_no_i18n.c
 /usr/bin/clang -c -I. -I. -I.. -I../include -I./../include -I../srclib
 -I./../srclib -I../lib -pipe -Os -arch x86_64
 -DINSTALLDIR=\"/opt/local/bin\" -DLOCALEDIR=\"/opt/local/share/locale\"
 ./iconv.c
 In file included from ./iconv_no_i18n.c:2:
 In file included from ./iconv.c:27:
 In file included from ../include/iconv.h:117:
 In file included from /usr/include/wchar.h:76:
 /usr/include/sys/_types/_mbstate_t.h:31In file included from ./iconv.c:27:
 In file included from ../include/iconv.h:117:
 In file included from /usr/include/wchar.h:76:
 /usr/include/sys/_types/_mbstate_t.h:31:28: error: :28: errorcannot
 combine with previous 'type-name' declaration specifier:
 cannot combine with previous 'type-name' declaration specifier
 typedef __darwin_mbstate_t mbstate_t;typedef __darwin_mbstate_t mbstate_t;

                            ^                           ^

 ../config.h:865../config.h::19865:: 19note::  expanded from macro
 'mbstate_t'note
 : expanded from macro 'mbstate_t'
 #define mbstate_t int
                   ^
 #define mbstate_t int
                   ^
 1 error generated.
 1 error generated.
 make[1]: *** [iconv.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[1]: *** [iconv_no_i18n.o] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/src'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14"
 && /usr/bin/make CC=/usr/bin/clang -f Makefile.devel && /usr/bin/make -j8
 -w all
 Exit code: 2
 Error: org.macports.build for port libiconv returned: command execution
 failed
 Warning: targets not executed for libiconv: org.macports.activate
 org.macports.build org.macports.destroot org.macports.install
 Please see the log file for port libiconv for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port libiconv failed
 }}}

 I then did, as you suggested:

 {{{
 $ sudo port clean libiconv
 $ sudo port install libiconv
 }}}

 ... and now it worked. I take it that something was fixed on the Macports
 side?

 Cheers

-- 
Ticket URL: <https://trac.macports.org/ticket/45695#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list