Skip to content

error: use of undeclared identifier 'AF_INET' #77

@yurivict

Description

@yurivict
FAILED: tests/CMakeFiles/evtest.dir/evtest.c.o 
/usr/local/libexec/ccache/cc  -I/usr/ports/devel/evpath/work/.build/tests -I/usr/ports/devel/evpath/work/.build -I/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=gnu99 -MD -MT tests/CMakeFiles/evtest.dir/evtest.c.o -MF tests/CMakeFiles/evtest.dir/evtest.c.o.d -o tests/CMakeFiles/evtest.dir/evtest.c.o -c /usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/tests/evtest.c
/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/tests/evtest.c:214:23: error: use of undeclared identifier 'AF_INET'
  214 |             (void) inet_pton(AF_INET, HELLO_GROUP, (struct in_addr *)&addr);
      |                              ^
1 error generated.
FAILED: rtests/CMakeFiles/revp_remote_terminal_test.dir/remote_terminal_test.c.o 
/usr/local/libexec/ccache/cc  -I/usr/ports/devel/evpath/work/.build -I/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=gnu99 -MD -MT rtests/CMakeFiles/revp_remote_terminal_test.dir/remote_terminal_test.c.o -MF rtests/CMakeFiles/revp_remote_terminal_test.dir/remote_terminal_test.c.o.d -o rtests/CMakeFiles/revp_remote_terminal_test.dir/remote_terminal_test.c.o -c /usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/rtests/remote_terminal_test.c
/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/rtests/remote_terminal_test.c:293:19: error: use of undeclared identifier 'AF_INET'
  293 |         (void) inet_pton(AF_INET, HELLO_GROUP, (struct in_addr *)&addr);
      |                          ^
1 error generated.
[ 23% 36/147] /usr/local/libexec/ccache/cc  -I/usr/ports/devel/evpath/work/.build -I/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=gnu99 -MD -MT mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o -MF mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o.d -o mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o -c /usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmtest.c
FAILED: mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o 
/usr/local/libexec/ccache/cc  -I/usr/ports/devel/evpath/work/.build -I/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=gnu99 -MD -MT mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o -MF mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o.d -o mtests/CMakeFiles/mtests_cmtest.dir/cmtest.c.o -c /usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmtest.c
/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmtest.c:213:23: error: use of undeclared identifier 'AF_INET'
  213 |             (void) inet_pton(AF_INET, HELLO_GROUP, (struct in_addr *)&addr);
      |                              ^
/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmtest.c:327:19: error: use of undeclared identifier 'AF_INET'
  327 |         (void) inet_pton(AF_INET, HELLO_GROUP, (struct in_addr *)&addr);
      |                          ^
2 errors generated.
[ 24% 36/147] /usr/local/libexec/ccache/cc  -I/usr/ports/devel/evpath/work/.build -I/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=gnu99 -MD -MT mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o -MF mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o.d -o mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o -c /usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmping.c
FAILED: mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o 
/usr/local/libexec/ccache/cc  -I/usr/ports/devel/evpath/work/.build -I/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad -isystem /usr/local/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=gnu99 -MD -MT mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o -MF mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o.d -o mtests/CMakeFiles/mtests_cmping.dir/cmping.c.o -c /usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmping.c
/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmping.c:212:23: error: use of undeclared identifier 'AF_INET'
  212 |             (void) inet_pton(AF_INET, HELLO_GROUP, (struct in_addr *)&addr);
      |                              ^
/usr/ports/devel/evpath/work/evpath-4.5.0-124-g74093ad/mtests/cmping.c:314:19: error: use of undeclared identifier 'AF_INET'
  314 |         (void) inet_pton(AF_INET, HELLO_GROUP, (struct in_addr *)&addr);
      |                          ^
2 errors generated.

#include <sys/socket.c> should be added in each affected file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions