Bug 2260 - monitor_fdpass.c fails to compile on QNX 6.3.2
Summary: monitor_fdpass.c fails to compile on QNX 6.3.2
Status: CLOSED DUPLICATE of bug 2237
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 6.6p1
Hardware: ix86 Other
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_6_7
  Show dependency treegraph
 
Reported: 2014-07-29 05:30 AEST by Matt Kraai
Modified: 2014-10-08 08:00 AEDT (History)
2 users (show)

See Also:


Attachments
Patch which makes monitor_fdpass.c include <sys/poll.h> (379 bytes, patch)
2014-07-29 05:30 AEST, Matt Kraai
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kraai 2014-07-29 05:30:12 AEST
Created attachment 2459 [details]
Patch which makes monitor_fdpass.c include <sys/poll.h>

monitor_fdpass.c fails to compile on QNX 6.3.2 with the following errors:

gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset  -I. -I. -I/tmp/local/include  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c monitor_fdpass.c
monitor_fdpass.c: In function `mm_send_fd':
monitor_fdpass.c:61: storage size of `pfd' isn't known
monitor_fdpass.c:70: warning: comparison between signed and unsigned
monitor_fdpass.c:83: `POLLOUT' undeclared (first use in this function)
monitor_fdpass.c:83: (Each undeclared identifier is reported only once
monitor_fdpass.c:83: for each function it appears in.)
monitor_fdpass.c:87: warning: implicit declaration of function `poll'
monitor_fdpass.c:61: warning: unused variable `pfd'
monitor_fdpass.c: In function `mm_receive_fd':
monitor_fdpass.c:123: storage size of `pfd' isn't known
monitor_fdpass.c:139: `POLLIN' undeclared (first use in this function)
monitor_fdpass.c:162: warning: comparison between signed and unsigned
monitor_fdpass.c:123: warning: unused variable `pfd'

Making monitor_fdpass.c include <sys/poll.h> fixes this problem.
Comment 1 Damien Miller 2014-07-29 09:43:15 AEST

*** This bug has been marked as a duplicate of bug 2237 ***
Comment 2 Damien Miller 2014-10-08 08:00:37 AEDT
Close all bugs left open from 6.6 and 6.7 releases.