Opened 4 years ago

Closed 4 years ago

#61675 closed defect (fixed)

cftp: error: implicitly declaring library function 'exit'

Reported by: alex1platon Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: cftp

Description

using Command Line Tools for XCode 12.2

:info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk  -pipe -Os -isys
:info:build signals.c:56:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-d
:info:build     exit(1);
:info:build     ^
:info:build signals.c:56:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
:info:build 1 error generated.
:info:build make: *** [signals.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build sockets.c:120:27: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types wit
:info:build         if (getsockname(s, addr, lenp) == -1) {
:info:build                                  ^~~~
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here
:info:build int     getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict)
:info:build                                                                              ^
:info:build 1 warning generated.
:info:build 2 warnings generated.
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_cftp/cftp/work
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_cftp/cftp/work/cft
:info:build Exit code: 2
:error:build Failed to build cftp: command execution failed

Attachments (1)

main.log (20.0 KB) - added by alex1platon 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by alex1platon

Attachment: main.log added

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur catalina added; cftp big sur Big_Sur removed
Summary: cftp fails to build on Big Surcftp: error: implicitly declaring library function 'exit'

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 104391c9be5fe72438f493f7616b2eeeac8ac511/macports-ports (master):

cftp: Fix implicit declaration of functions

Closes: #61675

Note: See TracTickets for help on using tickets.