Craig Dewick
2003-Sep-18 08:22 UTC
Problem building OpenSSH on Cobalt Raq2i running standard Linux
Hi everyone, I'm trying to build OpenSSH on my Cobalt Raq2i box which is running the standard Linux installation with all patches installed. I had no problems building OpenSSL v0.9.7b and it installed without problems as well. However, the OpenSSH build keeps failing at a certain point: gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I. -I/usr/local/ssl/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_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c monitor_fdpass.c monitor_fdpass.c: In function `mm_send_fd': monitor_fdpass.c:57: `SCM_RIGHTS' undeclared (first use this function) monitor_fdpass.c:57: (Each undeclared identifier is reported only once monitor_fdpass.c:57: for each function it appears in.) make: *** [monitor_fdpass.o] Error 1 I'm trying to build v3.7.1p1 at the moment, and I have also tried v3.4p1 as well as several in between releases. Has anyone else come across this problem? The version of gcc which comes with Linux for the Raq2's is v2.7.2. I wouldn't expect that the be too old, but it might be. If the problem has nothing to do with OpenSSH I'll need to look elsewhere... Craig.
Darren Tucker
2003-Sep-18 11:36 UTC
Problem building OpenSSH on Cobalt Raq2i running standard Linux
Craig Dewick wrote:> I'm trying to build OpenSSH on my Cobalt Raq2i box which is running the > standard Linux installation with all patches installed.[snip]> monitor_fdpass.c: In function `mm_send_fd': > monitor_fdpass.c:57: `SCM_RIGHTS' undeclared (first use this function) > monitor_fdpass.c:57: (Each undeclared identifier is reported only once > monitor_fdpass.c:57: for each function it appears in.) make: *** > [monitor_fdpass.o] Error 1Your headers (and possibly kernel?) appear to be missing the parts required to do descriptor passing, but have enough to fool configure's tests. What are HAVE_SENDMSG, HAVE_ACCRIGHTS_IN_MSGHDR and HAVE_CONTROL_IN_MSGHDR set to in config.h? If you comment out "#define HAVE_SENDMSG" from config.h, you should be able to compile OK (however you'll have to run without PrivilegeSeparation). -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Reasonably Related Threads
- SCM_RIGHTS problem with openssh-3.8p1 build on Cobalt Raq2
- OpenSSH 3.2.3p1 won't compile under IRIX 6.5.14
- [Bug 311] New: Compile fails on MIPS Linux (Cobalt Raq2) - SCM_RIGHTS undeclared
- OpenSSH 3.4p1 - compilation problem on Linux
- Question regarding alignment patch