Opened 13 years ago

Closed 13 years ago

#30725 closed defect (fixed)

argp-standalone does not build with newest Xcode (Build 4D151a)

Reported by: mail@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: haspatch Cc:
Port: argp-standalone

Description

ganymed:~ uwe$ sudo port clean argp-standalone
--->  Cleaning argp-standalone
ganymed:~ uwe$ sudo port -v install argp-standalone
--->  Fetching archive for argp-standalone
--->  argp-standalone-1.3_0.darwin_11.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/argp-standalone
--->  Attempting to fetch argp-standalone-1.3_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/argp-standalone
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching argp-standalone
--->  Verifying checksum(s) for argp-standalone
--->  Checksumming argp-standalone-1.3.tar.gz
--->  Extracting argp-standalone
--->  Extracting argp-standalone-1.3.tar.gz
--->  Configuring argp-standalone
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /Developer/usr/bin/clang
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Developer/usr/bin/clang accepts -g... yes
checking for /Developer/usr/bin/clang option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of /Developer/usr/bin/clang... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for gcc... (cached) /Developer/usr/bin/clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether /Developer/usr/bin/clang accepts -g... (cached) yes
checking for /Developer/usr/bin/clang option to accept ANSI C... (cached) none needed
checking dependency style of /Developer/usr/bin/clang... (cached) gcc3
checking how to run the C preprocessor... /Developer/usr/bin/clang -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for __attribute__... no
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
checking for strerror... yes
checking for mempcpy... no
checking for strndup... yes
checking for strchrnul... no
checking for putc_unlocked('x', stdout)... yes
checking for flockfile... yes
checking for fputs_unlocked... no
checking for fwrite_unlocked... no
checking for strdup... yes
checking for asprintf... yes
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing depfiles commands
--->  Building argp-standalone
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3'
/usr/bin/make  all-recursive
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3'
Making all in .
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3'
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-ba.o -MD -MP -MF ".deps/argp-ba.Tpo" -c -o argp-ba.o argp-ba.c; \
	then mv -f ".deps/argp-ba.Tpo" ".deps/argp-ba.Po"; else rm -f ".deps/argp-ba.Tpo"; exit 1; fi
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-eexst.o -MD -MP -MF ".deps/argp-eexst.Tpo" -c -o argp-eexst.o argp-eexst.c; \
	then mv -f ".deps/argp-eexst.Tpo" ".deps/argp-eexst.Po"; else rm -f ".deps/argp-eexst.Tpo"; exit 1; fi
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-fmtstream.o -MD -MP -MF ".deps/argp-fmtstream.Tpo" -c -o argp-fmtstream.o argp-fmtstream.c; \
	then mv -f ".deps/argp-fmtstream.Tpo" ".deps/argp-fmtstream.Po"; else rm -f ".deps/argp-fmtstream.Tpo"; exit 1; fi
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-help.o -MD -MP -MF ".deps/argp-help.Tpo" -c -o argp-help.o argp-help.c; \
	then mv -f ".deps/argp-help.Tpo" ".deps/argp-help.Po"; else rm -f ".deps/argp-help.Tpo"; exit 1; fi
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-parse.o -MD -MP -MF ".deps/argp-parse.Tpo" -c -o argp-parse.o argp-parse.c; \
	then mv -f ".deps/argp-parse.Tpo" ".deps/argp-parse.Po"; else rm -f ".deps/argp-parse.Tpo"; exit 1; fi
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-pv.o -MD -MP -MF ".deps/argp-pv.Tpo" -c -o argp-pv.o argp-pv.c; \
	then mv -f ".deps/argp-pv.Tpo" ".deps/argp-pv.Po"; else rm -f ".deps/argp-pv.Tpo"; exit 1; fi
argp-help.c:233:15: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                val = atoi (arg);
                            ^~~
/usr/include/stdlib.h:149:23: note: passing argument to parameter here
int      atoi(const char *);
                          ^
argp-help.c:241:17: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                  && strncmp (var, un->name, var_len) == 0)
                              ^~~
/usr/include/string.h:94:26: note: passing argument to parameter here
int      strncmp(const char *, const char *, size_t);
                             ^
argp-help.c:606:71: warning: unused parameter 'real' [-Wunused-parameter]
until_short (const struct argp_option *opt, const struct argp_option *real UNUSED,
                                                                      ^
argp-help.c:607:19: warning: unused parameter 'domain' [-Wunused-parameter]
             const char *domain UNUSED, void *cookie UNUSED)
                         ^
argp-help.c:607:40: warning: unused parameter 'cookie' [-Wunused-parameter]
             const char *domain UNUSED, void *cookie UNUSED)
                                              ^
argp-help.c:952:18: warning: unused parameter 'domain' [-Wunused-parameter]
     const char *domain UNUSED, argp_fmtstream_t stream)
                 ^
argp-fmtstream.c:395:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_write' is not supported in C99 mode
__argp_fmtstream_write (argp_fmtstream_t __fs,
argp-help.c:1257:22: warning: unused parameter 'domain' [-Wunused-parameter]
                       const char *domain UNUSED, void *cookie)
                                   ^
argp-help.c:1271:16: warning: unused parameter 'domain' [-Wunused-parameter]
                        const char *domain UNUSED, void *cookie)
                                    ^
