Strickland, Trevor (Contractor)
2003-Oct-15 23:00 UTC
Compile of OpenSSH 3.7.1p2 failing - TRU64 5.1A
All, I'm getting the following error message when trying to 'make' OpenSSH 3.7.1p2: cc: Severe: compress.c, line 19: Cannot find file "zlib.h" specified in #include directive. (noinclfilef) #include "zlib.h" -^ *** Exit 1 Stop. What can I do to get this to compile correctly? Thanks in advance, Trevor Strickland trevor.strickland at ed.gov
"Strickland, Trevor (Contractor)" wrote:> > All, > > I'm getting the following error message when trying to 'make' OpenSSH > 3.7.1p2: > > cc: Severe: compress.c, line 19: Cannot find file "zlib.h" specified in > #include directive. (noinclfilef) > #include "zlib.h" > -^ > *** Exit 1 > Stop. > > What can I do to get this to compile correctly?That file is part of the zlib package, perhaps it's not installed correctly. Try reinstalling it (you can get it from www.zlib.org). You may have to specify the path to it to OpenSSH's configure (--with-zlib=PATH). -- 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.
Strickland, Trevor (Contractor)
2003-Oct-16 13:17 UTC
Compile of OpenSSH 3.7.1p2 failing - TRU64 5.1A
THANK YOU - Chris Linn Darren Tucker Strangely enough, when I simply added the --with-zlib=PATH, it compiled. I didn't have to re-install zlib or place it into a different location. It looks as if it just didn't know where to find it. Trevor -----Original Message----- From: Christopher Linn [mailto:celinn at mtu.edu] Sent: Wednesday, October 15, 2003 10:25 PM To: Darren Tucker Cc: Strickland, Trevor (Contractor); 'openssh-unix-dev at mindrot.org' Subject: Re: Compile of OpenSSH 3.7.1p2 failing - TRU64 5.1A On Thu, Oct 16, 2003 at 10:11:22AM +1000, Darren Tucker wrote:> "Strickland, Trevor (Contractor)" wrote: > > > > All, > > > > I'm getting the following error message when trying to 'make' OpenSSH > > 3.7.1p2: > > > > cc: Severe: compress.c, line 19: Cannot find file "zlib.h" specified in > > #include directive. (noinclfilef) > > #include "zlib.h" > > -^ > > *** Exit 1 > > Stop. > > > > What can I do to get this to compile correctly? > > That file is part of the zlib package, perhaps it's not installed > correctly. Try reinstalling it (you can get it from www.zlib.org). You > may have to specify the path to it to OpenSSH's configure > (--with-zlib=PATH).i have a machine which was pre-installed with Compaq Tru64 UNIX V5.1A (Rev. 1885); this has a /usr/lib/libz.a but no corrosponding zlib.h file installed. not sure if this came in the base system or as an optional package. what i did was to leave the system file alone, and in a non-standard location install zlib.h, zconf.h and libz.a from the zlib-1.1.4 release. then use --with-zlib=PATH to get the OpenSSH configure script to find it. chris -- Christopher Linn, (celinn at mtu.edu) | By no means shall either the CEC Staff System Administrator | or MTU be held in any way liable Center for Experimental Computation | for any opinions or conjecture I Michigan Technological University | hold to or imply to hold herein.
Strickland, Trevor (Contractor)
2003-Oct-16 19:38 UTC
Compile of OpenSSH 3.7.1p2 failing - TRU64 5.1A
Darren, I looked and no, I do not have zlib.[a|so] in my library path. After looking in the /usr/local/include directory, where I believe the compiler was looking, I have the following files: drwxr-xr-x 2 root system 8192 Oct 15 18:51 . drwxr-xr-x 13 root system 8192 Feb 3 2003 .. -rw-r--r-- 1 root system 7810 Jan 4 2003 zconf.h -rw-r--r-- 1 root system 40900 Oct 15 18:49 zlib.h I hope this was the information that you were looking for. If it isn't, let me know. Thanks again, Trevor Strickland -----Original Message----- From: Darren Tucker [mailto:dtucker at zip.com.au] Sent: Thursday, October 16, 2003 9:35 AM To: Strickland, Trevor (Contractor) Cc: OpenSSH Devel List Subject: Re: Compile of OpenSSH 3.7.1p2 failing - TRU64 5.1A "Strickland, Trevor (Contractor)" wrote:> Strangely enough, when I simply added the --with-zlib=PATH, it compiled.I> didn't have to re-install zlib or place it into a different location. It > looks as if it just didn't know where to find it.Configure searches for the library. If configure doesn't find it in the system library patch, the next place it looks is /usr/local/. You have a zlib.[a|so] in your normal system library path? -- 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.
> "Strickland, Trevor (Contractor)" wrote: > I looked and no, I do not have zlib.[a|so] in my library path. > After looking in the /usr/local/include directory, where I believe the > compiler was looking, I have the following files:Err, make that "libz.[a|so]". -- 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.