Opened 4 years ago

Closed 4 years ago

#61641 closed defect (fixed)

echoping @6.0.2_5: error: implicit declaration of function 'to_upper' is invalid in C99

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

Description

% sudo port install echoping +gnutls
--->  Computing dependencies for echoping
--->  Fetching archive for echoping
--->  Attempting to fetch echoping-6.0.2_5+gnutls.darwin_20.x86_64.tbz2 from https://packages.macports.org/echoping
--->  Attempting to fetch echoping-6.0.2_5+gnutls.darwin_20.x86_64.tbz2 from https://nue.de.packages.macports.org/echoping
--->  Attempting to fetch echoping-6.0.2_5+gnutls.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/echoping
--->  Building echoping
Error: Failed to build echoping: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port echoping failed

% less /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/main.log
....
....
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2" && /usr/bin/make -j12 -w all
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2" && /usr/bin/make -j12 -w all
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2'
:info:build /Library/Developer/CommandLineTools/usr/bin/make  all-recursive
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2'
:info:build Making all in plugins
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2/plugins'
:info:build Making all in dns
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2/plugins/dns'
:info:build /Library/Developer/CommandLineTools/usr/bin/make  all-am
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2/plugins/dns'
:info:build /bin/ksh ./libtool --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H -I.   -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -MT dns.lo -MD -MP -MF .deps/dns.Tpo -c -o dns.lo dns.c
:info:build  /usr/bin/clang -DHAVE_CONFIG_H -I. -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -MT dns.lo -MD -MP -MF .deps/dns.Tpo -c dns.c  -fno-common -DPIC -o .libs/dns.o
:info:build In file included from dns.c:6:
:info:build ./../../echoping.h:107:3: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations]
:info:build   gnutls_session tls;
:info:build   ^
:info:build /opt/local/include/gnutls/compat.h:78:41: note: 'gnutls_session' has been explicitly marked deprecated here
:info:build typedef gnutls_session_t gnutls_session _GNUTLS_GCC_ATTR_DEPRECATED;
:info:build                                         ^
:info:build /opt/local/include/gnutls/compat.h:40:53: note: expanded from macro '_GNUTLS_GCC_ATTR_DEPRECATED'
:info:build #define _GNUTLS_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
:info:build                                                     ^
:info:build dns.c:48:4: error: implicit declaration of function 'to_upper' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build                         to_upper(type_name), domain);
:info:build                         ^
:info:build dns.c:108:30: error: implicit declaration of function 'to_upper' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build                 upper_type_name = (char *) to_upper(type_name);
:info:build                                            ^
:info:build dns.c:108:21: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
:info:build                 upper_type_name = (char *) to_upper(type_name);
:info:build                                   ^
:info:build 2 warnings and 2 errors generated.
:info:build make[4]: *** [dns.lo] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2/plugins/dns'
:info:build make[3]: *** [all] Error 2
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2/plugins/dns'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2/plugins'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/work/echoping-6.0.2" && /usr/bin/make -j12 -w all
:info:build Exit code: 2
:error:build Failed to build echoping: command execution failed
:debug:build Error code: CHILDSTATUS 12410 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_echoping/echoping/main.log for details.

Change History (5)

comment:1 Changed 4 years ago by pwosel

Cc: pwosel added

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Keywords: echoping to_upper C99 removed

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

Keywords: bigsur catalina added
Summary: port install echoping +gnutls fails (echoping-6.0.2_5+gnutls.darwin_20.x86_64.tbz2; implicit declaration of function 'to_upper' is invalid in C99)echoping @6.0.2_5: error: implicit declaration of function 'to_upper' is invalid in C99

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

Owner: set to ryandesign
Status: newaccepted

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

Resolution: fixed
Status: acceptedclosed

In 3ce3f3e33a9d80143d22d7f701f954ff92453ff1/macports-ports (master):

echoping: Fix implicit declaration of functions

Closes: #61641

Note: See TracTickets for help on using tickets.