[MacPorts] #35576: gettext: error: expected parameter declarator (was: Problems with updating gettext thru port update outdated)

MacPorts noreply at macports.org
Tue Aug 7 17:57:41 PDT 2012


#35576: gettext: error: expected parameter declarator
----------------------------+-----------------------------------------------
 Reporter:  svenali@…       |       Owner:  ryandesign@…           
     Type:  defect          |      Status:  new                    
 Priority:  Normal          |   Milestone:                         
Component:  ports           |     Version:  2.1.2                  
 Keywords:                  |        Port:  gettext                
----------------------------+-----------------------------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => ryandesign@…
  * port:  => gettext
  * type:  update => defect


Old description:

> Hello,
>
> I've tried to upgrade the outdated. I updated from MacPorts 2.0.3 to
> 2.1.2. After that I made an
>
> sudo port upgrade outdated
>
> Curiosly gettext-0.18 is installed but he tried to update it to version
> 0.17. Compilation breakes. I've cleaned everything and now following
> error message is shown:
>
> <snip>
> :info:build stpncpy.c:33:1: error: expected parameter declarator
> :info:build __stpncpy (char *dest, const char *src, size_t n)
> :info:build ^
> :info:build stpncpy.c:27:20: note: expanded from macro '__stpncpy'
> :info:build # define __stpncpy stpncpy
> :info:build                    ^
> :info:build /usr/include/secure/_string.h:110:5: note: expanded from
> macro 'stpncpy'
> :info:build   ((__darwin_obsz0 (dest) != (size_t) -1)
> \
> :info:build     ^
> :info:build /usr/include/secure/_common.h:38:63: note: expanded from
> macro '__darwin_obsz0'
> :info:build #define __darwin_obsz0(object) __builtin_object_size (object,
> 0)
> :info:build
> ^
> :info:build stpncpy.c:33:1: error: expected ')'
> :info:build __stpncpy (char *dest, const char *src, size_t n)
> :info:build ^
> :info:build stpncpy.c:27:20: note: expanded from macro '__stpncpy'
> :info:build # define __stpncpy stpncpy
> :info:build                    ^
> :info:build /usr/include/secure/_string.h:110:5: note: expanded from
> macro 'stpncpy'
> :info:build   ((__darwin_obsz0 (dest) != (size_t) -1)
> \
> :info:build     ^
> :info:build /usr/include/secure/_common.h:38:63: note: expanded from
> macro '__darwin_obsz0'
> :info:build #define __darwin_obsz0(object) __builtin_object_size (object,
> 0)
> :info:build
> ^
> :info:build stpncpy.c:33:1: note: to match this '('
> :info:build __stpncpy (char *dest, const char *src, size_t n)
> :info:build ^
> :info:build stpncpy.c:27:20: note: expanded from macro '__stpncpy'
> :info:build # define __stpncpy stpncpy
> :info:build                    ^
> :info:build /usr/include/secure/_string.h:110:5: note: expanded from
> macro 'stpncpy'
> :info:build   ((__darwin_obsz0 (dest) != (size_t) -1)
> \
> :info:build     ^
> :info:build /usr/include/secure/_common.h:38:54: note: expanded from
> macro '__darwin_obsz0'
> :info:build #define __darwin_obsz0(object) __builtin_object_size (object,
> 0)
> :info:build                                                      ^
> :info:build stpncpy.c:33:1: error: expected ')'
>
> <snap>
>
> Thank you very much!
> regards,
> Sven

New description:

 Hello,

 I've tried to upgrade the outdated. I updated from MacPorts 2.0.3 to
 2.1.2. After that I made an

 {{{
 sudo port upgrade outdated
 }}}

 Curiosly gettext-0.18 is installed but he tried to update it to version
 0.17. Compilation breakes. I've cleaned everything and now following error
 message is shown:

 {{{
 <snip>
 :info:build stpncpy.c:33:1: error: expected parameter declarator
 :info:build __stpncpy (char *dest, const char *src, size_t n)
 :info:build ^
 :info:build stpncpy.c:27:20: note: expanded from macro '__stpncpy'
 :info:build # define __stpncpy stpncpy
 :info:build                    ^
 :info:build /usr/include/secure/_string.h:110:5: note: expanded from macro
 'stpncpy'
 :info:build   ((__darwin_obsz0 (dest) != (size_t) -1)
 \
 :info:build     ^
 :info:build /usr/include/secure/_common.h:38:63: note: expanded from macro
 '__darwin_obsz0'
 :info:build #define __darwin_obsz0(object) __builtin_object_size (object,
 0)
 :info:build
 ^
 :info:build stpncpy.c:33:1: error: expected ')'
 :info:build __stpncpy (char *dest, const char *src, size_t n)
 :info:build ^
 :info:build stpncpy.c:27:20: note: expanded from macro '__stpncpy'
 :info:build # define __stpncpy stpncpy
 :info:build                    ^
 :info:build /usr/include/secure/_string.h:110:5: note: expanded from macro
 'stpncpy'
 :info:build   ((__darwin_obsz0 (dest) != (size_t) -1)
 \
 :info:build     ^
 :info:build /usr/include/secure/_common.h:38:63: note: expanded from macro
 '__darwin_obsz0'
 :info:build #define __darwin_obsz0(object) __builtin_object_size (object,
 0)
 :info:build
 ^
 :info:build stpncpy.c:33:1: note: to match this '('
 :info:build __stpncpy (char *dest, const char *src, size_t n)
 :info:build ^
 :info:build stpncpy.c:27:20: note: expanded from macro '__stpncpy'
 :info:build # define __stpncpy stpncpy
 :info:build                    ^
 :info:build /usr/include/secure/_string.h:110:5: note: expanded from macro
 'stpncpy'
 :info:build   ((__darwin_obsz0 (dest) != (size_t) -1)
 \
 :info:build     ^
 :info:build /usr/include/secure/_common.h:38:54: note: expanded from macro
 '__darwin_obsz0'
 :info:build #define __darwin_obsz0(object) __builtin_object_size (object,
 0)
 :info:build                                                      ^
 :info:build stpncpy.c:33:1: error: expected ')'

 <snap>
 }}}

 Thank you very much! [[br]]
 regards, [[br]]
 Sven

--

Comment:

 The version of gettext in MacPorts is 0.18.1.1 and has been for awhile,
 and builds fine for me on all OS X versions; I don't know why you're
 seeing 0.17 or 0.18. Please "sudo port clean gettext", "sudo port
 selftupdate",  and then try again, and attach the main.log file if it
 fails again.

-- 
Ticket URL: <https://trac.macports.org/ticket/35576#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list