[MacPorts] #13156: doxygen 1.5.4 build error in portable_iconv()

MacPorts trac at macosforge.org
Mon Jan 14 10:17:22 PST 2008


#13156: doxygen 1.5.4 build error in portable_iconv()
-------------------------------+--------------------------------------------
  Reporter:  dambler at usgs.gov  |       Owner:  css at macports.org
      Type:  defect            |      Status:  assigned        
  Priority:  Normal            |   Milestone:  Port Bugs       
 Component:  ports             |     Version:  1.5.0           
Resolution:                    |    Keywords:                  
-------------------------------+--------------------------------------------
Comment (by dclunie at dclunie.com):

 Hi

 I also have the same error reported (Leopard).

 I have a general question, which is why does port install libiconv in the
 first place, if the same version is already present in Leopard. I.e.:
 {{{
 % ls -l /usr/lib/libiconv*
 lrwxr-xr-x  1 root  wheel       16 Dec 24 18:45
 /usr/lib/libiconv.2.4.0.dylib -> libiconv.2.dylib
 -rw-r--r--  1 root  wheel  4147008 Sep 23 18:08 /usr/lib/libiconv.2.dylib
 lrwxr-xr-x  1 root  wheel       20 Dec 24 18:45 /usr/lib/libiconv.dylib ->
 libiconv.2.4.0.dylib
 -rw-r--r--  1 root  wheel      795 Sep 23 18:08 /usr/lib/libiconv.la

 % ls -l /opt/local/lib/libiconv*
 -rw-r--r--  2 root  admin  1061556 Dec 30 08:40
 /opt/local/lib/libiconv.2.4.0.dylib
 lrwxr-xr-x  1 root  admin       20 Dec 30 08:40
 /opt/local/lib/libiconv.2.dylib -> libiconv.2.4.0.dylib
 -rw-r--r--  2 root  admin  1075320 Dec 30 08:40 /opt/local/lib/libiconv.a
 lrwxr-xr-x  1 root  admin       20 Dec 30 08:40
 /opt/local/lib/libiconv.dylib -> libiconv.2.4.0.dylib
 -rw-r--r--  2 root  admin      828 Dec 30 08:40 /opt/local/lib/libiconv.la
 }}}

 Also, I saw the earlier comment to check that the iconv header version
 should be the same on the Apple version and the port installed version.

 That is the case for me, but the contents of the iconv.h files are
 different in the two locations.

 Specifically:
 {{{
 % diff /opt/local/include/iconv.h /usr/include/iconv.h
 23a24,30
 > #include <sys/cdefs.h>
 > #include <_types.h>
 > #ifndef _SIZE_T
 > #define _SIZE_T
 > typedef __darwin_size_t     size_t;
 > #endif
 >
 45,46c52,53
 < #undef iconv_t
 < #define iconv_t libiconv_t
 ---
 > #ifndef _ICONV_T
 > #define _ICONV_T
 48,59d54
 <
 < /* Get size_t declaration.
 <    Get wchar_t declaration if it exists. */
 < #include <stddef.h>
 <
 < /* Get errno declaration and values. */
 < #include <errno.h>
 < /* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like
 BSD/OS,
 <    have EILSEQ in a different header.  On these systems, define EILSEQ
 <    ourselves. */
 < #ifndef EILSEQ
 < #define EILSEQ
 70,73c65
 < #ifndef LIBICONV_PLUG
 < #define iconv_open libiconv_open
 < #endif
 < extern iconv_t iconv_open (const char* tocode, const char* fromcode);
 ---
 > iconv_t iconv_open (const char* /*tocode*/, const char* /*fromcode*/);
 80,83c72,74
 < #ifndef LIBICONV_PLUG
 < #define iconv libiconv
 < #endif
 < extern size_t iconv (iconv_t cd,  char* * inbuf, size_t *inbytesleft,
 char* * outbuf, size_t *outbytesleft);
 ---
 > size_t iconv (iconv_t /*cd*/,
 >       char ** __restrict /*inbuf*/,  size_t * __restrict
 /*inbytesleft*/,
 >       char ** __restrict /*outbuf*/, size_t * __restrict
 /*outbytesleft*/);
 86,90c77
 < #ifndef LIBICONV_PLUG
 < #define iconv_close libiconv_close
 < #endif
 < extern int iconv_close (iconv_t cd);
 <
 ---
 > int iconv_close (iconv_t /*cd*/);
 92c79
 < #ifndef LIBICONV_PLUG
 ---
 > #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
 95a83,89
 > #ifndef __cplusplus
 > #ifndef _WCHAR_T
 > #define _WCHAR_T
 > typedef __darwin_wchar_t      wchar_t;
 > #endif /* _WCHAR_T */
 > #endif /* __cplusplus */
 >
 97,98c91
 < #define iconvctl libiconvctl
 < extern int iconvctl (iconv_t cd, int request, void* argument);
 ---
 > int iconvctl (iconv_t /*cd*/, int /*request*/, void* /*argument*/);
 177,181c170,173
 < #define iconvlist libiconvlist
 < extern void iconvlist (int (*do_one) (unsigned int namescount,
 <                                       const char * const * names,
 <                                       void* data),
 <                        void* data);
 ---
 > void iconvlist (int (* /*do_one*/) (unsigned int /*namescount*/,
 >                                       const char * const * /*names*/,
 >                                       void* /*data*/),
 >                        void* /*data*/);
 194,195c186,187
 < extern void libiconv_set_relocation_prefix (const char *orig_prefix,
 <                                           const char *curr_prefix);
 ---
 > void libiconv_set_relocation_prefix (const char * /*orig_prefix*/,
 >                                           const char * /*curr_prefix*/);
 197c189
 < #endif
 ---
 > #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
 }}}

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13156#comment:30>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list