Opened 7 years ago

Closed 7 years ago

#53318 closed defect (fixed)

angst @0.4b: error: too many arguments to function call, expected single argument 'l', have 3 arguments

Reported by: hktalent (MTX_TianXia) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: angst

Description (last modified by ryandesign (Ryan Carsten Schmidt))

$ sudo port upgrade outdated
Password:
--->  Computing dependencies for angst
--->  Building angst
Error: org.macports.build for port angst returned: command execution failed
Please see the log file for port angst for details:
    /opt/local/var/macports/logs/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
$ cat  /opt/local/var/macports/logs/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/main.log
version:1
:msg:main --->  Computing dependencies for angst:info:main .:debug:main Found Dependency: path: /opt/local/lib filename: libnet.dylib regex: ^libnet\.dylib$
:debug:main Searching for dependency: libnet
:debug:main Didn't find receipt, going to depspec regex for: libnet
:debug:main Found Dependency: path: /opt/local/lib filename: libnet.dylib regex: ^libnet\.dylib$
:msg:main 
:debug:main Executing org.macports.main (angst)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.fetch (angst)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (angst)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (angst)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (angst)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (angst)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sun Jan 15 15:14:52 CST 2017
:notice:build --->  Building angst
:debug:build Executing org.macports.build (angst)
:debug:build Environment: 
CC='/usr/bin/clang'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/Volumes/BOOK/xiatian/local/macports/build/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.12'
:debug:build Assembled command: 'cd "/Volumes/BOOK/xiatian/local/macports/build/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/work/angst-0.4b" && /usr/bin/make -j4 -w all'
:debug:build Executing command line:  cd "/Volumes/BOOK/xiatian/local/macports/build/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/work/angst-0.4b" && /usr/bin/make -j4 -w all 
:info:build make: Entering directory `/Volumes/BOOK/xiatian/local/macports/build/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/work/angst-0.4b'
:info:build /usr/bin/clang -O2 -Wall -arch x86_64 -I/opt/local/include `libnet-config --defines`  -c active.c -o active.o
:info:build /usr/bin/clang -O2 -Wall -arch x86_64 -I/opt/local/include `libnet-config --defines`  -c pcap.c -o pcap.o
:info:build active.c:24:34: error: too many arguments to function call, expected single argument 'l', have 3 arguments
:info:build   if((libnet_select_device(&sin, &device, errbuf)) == -1)
:info:build       ~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
:info:build /opt/local/include/./libnet/libnet-functions.h:2222:1: note: 'libnet_select_device' declared here
:info:build int
:info:build ^
:info:build active.c:28:14: warning: implicit declaration of function 'libnet_open_link_interface' is invalid in C99 [-Wimplicit-function-declaration]
:info:build  if((netif = libnet_open_link_interface(device, errbuf)) == NULL)
:info:build              ^
:info:build active.c:28:12: warning: incompatible integer to pointer conversion assigning to 'struct libnet_link_int *' from 'int' [-Wint-conversion]
:info:build  if((netif = libnet_open_link_interface(device, errbuf)) == NULL)
:info:build            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build pcap.c:47:22: error: no member named 'ar_tpa' in 'struct libnet_arp_hdr'; did you mean 'ar_op'?
:info:build     if((memcmp(arph->ar_tpa, current->tpa, 4)) == 0)
:info:build                      ^~~~~~
:info:build                      ar_op
:info:build /opt/local/include/./libnet/libnet-headers.h:216:14: note: 'ar_op' declared here
:info:build     uint16_t ar_op;          /* operation type */
:info:build              ^
:info:build pcap.c:52:34: error: no member named 'ar_sha' in 'struct libnet_arp_hdr'
:info:build     add_host(arph->ar_tpa, arph->ar_sha, arph->ar_spa);
:info:build                            ~~~~  ^
:info:build pcap.c:52:20: error: no member named 'ar_tpa' in 'struct libnet_arp_hdr'; did you mean 'ar_op'?
:info:build     add_host(arph->ar_tpa, arph->ar_sha, arph->ar_spa);
:info:build                    ^~~~~~
:info:build                    ar_op
:info:build /opt/local/include/./libnet/libnet-headers.h:216:14: note: 'ar_op' declared here
:info:build     uint16_t ar_op;          /* operation type */
:info:build              ^
:info:build pcap.c:52:48: error: no member named 'ar_spa' in 'struct libnet_arp_hdr'; did you mean 'ar_op'?
:info:build     add_host(arph->ar_tpa, arph->ar_sha, arph->ar_spa);
:info:build                                                ^~~~~~
:info:build                                                ar_op
:info:build /opt/local/include/./libnet/libnet-headers.h:216:14: note: 'ar_op' declared here
:info:build     uint16_t ar_op;          /* operation type */
:info:build              ^
:info:build active.c:32:37: error: too many arguments to function call, expected single argument 'l', have 3 arguments
:info:build  if((lea = libnet_get_hwaddr(netif, device, errbuf)) == NULL)
:info:build            ~~~~~~~~~~~~~~~~~        ^~~~~~~~~~~~~~
:info:build /opt/local/include/./libnet/libnet-functions.h:1906:1: note: 'libnet_get_hwaddr' declared here
:info:build struct libnet_ether_addr *
:info:build ^
:info:build active.c:37:6: warning: implicit declaration of function 'libnet_init_packet' is invalid in C99 [-Wimplicit-function-declaration]
:info:build  if((libnet_init_packet(pktsize, &packet)) == -1)
:info:build      ^
:info:build active.c:44:42: error: incomplete definition of type 'struct ether_addr'
:info:build   libnet_build_ethernet(current->sha, lea->ether_addr_octet, ETHERTYPE_ARP,
:info:build                                       ~~~^
:info:build active.c:19:9: note: forward declaration of 'struct ether_addr'
:info:build  struct ether_addr *lea;
:info:build         ^
:info:build active.c:49:5: error: incomplete definition of type 'struct ether_addr'
:info:build         lea->ether_addr_octet, current->tpa, current->sha, current->spa,
:info:build         ~~~^
:info:build active.c:19:9: note: forward declaration of 'struct ether_addr'
:info:build  struct ether_addr *lea;
:info:build         ^
:info:build active.c:53:7: warning: implicit declaration of function 'libnet_write_link_layer' is invalid in C99 [-Wimplicit-function-declaration]
:info:build   if((libnet_write_link_layer(netif, device, packet, (LIBNET_ETH_H + LIBNET_ARP_H))) < 0)
:info:build       ^
:info:build active.c:64:6: warning: implicit declaration of function 'libnet_close_link_interface' is invalid in C99 [-Wimplicit-function-declaration]
:info:build  if((libnet_close_link_interface(netif)) == -1)
:info:build      ^
:info:build pcap.c:57:22: error: use of undeclared identifier 'LIBNET_IP_H'
:info:build  if(pkthdr->caplen < LIBNET_IP_H)
:info:build                      ^
:info:build pcap.c:61:49: error: use of undeclared identifier 'LIBNET_IP_H'
:info:build  tcp = (struct libnet_tcp_hdr *)(pkt + hdrlen + LIBNET_IP_H);
:info:build                                                 ^
:info:build pcap.c:63:7: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build  if(ip->ip_p == IPPROTO_TCP)
:info:build     ~~^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:65:13: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   shost = ip->ip_src;
:info:build           ~~^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:66:13: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   dhost = ip->ip_dst;
:info:build           ~~^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:67:20: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   iptlen = ntohs(ip->ip_len);
:info:build                  ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                        ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:67:20: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   iptlen = ntohs(ip->ip_len);
:info:build                  ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                                                       ^
:info:build /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro '__DARWIN_OSSwapConstInt16'
:info:build     ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
:info:build                                  ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:67:20: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   iptlen = ntohs(ip->ip_len);
:info:build                  ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                                                       ^
:info:build /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro '__DARWIN_OSSwapConstInt16'
:info:build                 (((__uint16_t)(x) & 0x00ff) << 8)))
:info:build                                ^
:info:build active.c:89:pcap.c34::16 :error9: :too many arguments to function call, expected single argument 'l', have 3 arguments 
:info:build note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build   if((libnet_select_device(&sin, &device, errbuf)) == -1)
:info:build       ~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
:info:build pcap.c:67:/opt/local/include/./libnet/libnet-functions.h20::2222 :error1: :incomplete definition of type 'struct libnet_ip_hdr' 
:info:build note: 'libnet_select_device' declared here
:info:build int
:info:build ^
:info:build   iptlen = ntohs(ip->ip_len);
:info:build                  ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build active.c:93:12: warning: incompatible integer to pointer conversion assigning to 'struct libnet_link_int *' from 'int' [-Wint-conversion]
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                                                                         ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  if((netif = libnet_open_link_interface(device, errbuf)) == NULL)
:info:build            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:70:14: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   if(ntohs(ip->ip_off) & 0x1fff)
:info:build            ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                        ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:70:14: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   if(ntohs(ip->ip_off) & 0x1fff)
:info:build            ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                                                       ^
:info:build /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro '__DARWIN_OSSwapConstInt16'
:info:build     ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
:info:build                                  ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:70:14: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   if(ntohs(ip->ip_off) & 0x1fff)
:info:build            ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                                                       ^
:info:build /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro '__DARWIN_OSSwapConstInt16'
:info:build                 (((__uint16_t)(x) & 0x00ff) << 8)))
:info:build                                ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:70:14: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   if(ntohs(ip->ip_off) & 0x1fff)
:info:build            ~~^
:info:build /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
:info:build #define ntohs(x)        __DARWIN_OSSwapInt16(x)
:info:build                                              ^
:info:build /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro '__DARWIN_OSSwapInt16'
:info:build     ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
:info:build                                                                                         ^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:73:14: error: incomplete definition of type 'struct libnet_ip_hdr'
:info:build   iphlen = ip->ip_hl * 4;
:info:build            ~~^
:info:build pcap.c:16:9: note: forward declaration of 'struct libnet_ip_hdr'
:info:build  struct libnet_ip_hdr *ip;              /* IP protocol header */
:info:build         ^
:info:build pcap.c:90:12: warning: passing 'u_char [3000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build   init_buf(temp, sizeof(temp));
:info:build            ^~~~
:info:build ./angst.h:69:21: note: passing argument to parameter 'x' here
:info:build void            init_buf(char x[], int size);
:info:build                               ^
:info:build pcap.c:105:20: warning: passing 'u_char [3000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build   templen = strlen(temp);
:info:build                    ^~~~
:info:build /usr/include/string.h:82:28: note: passing argument to parameter '__s' here
:info:build size_t   strlen(const char *__s);
:info:build                             ^
:info:build pcap.c:106:11: warning: passing 'u_char [8192]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build   strlcat(buffer, temp, sizeof(buffer));
:info:build           ^~~~~~
:info:build /usr/include/secure/_string.h:111:28: note: expanded from macro 'strlcat'
:info:build   __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
:info:build                            ^~~~
:info:build pcap.c:106:19: warning: passing 'u_char [3000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build   strlcat(buffer, temp, sizeof(buffer));
:info:build                   ^~~~
:info:build /usr/include/secure/_string.h:111:34: note: expanded from macro 'strlcat'
:info:build   __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
:info:build                                  ^~~
:info:build active.c:96:24: error: too few arguments to function call, single argument 'l' was not specified
:info:build  if((libnet_seed_prand()) == -1)
:info:build      ~~~~~~~~~~~~~~~~~ ^
:info:build /opt/local/include/./libnet/libnet-functions.h:155:1: note: 'libnet_seed_prand' declared here
:info:build int
:info:build ^
:info:build pcap.c:107:19: warning: passing 'u_char [8192]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build   buflen = strlen(buffer);
:info:build                   ^~~~~~
:info:build /usr/include/string.h:82:28: note: passing argument to parameter '__s' here
:info:build size_t   strlen(const char *__s);
:info:build                             ^
:info:build pcap.c:115:36: warning: implicit declaration of function 'libnet_host_lookup' is invalid in C99 [-Wimplicit-function-declaration]
:info:build    fprintf(fp, "\n[ %s : %u  -> ", libnet_host_lookup(shost.s_addr, resolve_flag), sport);
:info:build                                    ^
:info:build active.c:99:28: error: use of undeclared identifier 'LIBNET_IP_H'
:info:build  pktsize = (LIBNET_ETH_H + LIBNET_IP_H + LIBNET_TCP_H);
:info:build                            ^
:info:build active.c:107:48: error: use of undeclared identifier 'PRu32'
:info:build   *((u_int32_t *)ether_src) = libnet_get_prand(PRu32);
:info:build                                                ^
:info:build active.c:108:52: error: use of undeclared identifier 'PRu16'
:info:build   *((u_short *)(ether_src + 4)) = libnet_get_prand(PRu16);
:info:build                                                    ^
:info:build active.c:111:48: error: use of undeclared identifier 'PRu32'
:info:build   *((u_int32_t *)ether_dst) = libnet_get_prand(PRu32);
:info:build                                                ^
:info:build active.c:112:52: error: use of undeclared identifier 'PRu16'
:info:build   *((u_short *)(ether_dst + 4)) = libnet_get_prand(PRu16);
:info:build                                                    ^
:info:build active.c:115:28: error: use of undeclared identifier 'PRu32'
:info:build   srcip = libnet_get_prand(PRu32);
:info:build                            ^
:info:build active.c:118:28: error: use of undeclared identifier 'PRu32'
:info:build   dstip = libnet_get_prand(PRu32);
:info:build                            ^
:info:build active.c:121:28: error: use of undeclared identifier 'PRu16'
:info:build   sport = libnet_get_prand(PRu16);
:info:build                            ^
:info:build active.c:124:28: error: use of undeclared identifier 'PRu16'
:info:build   dport = libnet_get_prand(PRu16);
:info:build                            ^
:info:build pcap.c:115:36: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
:info:build    fprintf(fp, "\n[ %s : %u  -> ", libnet_host_lookup(shost.s_addr, resolve_flag), sport);
:info:build                     ~~             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build                     %d
:info:build pcap.c:116:33: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
:info:build    fprintf(fp, "%s : %u ]\n\n", libnet_host_lookup(dhost.s_addr, resolve_flag), dport);
:info:build                 ~~              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build                 %d
:info:build pcap.c:120:13: warning: passing 'u_char [8192]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build    init_buf(buffer, sizeof(buffer));
:info:build             ^~~~~~
:info:build ./angst.h:69:21: note: passing argument to parameter 'x' here
:info:build void            init_buf(char x[], int size);
:info:build                               ^
:info:build active.c:127:76: error: too few arguments to function call, expected 7, have 6
:info:build   libnet_build_ethernet(ether_dst, ether_src, ETHERTYPE_IP, NULL, 0, packet);
:info:build   ~~~~~~~~~~~~~~~~~~~~~                                                    ^
:info:build /opt/local/include/./libnet/libnet-functions.h:497:1: note: 'libnet_build_ethernet' declared here
:info:build libnet_ptag_t
:info:build ^
:info:build active.c:130:3: warning: implicit declaration of function 'libnet_build_ip' is invalid in C99 [-Wimplicit-function-declaration]
:info:build   libnet_build_ip(LIBNET_TCP_H, 0, (libnet_get_prand(PRu16)), 0, 64,
:info:build   ^
:info:build active.c:130:54: error: use of undeclared identifier 'PRu16'
:info:build   libnet_build_ip(LIBNET_TCP_H, 0, (libnet_get_prand(PRu16)), 0, 64,
:info:build                                                      ^
:info:build active.c:134:52: error: use of undeclared identifier 'PRu32'
:info:build   libnet_build_tcp(sport, dport, (libnet_get_prand(PRu32)), (libnet_get_prand(PRu32)),
:info:build                                                    ^
:info:build active.c:134:79: error: use of undeclared identifier 'PRu32'
:info:build   libnet_build_tcp(sport, dport, (libnet_get_prand(PRu32)), (libnet_get_prand(PRu32)),
:info:build                                                                               ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 9 warnings and 18 errors generated.
:info:build 7 warnings and 20 errors generated.
:info:build make: *** [pcap.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: *** [active.o] Error 1
:info:build make: Leaving directory `/Volumes/BOOK/xiatian/local/macports/build/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/work/angst-0.4b'
:info:build Command failed:  cd "/Volumes/BOOK/xiatian/local/macports/build/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/work/angst-0.4b" && /usr/bin/make -j4 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port angst returned: command execution failed
:debug:build Error code: CHILDSTATUS 19315 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for angst: org.macports.destroot org.macports.build
:notice:build Please see the log file for port angst for details:
    /opt/local/var/macports/logs/_Volumes_BOOK_xiatian_local_macports_sources_rsync.macports.org_release_ports_net_angst/angst/main.log

Attachments (1)

main.log (24.7 KB) - added by hktalent (MTX_TianXia) 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by hktalent (MTX_TianXia)

Attachment: main.log added

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

Description: modified (diff)
Milestone: MacPorts 2.3.6
Port: angst added
Summary: bug report sudo port upgrade outdatedangst @0.4b: error: too many arguments to function call, expected single argument 'l', have 3 arguments
Type: updatedefect

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

Owner: set to ryandesign
Status: newaccepted

It's failing because it's trying to use libnet 1.1, with which it is not compatible. It builds fine with libnet 1.0. The dependency needs to be switched from a lib:-style dependency, which has been deprecated for years, to a port:-style dependency to ensure the correct port gets used.

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

Resolution: fixed
Status: acceptedclosed

In 8f5455c8/macports-ports:

angst: Fix build failure with libnet11 by ensuring libnet (1.0) is used

Closes: #53318

Note: See TracTickets for help on using tickets.