Skip to content

Fix AIX build #1334

Closed
Closed

Description

@shubhamhii

While building in AIX platform, attributes like fd_set, struct timeval are missing. Hence build is failing, error copied below.

/opt/freeware/bin/gcc -maix64 -O2 -DHAVE_CONFIG_H   -I../src -I../src -I../include -I/opt/freeware/include  -g -O2 -MT scp_write_nonblock.o -MD -MP -MF .deps/scp_write_nonblock.Tpo -c -o scp_write_nonblock.o scp_write_nonblock.c

scp_write_nonblock.c: In function 'waitsocket':
scp_write_nonblock.c:33:20: error: storage size of 'timeout' isn't known
   33 |     struct timeval timeout;
      |                    ^~~~~~~
scp_write_nonblock.c:35:5: error: unknown type name 'fd_set'
   35 |     fd_set fd;
      |     ^~~~~~
scp_write_nonblock.c:36:5: error: unknown type name 'fd_set'
   36 |     fd_set *writefd = NULL;
      |     ^~~~~~
scp_write_nonblock.c:37:5: error: unknown type name 'fd_set'
   37 |     fd_set *readfd = NULL;
      |     ^~~~~~
scp_write_nonblock.c:43:5: warning: implicit declaration of function 'FD_ZERO'; did you mean 'NZERO'? [-Wimplicit-function-declaration]
   43 |     FD_ZERO(&fd);
      |     ^~~~~~~
      |     NZERO
scp_write_nonblock.c:45:5: warning: implicit declaration of function 'FD_SET' [-Wimplicit-function-declaration]
   45 |     FD_SET(socket_fd, &fd);
      |     ^~~~~~
scp_write_nonblock.c:56:10: warning: implicit declaration of function 'select' [-Wimplicit-function-declaration]
   56 |     rc = select((int)(socket_fd + 1), readfd, writefd, NULL, &timeout);
      |          ^~~~~~
gmake: *** [Makefile:641: scp_write_nonblock.o] Error 1

Activity

  1. shubhamhii commented on Mar 28, 2024

    @shubhamhii
    Author

    I have created a PR for the same. #1335

  2. added 3 commits that reference this issue on Mar 29, 2024
    208225b
    992791d
    1891d84
  3. added a commit that references this issue on Mar 29, 2024
    24503cb
  4. added a commit that references this issue on Jul 14, 2024
    3a7346d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions