Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - compile ssh with QNX7.0 utilities: (2 Items)
   
compile ssh with QNX7.0 utilities  
Did anyone successfully build the ssh with QNX7.0 utilities?
I want to apply patch over ssh. but met below error:
qcc -V gcc_ntoaarch64le -Wall -Wextra -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-
memaccess -Wno-pointer-sign -Wno-unused-parameter -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -
fno-builtin-memset -fstack-protector-strong   -I. -I.  -DSSHDIR=\"/usr/etc\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -
D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/libexec/sftp-server\" -
D_PATH_SSH_KEY_SIGN=\"/usr/libexec/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/libexec/ssh-pkcs11-helper\" -
D_PATH_SSH_SK_HELPER=\"/usr/libexec/ssh-sk-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/
empty\" -DHAVE_CONFIG_H -c binn.c -o binn.o
binn.c:45:20: fatal error: endian.h: No such file or directory
compilation terminated.
cc: /home/zchen/qnx700/host/linux/x86_64/usr/lib/gcc/aarch64-unknown-nto-qnx7.0.0/5.4.0/cc1 error 1
Makefile:198: recipe for target 'binn.o' failed
make: *** [binn.o] Error 1
Re: compile ssh with QNX7.0 utilities  
I use 7.1 and found endian.h in two places:

$QNX_BASE/target/qnx7/usr/include/io-pkt/machine/endian.h
$QNX_BASE/target/qnx7/usr/include/qh/endian.h

I presume it's in the same spot under QNX 7.0

Perhaps you need to add the "machine" directory to your $INCLUDE path?  (-I argument to qcc)