Bug 692 - Can't make OpenSSH-3.7.1p1 on OpenBSD 3.0
Summary: Can't make OpenSSH-3.7.1p1 on OpenBSD 3.0
Status: CLOSED DUPLICATE of bug 671
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 3.7.1p1
Hardware: ix86 OpenBSD
: P2 critical
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-20 09:23 AEST by Joe Szedula
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Szedula 2003-09-20 09:23:38 AEST
"make" terminates with message:

log.c: In function `do_log':
log.c:393: warning: implicit declaration of function `strnvis'
log.c:393: `VIS_SAFE' undeclared (first use in this function)
log.c:393: (Each undeclared identifier is reported only once
log.c:393: for each function it appears in.)
log.c:393: `VIS_OCTAL' undeclared (first use in this function)
*** Error code 1

I found both "VIS_SAFE" and "VIS_OCTAL" in /usr/include:

cd /usr/include

grep VIS_SAFE *.h
vis.h:#define   VIS_SAFE        0x20    /* only encode "unsafe" characters */

grep VIS_OCTAL *.h
vis.h:#define   VIS_OCTAL       0x01    /* use octal \ddd format */


So I used this "configure":

./configure -prefix=/usr -sysconfdir=/etc -bindir=/usr/bin -sbindir=/usr/sbin
-includedir=/usr/include

To match OpenBSD 3.0 locations and use "/usr/include"

Got the same error so I preceeded "configure" with:

   setenv CFLAGS -I/usr/include

And got this in "configure" output:

   Compiler flags: -I/usr/include -Wall -Wpointer-arith -Wno-uninitialized

Reran "make" and got the same error message. Even though the "gcc" statement is:

gcc -I/usr/include -Wall -Wpointer-arith -Wno-uninitialized -I. -I. 
-DSSHDIR=\"/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_PIDDIR=\"/var/run\"  -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" 
-DSSH_RAND_HELPER=\"/usr/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c log.c
Comment 1 Damien Miller 2003-09-20 09:27:34 AEST
Don't people check the bug list before adding new ones? 

*** This bug has been marked as a duplicate of 671 ***
Comment 2 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED