OpenSSH on Solaris 2.3 Sparc Warning allot of text

Jack Barnett jbarnett at axil.netmate.com
Wed Feb 23 00:50:48 EST 2000


----- Original Message -----
From: Ben Taylor <bent at clark.net>
To: Jack Barnett <jbarnett at axil.netmate.com>
Cc: Andre Lucas <andre.lucas at dial.pipex.com>; <openssh-unix-dev at mindrot.org>
Sent: Monday, February 21, 2000 3:35 PM
Subject: Re: OpenSSH doesn't compile under Solaris 2.3 Sparc


> On Mon, 21 Feb 2000, Jack Barnett wrote:
>
> > > On Mon, 21 Feb 2000, Jack Barnett wrote:
> > >
> > > If it's in the BSD compatibility libraries, you may have to link
> > > against the libaries in /usr/ucblib.  Do a /usr/ccs/bin/nm on the
> > > libraries in /usr/ucblib and see if getpagesize pops out.
> >
> > --host-->/usr/ccs/bin/nm /usr/ucblib/* | grep -i page
> > Symbols from /usr/ucblib/libucb.a[getpagesize.o]:
> > [1]     |         0|       0|FILE |LOCL |0    |ABS    |getpagesize.c
> > [8]     |         0|      16|FUNC |GLOB |0    |2      |getpagesize
> > [136]   |         0|       0|FILE |LOCL |0    |ABS    |getpagesize.c
> > [304]   |     31132|      16|FUNC |GLOB |0    |8      |getpagesize
> > [136]   |         0|       0|FILE |LOCL |0    |ABS    |getpagesize.c
> >
> > Looks like it is there.
>
> Yep.
>
> > > If so,
> > > you'll need to add a -L/usr/ucblib to the end of the compile line
> > > so you don't end up with any other functions in that library.
> >
> > Ok you are going to have to slow down a bit, I am not a programmer.
Passing
> > that to ./configure or make breaks them with an error.  If I ./configure
> > like normal then edit the Makefile by hand it gives the error
>
> try doing the configure with "env LDFLAGS="-L/usr/ucblib" ./configure ..."

--host~/open/openssh-1.2.2 -->env LDFLAGS="-L/usr/ucblib"
./configure --with-tcp-wrappers --with-egd-pool=/dev/random

creating cache ./config.cache
checking host system type... sparc-sun-solaris2.3
checking for gcc... gcc
checking whether the C compiler (gcc  -L/usr/ucblib) works... yes
checking whether the C compiler (gcc  -L/usr/ucblib) is a cross-compiler...
no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... :
checking for a BSD compatible install... ./install-sh -c
checking for ar... ar
checking for perl... /bin/perl
checking for rsh... /bin/rsh
checking for xauth... /usr/openwin/bin/xauth
checking for inline... inline
checking for OpenSSL/SSLeay directory... /usr/local/ssl
checking for RSAref library... no
checking for CRYPTO_lock in -lcrypto... yes
checking for deflate in -lz... yes
checking for login in -lutil... no
checking for yp_match in -lnsl... yes
checking for main in -lsocket... yes
checking for bstring.h... no
checking for endian.h... no
checking for lastlog.h... yes
checking for login.h... no
checking for maillock.h... yes
checking for netdb.h... yes
checking for netgroup.h... no
checking for paths.h... no
checking for poll.h... yes
checking for pty.h... no
checking for shadow.h... yes
checking for security/pam_appl.h... no
checking for sys/bitypes.h... no
checking for sys/bsdtty.h... no
checking for sys/cdefs.h... no
checking for sys/poll.h... yes
checking for sys/select.h... yes
checking for sys/stropts.h... yes
checking for sys/sysmacros.h... yes
checking for sys/time.h... yes
checking for sys/ttcompat.h... yes
checking for stddef.h... yes
checking for util.h... no
checking for utmp.h... yes
checking for utmpx.h... yes
checking for arc4random... no
checking for bindresvport_af... no
checking for freeaddrinfo... no
checking for gai_strerror... no
checking for getaddrinfo... no
checking for getpagesize... no
checking for getnameinfo... no
checking for innetgr... yes
checking for md5_crypt... no
checking for mkdtemp... no
checking for openpty... no
checking for rresvport_af... no
checking for setenv... no
checking for seteuid... yes
checking for setlogin... no
checking for setproctitle... no
checking for setreuid... no
checking for snprintf... no
checking for strlcat... no
checking for strlcpy... no
checking for updwtmpx... yes
checking for vsnprintf... no
checking for _getpty... no
checking for login... no
checking for login in -lbsd... no
checking for daemon... no
checking for daemon in -lbsd... no
checking size of char... 1
checking size of short int... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking for intXX_t types... no
checking for u_intXX_t types... no
checking for intXX_t and u_intXX_t types in sys/bitypes.h... no
checking for uintXX_t types... no
checking for socklen_t... no
checking for size_t... yes
checking for struct sockaddr_storage... no
checking for struct sockaddr_in6... no
checking for struct in6_addr... no
checking for struct addrinfo... no
checking whether to build GNOME ssh-askpass... no
checking for /dev/urandom... no
checking whether utmp.h has ut_host field... no
checking whether utmpx.h has ut_host field... yes
checking whether utmpx.h has syslen field... yes
checking whether utmp.h has ut_pid field... yes
checking whether utmp.h has ut_type field... yes
checking whether utmp.h has ut_tv field... no
checking whether utmp.h has ut_id field... yes
checking whether utmp.h has ut_addr field... no
checking whether utmpx.h has ut_addr field... no
checking whether utmp.h has ut_addr_v6 field... no
checking whether utmpx.h has ut_addr_v6 field... no
checking whether struct sockaddr_storage has ss_family field... no
checking whether struct sockaddr_storage has __ss_family field... no
checking location of lastlog file... /var/adm/lastlog
checking for /dev/ptmx... yes
checking for /dev/ptc... no
checking whether libc defines __progname... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

--host~/open/openssh-1.2.2 -->make
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c atomicio.c -o atomicio.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c authfd.c -o authfd.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c authfile.c -o authfile.o
authfile.c: In function `load_private_key':
authfile.c:238: warning: unsigned int format, long unsigned int arg (arg 2)
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-bindresvport.c -o
bsd-bindresvport.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-daemon.c -o bsd-daemon.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-misc.c -o bsd-misc.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-mktemp.c -o bsd-mktemp.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-rresvport.c -o bsd-rresvport.o
bsd-rresvport.c: In function `rresvport_af':
bsd-rresvport.c:66: warning: implicit declaration of function `bzero'
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-snprintf.c -o bsd-snprintf.o
bsd-snprintf.c: In function `getpagesize':
bsd-snprintf.c:70: `NBPC' undeclared (first use this function)
bsd-snprintf.c:70: (Each undeclared identifier is reported only once
bsd-snprintf.c:70: for each function it appears in.)
bsd-snprintf.c:73: warning: control reaches end of non-void function
bsd-snprintf.c: In function `vsnprintf':
bsd-snprintf.c:133: warning: variable `ret' might be clobbered by `longjmp'
or `vfork'
bsd-snprintf.c: At top level:
bsd-snprintf.c:52: warning: `caught' defined but not used
make: *** [bsd-snprintf.o] Error 1
--host~/open/openssh-1.2.2 -->


I posted the output to make sure there wasn't something else that could be
effecting it.  From what I can tell it looks find tell it hits the
getpagesize.  I also tried it without the --with-tcp-wrappers options and it
did the same thing.

Thanks,
Jack

>
> > --host~/open/openssh-1.2.2 -->make
> > Makefile:38: *** missing separator.  Stop.
> >
> > Even if the only thing I do is open the file in vi or pico, hit enter,
> > backspace then exist and save the file (Basically doing nothing but
changing
> > the modification date) it will trip the above error on me.  I tried
putting
> > it under cflags and ldpath and it gives the same error.  I don't know
how I
> > am supose to edit the file if the slightest thing causes it to barf.
>
> Weird.  I've munged the Makefile before, and only problem I ever had was
> trying to build a Solaris package from the makefile.  I gave up in
> frustration.
>
> Did you try adding "-L/usr/ucblib" to the end of the LDFLAGS in the
> Makefile. That should do it for you since I don't think there's a shared
> library version in the /usr/ucblib directory.
>
> Hope this helps.
>
> Ben
>
> >
> > Any ideas?
> >
> > Thanks,
> > Jack
> >
> > >
> > > Hope this helps.
> > >
> > > Ben
> > >
> > > > ----- Original Message -----
> > > > From: Andre Lucas <andre.lucas at dial.pipex.com>
> > > > To: Jack Barnett <jbarnett at axil.netmate.com>
> > > > Cc: <openssh-unix-dev at mindrot.org>
> > > > Sent: Monday, February 21, 2000 9:22 AM
> > > > Subject: Re: OpenSSH doesn't compile under Solaris 2.3 Sparc
> > > >
> > > >
> > > > > I'm surprised getpagesize(3C) isn't present. I wonder if it is
just
> > > > > being missed by the tests, or if is it genuinely not there. Try
'man
> > > > > getpagesize' for starters. If there's no manpage, it's probably
not
> > > > > there.
> > > >
> > > > --inx-->man getpagesize
> > > > Reformatting page.  Wait... done
> > > >
> > > > getpagesize(SunOS/BSD Compatibility Library Functigetpagesize(3B)
> > > >
> > > > NAME
> > > >      getpagesize - get system page size
> > > > <SNIP>
> > > >
> > > > It should be noted that it is tring to compile it under
> > > >
> > > > gcc version 2.7.2.1
> > > > GNU Make version 3.70
> > > >
> > > > >
> > > > > Can you call 'sysconf(_SC_PAGESIZE)' - try 'man sysconf' and
search
> > for
> > > > > SC_PAGE - to get the system pagesize? I don't have a sol2.3 system
to
> > try
> > > > for myself.
> > > >
> > > > --inx-->man sysconf
> > > > Reformatting page.  Wait... done
> > > >
> > > > sysconf(3C)            C Library Functions            sysconf(3C)
> > > >
> > > > NAME
> > > >      sysconf - get configurable system variables
> > > >
> > > > <SCROLL>
> > > >
> > > > _SC_PAGESIZE       PAGESIZE             System memory page size
> > > >
> > > > <SNIP>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > >
> > > > > Ta,
> > > > > -Andre
> > > > >
> > > > > Jack Barnett wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > We are trying to get OpenSSH-1.2.2 stable release to compile
under
> > > > Solaris
> > > > > > 2.3 Sparc.  It worked perfect for Solaris 2.5, Solaris 2.5.1,
> > Solaris 7
> > > > (All
> > > > > > on Sparc) and Linux 2.2.13 Intel x86
> > > > > >
> > > > > > OpenSSL installs fine without problem, zlib is installed fine
> > without
> > > > > > problems and egd.pl installs fine without problems.  These are
all
> > the
> > > > > > current releases, I can get the version numbers if you need
them.
> > > > > >
> > > > > > egd.pl is started like so (and it is running when configure and
make
> > are
> > > > > > run).
> > > > > >
> > > > > > /usr/local/bin/egd.pl /dev/random
> > > > > >
> > > > > > --hostname~/open/openssh-1.2.2 -->./configure --with-egd-pool
> > > > /dev/random
> > > > > >
> > > > > > This runs and doesn't look like any real problems.
> > > > > >
> > > > > > --hostname~/open/openssh-1.2.2 -->make
> > > > > >
> > > > > > This runs for awhile and looks like it is working till ...
> > > > > >
> > > > > >
> > > >
> >
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
> > > > > > PROG
> > > > > >
> > > >
> >
RAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ss
> > > > > > h-as
> > > > > > kpass\" -DHAVE_CONFIG_H   -c bsd-snprintf.c -o bsd-snprintf.o
> > > > > > bsd-snprintf.c: In function `getpagesize':
> > > > > > bsd-snprintf.c:70: `NBPC' undeclared (first use this function)
> > > > > > bsd-snprintf.c:70: (Each undeclared identifier is reported only
once
> > > > > > bsd-snprintf.c:70: for each function it appears in.)
> > > > > > bsd-snprintf.c:73: warning: control reaches end of non-void
function
> > > > > > bsd-snprintf.c: In function `vsnprintf':
> > > > > > bsd-snprintf.c:133: warning: variable `ret' might be clobbered
by
> > > > `longjmp'
> > > > > > or `
> > > > > > vfork'
> > > > > > bsd-snprintf.c: At top level:
> > > > > > bsd-snprintf.c:52: warning: `caught' defined but not used
> > > > > > make: *** [bsd-snprintf.o] Error 1
> > > > > > --hostname~/open/openssh-1.2.2 -->
> > > > > >
> > > > > > Any ideas?  I think it has something to do with Solaris 2.3
since it
> > > > worked
> > > > > > fine for 2.5 and up.  I am not sure how to get past this (I'm
not a
> > > > > > programmer) but would really like to get this going if
possiable.
> > If
> > > > you
> > > > > > want any output, files or want me to try something just shoot an
> > email
> > > > over
> > > > > > (I am not subscribed to the list).
> > > > > >
> > > > > > Thanks,
> > > > > > Jack
> > > > > > jbarnett at ixc.net
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
>






More information about the openssh-unix-dev mailing list