-- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer ---------- Forwarded message ---------- Date: Thu, 8 Mar 2001 09:39:19 +0100 (MET) From: Martijn de Munnik <M.H.M.deMunnik at phys.uu.nl> To: openssh at openssh.com Subject: OpenSSH 2.5.1p1 won't compile on Solaris 8 x86 The error I get when I run make gcc -g -O2 -Wall -I/usr/local/include -I/opt/include -I/opt/include -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c getcwd.c getcwd.c:39: sys/dir.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `getcwd.o' Current working directory /export/home/munnik/openssh-2.5.1p1/openbsd-compat *** Error code 1 make: Fatal error: Command failed for target `openbsd-compat/libopenbsd-compat.a' /usr/include/sys/dir.h doesn't exist on Solaris 8 x86, but there is a /usr/ucbinclude/sys/dir.h but when I include that directory it is getting even worse Is this a known problem and is there a solution? with regards Martijn de Munnik
mouring at etoh.eviladmin.org
2001-Mar-08 14:58 UTC
OpenSSH 2.5.1p1 won't compile on Solaris 8 x86 (fwd)
>---------- Forwarded message ---------- >Date: Thu, 8 Mar 2001 09:39:19 +0100 (MET) >From: Martijn de Munnik <M.H.M.deMunnik at phys.uu.nl> >To: openssh at openssh.com >Subject: OpenSSH 2.5.1p1 won't compile on Solaris 8 x86 > >The error I get when I run make > >gcc -g -O2 -Wall -I/usr/local/include -I/opt/include -I/opt/include -I. >-I.. -I. -I./.. -DHAVE_CONFIG_H -c getcwd.c >getcwd.c:39: sys/dir.h: No such file or directory >*** Error code 1 >make: Fatal error: Command failed for target `getcwd.o' >Current working directory >/export/home/munnik/openssh-2.5.1p1/openbsd-compat >*** Error code 1 >make: Fatal error: Command failed for target >`openbsd-compat/libopenbsd-compat.a'Can you check to see if you have a manpage for 'getcwd' for Solaris 8? I have one for Solaris 7. I can't see them throwing out a standard C function. You should be using 2.5.1p2. 2.5.1p1 has a few known issues with Solaris. Thanks. - Ben
sys/dir.h is normally found in the /usr/include directory. The file bears a GNU license, so it is likely part of the gcc environment. If you are missing this file, you might have gcc installed improperly. I've successfully built OpenSSH-2.5.1p2 on Solaris8 x86 with Forte Workshop 6.0 ("cc"). Those boxes do not have "sys/dir.h". At 08:58 AM 3/8/2001, mouring at etoh.eviladmin.org wrote:> >---------- Forwarded message ---------- > >Date: Thu, 8 Mar 2001 09:39:19 +0100 (MET) > >From: Martijn de Munnik <M.H.M.deMunnik at phys.uu.nl> > >To: openssh at openssh.com > >Subject: OpenSSH 2.5.1p1 won't compile on Solaris 8 x86 > > > >The error I get when I run make > > > >gcc -g -O2 -Wall -I/usr/local/include -I/opt/include -I/opt/include -I. > >-I.. -I. -I./.. -DHAVE_CONFIG_H -c getcwd.c > >getcwd.c:39: sys/dir.h: No such file or directory > >*** Error code 1 > >make: Fatal error: Command failed for target `getcwd.o' > >Current working directory > >/export/home/munnik/openssh-2.5.1p1/openbsd-compat > >*** Error code 1 > >make: Fatal error: Command failed for target > >`openbsd-compat/libopenbsd-compat.a' > > >Can you check to see if you have a manpage for 'getcwd' for Solaris 8? I >have one for Solaris 7. I can't see them throwing out a standard C >function. > > >You should be using 2.5.1p2. 2.5.1p1 has a few known issues with Solaris. > > >Thanks. > >- Ben