argp-help.c:1303:15: warning: unused parameter 'domain' [-Wunused-parameter]
                const char *domain UNUSED, void *cookie)
                            ^
^
./argp-namefrob.h:62:32: note: instantiated from:
#define __argp_fmtstream_write argp_fmtstream_write
                               ^
./argp-fmtstream.h:215:1: note: previous definition is here
__argp_fmtstream_write (argp_fmtstream_t __fs,
^
./argp-fmtstream.h:201:32: note: instantiated from:
#define __argp_fmtstream_write argp_fmtstream_write
                               ^
argp-fmtstream.c:409:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_puts' is not supported in C99 mode
__argp_fmtstream_puts (argp_fmtstream_t __fs, __const char *__str)
^
./argp-namefrob.h:60:31: note: instantiated from:
#define __argp_fmtstream_puts argp_fmtstream_puts
                              ^
./argp-fmtstream.h:229:1: note: previous definition is here
__argp_fmtstream_puts (argp_fmtstream_t __fs, __const char *__str)
^
./argp-fmtstream.h:200:31: note: instantiated from:
#define __argp_fmtstream_puts argp_fmtstream_puts
                              ^
argp-fmtstream.c:422:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_putc' is not supported in C99 mode
__argp_fmtstream_putc (argp_fmtstream_t __fs, int __ch)
^
./argp-namefrob.h:58:31: note: instantiated from:
#define __argp_fmtstream_putc argp_fmtstream_putc
                              ^
./argp-fmtstream.h:242:1: note: previous definition is here
__argp_fmtstream_putc (argp_fmtstream_t __fs, int __ch)
^
./argp-fmtstream.h:199:31: note: instantiated from:
#define __argp_fmtstream_putc argp_fmtstream_putc
                              ^
argp-fmtstream.c:432:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_set_lmargin' is not supported in C99 mode
__argp_fmtstream_set_lmargin (argp_fmtstream_t __fs, size_t __lmargin)
^
./argp-namefrob.h:66:38: note: instantiated from:
#define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin
                                     ^
./argp-fmtstream.h:252:1: note: previous definition is here
__argp_fmtstream_set_lmargin (argp_fmtstream_t __fs, size_t __lmargin)
^
./argp-fmtstream.h:202:38: note: instantiated from:
#define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin
                                     ^
argp-fmtstream.c:444:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_set_rmargin' is not supported in C99 mode
__argp_fmtstream_set_rmargin (argp_fmtstream_t __fs, size_t __rmargin)
^
./argp-namefrob.h:68:38: note: instantiated from:
#define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin
                                     ^
./argp-fmtstream.h:264:1: note: previous definition is here
__argp_fmtstream_set_rmargin (argp_fmtstream_t __fs, size_t __rmargin)
^
./argp-fmtstream.h:203:38: note: instantiated from:
#define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin
                                     ^
argp-fmtstream.c:456:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_set_wmargin' is not supported in C99 mode
__argp_fmtstream_set_wmargin (argp_fmtstream_t __fs, size_t __wmargin)
^
./argp-namefrob.h:70:38: note: instantiated from:
#define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin
                                     ^
./argp-fmtstream.h:276:1: note: previous definition is here
__argp_fmtstream_set_wmargin (argp_fmtstream_t __fs, size_t __wmargin)
^
./argp-fmtstream.h:204:38: note: instantiated from:
#define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin
                                     ^
argp-fmtstream.c:468:1: error: redefinition of a 'extern inline' function 'argp_fmtstream_point' is not supported in C99 mode
__argp_fmtstream_point (argp_fmtstream_t __fs)
^
./argp-namefrob.h:72:32: note: instantiated from:
#define __argp_fmtstream_point argp_fmtstream_point
                               ^
./argp-fmtstream.h:288:1: note: previous definition is here
__argp_fmtstream_point (argp_fmtstream_t __fs)
^
./argp-fmtstream.h:205:32: note: instantiated from:
#define __argp_fmtstream_point argp_fmtstream_point
                               ^
7 errors generated.
if /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -I.  -pipe -O2 -arch x86_64 -ggdb3 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs -MT argp-pvh.o -MD -MP -MF ".deps/argp-pvh.Tpo" -c -o argp-pvh.o argp-pvh.c; \
	then mv -f ".deps/argp-pvh.Tpo" ".deps/argp-pvh.Po"; else rm -f ".deps/argp-pvh.Tpo"; exit 1; fi
make[2]: *** [argp-fmtstream.o] Error 1
make[2]: *** Waiting for unfinished jobs....
argp-help.c:1733:4: warning: #warning No reasonable value to return [-W#warnings]
#  warning No reasonable value to return
   ^
argp-parse.c:172:37: warning: unused parameter 'arg' [-Wunused-parameter]
argp_version_parser (int key, char *arg UNUSED, struct argp_state *state)
                                    ^
1 warning generated.
10 warnings generated.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/work/argp-standalone-1.3" && /usr/bin/make -j4 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for argp-standalone): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for argp-standalone is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_argp-standalone/argp-standalone/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

Portfile.diff (410 bytes) - added by mail@… 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by mail@…

Attachment: Portfile.diff added

comment:1 Changed 13 years ago by afb@…

You could try using -std=c89, rather than switching compilers.

comment:2 Changed 13 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r82293.

Note: See TracTickets for help on using tickets.