Mailing List Archive

Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
Attached is a patch that should make configure look in the bsd compat
library for getpagesize(). [.list note: I'm a little worried that we could
potentially be adding "-lbsd" to LDFLAGS three times now :-) ]

If you need help applying the patch: ungzip the patch file, change to
your openssh source directory and do
patch -p1 < unzipped-patch-filename

Ta,
-Andre

--
Andre Lucas <andre.lucas@dial.pipex.com>
http://dspace.dial.pipex.com/andre.lucas/
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
----- Original Message -----
From: Andre Lucas <lucas@dial.pipex.com>
To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
Cc: Jack Barnett <jbarnett@axil.netmate.com>
Sent: Monday, February 21, 2000 5:47 PM
Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)


> Attached is a patch that should make configure look in the bsd compat
> library for getpagesize(). [.list note: I'm a little worried that we could
> potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
>
> If you need help applying the patch: ungzip the patch file, change to
> your openssh source directory and do
> patch -p1 < unzipped-patch-filename
>
> Ta,
> -Andre
>
> --
> Andre Lucas <andre.lucas@dial.pipex.com>
> http://dspace.dial.pipex.com/andre.lucas/


--hostname~/open/openssh-1.2.2 -->patch -p1 <
openssh-1.2.2-getpagesize.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
|--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
|+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
--------------------------
Patching file acconfig.h using Plan A...
Hunk #1 succeeded at 95.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
|--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
|+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
--------------------------
Patching file config.h.in using Plan A...
Hunk #1 succeeded at 89.
Hunk #2 succeeded at 185.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
|--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
|+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 1655.
Hunk #2 succeeded at 1903.
Hunk #3 succeeded at 2010.
Hunk #4 succeeded at 2021.
Hunk #5 succeeded at 2041.
Hunk #6 succeeded at 2049.
Hunk #7 succeeded at 2060.
Hunk #8 succeeded at 2080.
Hunk #9 succeeded at 2088.
Hunk #10 succeeded at 2099.
Hunk #11 succeeded at 2119.
Hunk #12 succeeded at 2127.
Hunk #13 succeeded at 2138.
Hunk #14 succeeded at 2158.
Hunk #15 succeeded at 2166.
Hunk #16 succeeded at 2177.
Hunk #17 succeeded at 2198.
Hunk #18 succeeded at 2227.
Hunk #19 succeeded at 2259.
Hunk #20 succeeded at 2273.
Hunk #21 succeeded at 2297.
Hunk #22 succeeded at 2325.
Hunk #23 succeeded at 2337.
Hunk #24 succeeded at 2356.
Hunk #25 succeeded at 2384.
Hunk #26 succeeded at 2396.
Hunk #27 succeeded at 2415.
Hunk #28 succeeded at 2443.
Hunk #29 succeeded at 2471.
Hunk #30 succeeded at 2484.
Hunk #31 succeeded at 2520.
Hunk #32 succeeded at 2528.
Hunk #33 succeeded at 2539.
Hunk #34 succeeded at 2568.
Hunk #35 succeeded at 2580.
Hunk #36 succeeded at 2600.
Hunk #37 succeeded at 2636.
Hunk #38 succeeded at 2695.
Hunk #39 succeeded at 2716.
Hunk #40 succeeded at 2737.
Hunk #41 succeeded at 2758.
Hunk #42 succeeded at 2779.
Hunk #43 succeeded at 2800.
Hunk #44 succeeded at 2821.
Hunk #45 succeeded at 2842.
Hunk #46 succeeded at 2863.
Hunk #47 succeeded at 2884.
Hunk #48 succeeded at 2905.
Hunk #49 succeeded at 2927.
Hunk #50 succeeded at 2939.
Hunk #51 succeeded at 2957.
Hunk #52 succeeded at 2969.
Hunk #53 succeeded at 3006.
Hunk #54 succeeded at 3061.
Hunk #55 succeeded at 3069.
Hunk #56 succeeded at 3080.
Hunk #57 succeeded at 3123.
Hunk #58 succeeded at 3131.
Hunk #59 succeeded at 3142.
Hunk #60 succeeded at 3185.
Hunk #61 succeeded at 3193.
Hunk #62 succeeded at 3204.
Hunk #63 succeeded at 3261.
Hunk #64 succeeded at 3290.
Hunk #65 succeeded at 3317.
Hunk #66 succeeded at 3365.
Hunk #67 succeeded at 3402.
Hunk #68 succeeded at 3410.
Hunk #69 succeeded at 3453.
Hunk #70 succeeded at 3461.
Hunk #71 succeeded at 3472.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Purd openssh-1.2.2/configure.in openssh-1.2.2.new/configure.in
|--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
|+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
--------------------------
Patching file configure.in using Plan A...
Hunk #1 succeeded at 157.
Hunk #2 succeeded at 167.
done



--hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-egd
-pool=/dev/random

No obvoius errors or warnings here

--hostname~/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


I won't post the entire output in the furture.

Thanks,
Jack
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
> ----- Original Message -----
> From: Andre Lucas <lucas@dial.pipex.com>
> To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> Cc: Jack Barnett <jbarnett@axil.netmate.com>
> Sent: Monday, February 21, 2000 5:47 PM
> Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
>
> > Attached is a patch that should make configure look in the bsd compat
> > library for getpagesize(). [.list note: I'm a little worried that we could
> > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]

If we are worried about this, the easy answer would be to add a variable
like "USE_LIBBSD" to configure.in, set it to one each positive test (and
leave it alone for negative tests), and then add -lbsd to LDFLAGS iff
USE_LIBBSD is 1.

Of course, this only matters if we really, really care about the library
getting referenced more than once. I doubt that we really care.

David

--
David W. Rankin, Jr. Husband, Father, and UNIX Sysadmin.
Email: drankin@bohemians.lexington.ky.us Address/Phone Number: Ask me.
"It's too bad she won't live! But then again, who does?"
-- Gaff, _Blade Runner_
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
On Tue, 22 Feb 2000, Jack Barnett wrote:


> 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

This is a bit weird. It still looks like HAVE_GETPAGESIZE is still not
getting set, because it's entering the code for the "replacement"
getpagesize.

NBPC is defined in /usr/include/sys/param.h in Solaris 2.5.1, but I have
the suspicion, it's not defined in Solaris 2.3. At least not in
/usr/include/sys/param.h. I'd bet that those defines are probably
somewhere down in /usr/ucbinclude. Given that, we could either use
the getpagesize call from Solaris 2.3, or check for the define NBPC.
Either way, this should get us a working version in Solaris 2.3.

Try a 'find /usr/ucbinclude -exec egrep "NBPC|getpagesize" {} /dev/null \;'
and see what you come up with. The information you return will probably
help us fix the problem.

Ben
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
Before I dig in further with this: You did do 'make distclean' and rerun
configure before retrying the make?

-André

Jack Barnett wrote:
>
> ----- Original Message -----
> From: Andre Lucas <lucas@dial.pipex.com>
> To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> Cc: Jack Barnett <jbarnett@axil.netmate.com>
> Sent: Monday, February 21, 2000 5:47 PM
> Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
>
> > Attached is a patch that should make configure look in the bsd compat
> > library for getpagesize(). [.list note: I'm a little worried that we could
> > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
> >
> > If you need help applying the patch: ungzip the patch file, change to
> > your openssh source directory and do
> > patch -p1 < unzipped-patch-filename
> >
> > Ta,
> > -Andre
> >
> > --
> > Andre Lucas <andre.lucas@dial.pipex.com>
> > http://dspace.dial.pipex.com/andre.lucas/
>
> --hostname~/open/openssh-1.2.2 -->patch -p1 <
> openssh-1.2.2-getpagesize.patch
> Hmm... Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
> |--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
> |+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
> --------------------------
> Patching file acconfig.h using Plan A...
> Hunk #1 succeeded at 95.
> Hmm... The next patch looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
> |--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
> |+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
> --------------------------
> Patching file config.h.in using Plan A...
> Hunk #1 succeeded at 89.
> Hunk #2 succeeded at 185.
> Hmm... The next patch looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
> |--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
> |+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
> --------------------------
> Patching file configure using Plan A...
> Hunk #1 succeeded at 1655.
> Hunk #2 succeeded at 1903.
> Hunk #3 succeeded at 2010.
> Hunk #4 succeeded at 2021.
> Hunk #5 succeeded at 2041.
> Hunk #6 succeeded at 2049.
> Hunk #7 succeeded at 2060.
> Hunk #8 succeeded at 2080.
> Hunk #9 succeeded at 2088.
> Hunk #10 succeeded at 2099.
> Hunk #11 succeeded at 2119.
> Hunk #12 succeeded at 2127.
> Hunk #13 succeeded at 2138.
> Hunk #14 succeeded at 2158.
> Hunk #15 succeeded at 2166.
> Hunk #16 succeeded at 2177.
> Hunk #17 succeeded at 2198.
> Hunk #18 succeeded at 2227.
> Hunk #19 succeeded at 2259.
> Hunk #20 succeeded at 2273.
> Hunk #21 succeeded at 2297.
> Hunk #22 succeeded at 2325.
> Hunk #23 succeeded at 2337.
> Hunk #24 succeeded at 2356.
> Hunk #25 succeeded at 2384.
> Hunk #26 succeeded at 2396.
> Hunk #27 succeeded at 2415.
> Hunk #28 succeeded at 2443.
> Hunk #29 succeeded at 2471.
> Hunk #30 succeeded at 2484.
> Hunk #31 succeeded at 2520.
> Hunk #32 succeeded at 2528.
> Hunk #33 succeeded at 2539.
> Hunk #34 succeeded at 2568.
> Hunk #35 succeeded at 2580.
> Hunk #36 succeeded at 2600.
> Hunk #37 succeeded at 2636.
> Hunk #38 succeeded at 2695.
> Hunk #39 succeeded at 2716.
> Hunk #40 succeeded at 2737.
> Hunk #41 succeeded at 2758.
> Hunk #42 succeeded at 2779.
> Hunk #43 succeeded at 2800.
> Hunk #44 succeeded at 2821.
> Hunk #45 succeeded at 2842.
> Hunk #46 succeeded at 2863.
> Hunk #47 succeeded at 2884.
> Hunk #48 succeeded at 2905.
> Hunk #49 succeeded at 2927.
> Hunk #50 succeeded at 2939.
> Hunk #51 succeeded at 2957.
> Hunk #52 succeeded at 2969.
> Hunk #53 succeeded at 3006.
> Hunk #54 succeeded at 3061.
> Hunk #55 succeeded at 3069.
> Hunk #56 succeeded at 3080.
> Hunk #57 succeeded at 3123.
> Hunk #58 succeeded at 3131.
> Hunk #59 succeeded at 3142.
> Hunk #60 succeeded at 3185.
> Hunk #61 succeeded at 3193.
> Hunk #62 succeeded at 3204.
> Hunk #63 succeeded at 3261.
> Hunk #64 succeeded at 3290.
> Hunk #65 succeeded at 3317.
> Hunk #66 succeeded at 3365.
> Hunk #67 succeeded at 3402.
> Hunk #68 succeeded at 3410.
> Hunk #69 succeeded at 3453.
> Hunk #70 succeeded at 3461.
> Hunk #71 succeeded at 3472.
> Hmm... The next patch looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -Purd openssh-1.2.2/configure.in openssh-1.2.2.new/configure.in
> |--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
> |+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
> --------------------------
> Patching file configure.in using Plan A...
> Hunk #1 succeeded at 157.
> Hunk #2 succeeded at 167.
> done
>
> --hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-egd
> -pool=/dev/random
>
> No obvoius errors or warnings here
>
> --hostname~/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
>
> I won't post the entire output in the furture.
>
> Thanks,
> Jack
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
Do you guys have any other suggestions? I am not on the list so I may be
missing something.

Thanks,
Jack

----- Original Message -----
From: Andre Lucas <andre.lucas@dial.pipex.com>
To: Jack Barnett <jbarnett@axil.netmate.com>
Cc: Andre Lucas <lucas@dial.pipex.com>; OpenSSH Unix Dev list
<openssh-unix-dev@mindrot.org>
Sent: Tuesday, February 22, 2000 10:16 AM
Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)


> Before I dig in further with this: You did do 'make distclean' and rerun
> configure before retrying the make?
>
> -André
>
> Jack Barnett wrote:
> >
> > ----- Original Message -----
> > From: Andre Lucas <lucas@dial.pipex.com>
> > To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> > Cc: Jack Barnett <jbarnett@axil.netmate.com>
> > Sent: Monday, February 21, 2000 5:47 PM
> > Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
> >
> > > Attached is a patch that should make configure look in the bsd compat
> > > library for getpagesize(). [list note: I'm a little worried that we
could
> > > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
> > >
> > > If you need help applying the patch: ungzip the patch file, change to
> > > your openssh source directory and do
> > > patch -p1 < unzipped-patch-filename
> > >
> > > Ta,
> > > -Andre
> > >
> > > --
> > > Andre Lucas <andre.lucas@dial.pipex.com>
> > > http://dspace.dial.pipex.com/andre.lucas/
> >
> > --hostname~/open/openssh-1.2.2 -->patch -p1 <
> > openssh-1.2.2-getpagesize.patch
> > Hmm... Looks like a unified diff to me...
> > The text leading up to this was:
> > --------------------------
> > |diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
> > |--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
> > |+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
> > --------------------------
> > Patching file acconfig.h using Plan A...
> > Hunk #1 succeeded at 95.
> > Hmm... The next patch looks like a unified diff to me...
> > The text leading up to this was:
> > --------------------------
> > |diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
> > |--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
> > |+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
> > --------------------------
> > Patching file config.h.in using Plan A...
> > Hunk #1 succeeded at 89.
> > Hunk #2 succeeded at 185.
> > Hmm... The next patch looks like a unified diff to me...
> > The text leading up to this was:
> > --------------------------
> > |diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
> > |--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
> > |+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
> > --------------------------
> > Patching file configure using Plan A...
> > Hunk #1 succeeded at 1655.
> > Hunk #2 succeeded at 1903.
> > Hunk #3 succeeded at 2010.
> > Hunk #4 succeeded at 2021.
> > Hunk #5 succeeded at 2041.
> > Hunk #6 succeeded at 2049.
> > Hunk #7 succeeded at 2060.
> > Hunk #8 succeeded at 2080.
> > Hunk #9 succeeded at 2088.
> > Hunk #10 succeeded at 2099.
> > Hunk #11 succeeded at 2119.
> > Hunk #12 succeeded at 2127.
> > Hunk #13 succeeded at 2138.
> > Hunk #14 succeeded at 2158.
> > Hunk #15 succeeded at 2166.
> > Hunk #16 succeeded at 2177.
> > Hunk #17 succeeded at 2198.
> > Hunk #18 succeeded at 2227.
> > Hunk #19 succeeded at 2259.
> > Hunk #20 succeeded at 2273.
> > Hunk #21 succeeded at 2297.
> > Hunk #22 succeeded at 2325.
> > Hunk #23 succeeded at 2337.
> > Hunk #24 succeeded at 2356.
> > Hunk #25 succeeded at 2384.
> > Hunk #26 succeeded at 2396.
> > Hunk #27 succeeded at 2415.
> > Hunk #28 succeeded at 2443.
> > Hunk #29 succeeded at 2471.
> > Hunk #30 succeeded at 2484.
> > Hunk #31 succeeded at 2520.
> > Hunk #32 succeeded at 2528.
> > Hunk #33 succeeded at 2539.
> > Hunk #34 succeeded at 2568.
> > Hunk #35 succeeded at 2580.
> > Hunk #36 succeeded at 2600.
> > Hunk #37 succeeded at 2636.
> > Hunk #38 succeeded at 2695.
> > Hunk #39 succeeded at 2716.
> > Hunk #40 succeeded at 2737.
> > Hunk #41 succeeded at 2758.
> > Hunk #42 succeeded at 2779.
> > Hunk #43 succeeded at 2800.
> > Hunk #44 succeeded at 2821.
> > Hunk #45 succeeded at 2842.
> > Hunk #46 succeeded at 2863.
> > Hunk #47 succeeded at 2884.
> > Hunk #48 succeeded at 2905.
> > Hunk #49 succeeded at 2927.
> > Hunk #50 succeeded at 2939.
> > Hunk #51 succeeded at 2957.
> > Hunk #52 succeeded at 2969.
> > Hunk #53 succeeded at 3006.
> > Hunk #54 succeeded at 3061.
> > Hunk #55 succeeded at 3069.
> > Hunk #56 succeeded at 3080.
> > Hunk #57 succeeded at 3123.
> > Hunk #58 succeeded at 3131.
> > Hunk #59 succeeded at 3142.
> > Hunk #60 succeeded at 3185.
> > Hunk #61 succeeded at 3193.
> > Hunk #62 succeeded at 3204.
> > Hunk #63 succeeded at 3261.
> > Hunk #64 succeeded at 3290.
> > Hunk #65 succeeded at 3317.
> > Hunk #66 succeeded at 3365.
> > Hunk #67 succeeded at 3402.
> > Hunk #68 succeeded at 3410.
> > Hunk #69 succeeded at 3453.
> > Hunk #70 succeeded at 3461.
> > Hunk #71 succeeded at 3472.
> > Hmm... The next patch looks like a unified diff to me...
> > The text leading up to this was:
> > --------------------------
> > |diff -Purd openssh-1.2.2/configure.in openssh-1.2.2.new/configure.in
> > |--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
> > |+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
> > --------------------------
> > Patching file configure.in using Plan A...
> > Hunk #1 succeeded at 157.
> > Hunk #2 succeeded at 167.
> > done
> >
>
> --hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-e
gd
> > -pool=/dev/random
> >
> > No obvoius errors or warnings here
> >
> > --hostname~/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
> >
> > I won't post the entire output in the furture.
> >
> > Thanks,
> > Jack
>
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
The patch should have made configure look in the bsd library for
getpagesize(), and when it found it set a macro in config.h. I don't
understand why it hasn't done so.

Would you mind sending a copy of your config.h, after you've run
configure on the patched version? I think you may have sent this already
(I'm at work now, the email I use here is my home address), if so then
please send it just to me rather than to the list. Same for the output
from ./configure after the patch.

Thanks,
-André

Jack Barnett wrote:
>
> Do you guys have any other suggestions? I am not on the list so I may be
> missing something.
>
> Thanks,
> Jack
>
> ----- Original Message -----
> From: Andre Lucas <andre.lucas@dial.pipex.com>
> To: Jack Barnett <jbarnett@axil.netmate.com>
> Cc: Andre Lucas <lucas@dial.pipex.com>; OpenSSH Unix Dev list
> <openssh-unix-dev@mindrot.org>
> Sent: Tuesday, February 22, 2000 10:16 AM
> Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
>
> > Before I dig in further with this: You did do 'make distclean' and rerun
> > configure before retrying the make?
> >
> > -André
> >
> > Jack Barnett wrote:
> > >
> > > ----- Original Message -----
> > > From: Andre Lucas <lucas@dial.pipex.com>
> > > To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> > > Cc: Jack Barnett <jbarnett@axil.netmate.com>
> > > Sent: Monday, February 21, 2000 5:47 PM
> > > Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
> > >
> > > > Attached is a patch that should make configure look in the bsd compat
> > > > library for getpagesize(). [list note: I'm a little worried that we
> could
> > > > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
> > > >
> > > > If you need help applying the patch: ungzip the patch file, change to
> > > > your openssh source directory and do
> > > > patch -p1 < unzipped-patch-filename
> > > >
> > > > Ta,
> > > > -Andre
> > > >
> > > > --
> > > > Andre Lucas <andre.lucas@dial.pipex.com>
> > > > http://dspace.dial.pipex.com/andre.lucas/
> > >
> > > --hostname~/open/openssh-1.2.2 -->patch -p1 <
> > > openssh-1.2.2-getpagesize.patch
> > > Hmm... Looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
> > > |--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
> > > |+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
> > > --------------------------
> > > Patching file acconfig.h using Plan A...
> > > Hunk #1 succeeded at 95.
> > > Hmm... The next patch looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
> > > |--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
> > > |+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
> > > --------------------------
> > > Patching file config.h.in using Plan A...
> > > Hunk #1 succeeded at 89.
> > > Hunk #2 succeeded at 185.
> > > Hmm... The next patch looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
> > > |--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
> > > |+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
> > > --------------------------
> > > Patching file configure using Plan A...
> > > Hunk #1 succeeded at 1655.
> > > Hunk #2 succeeded at 1903.
> > > Hunk #3 succeeded at 2010.
> > > Hunk #4 succeeded at 2021.
> > > Hunk #5 succeeded at 2041.
> > > Hunk #6 succeeded at 2049.
> > > Hunk #7 succeeded at 2060.
> > > Hunk #8 succeeded at 2080.
> > > Hunk #9 succeeded at 2088.
> > > Hunk #10 succeeded at 2099.
> > > Hunk #11 succeeded at 2119.
> > > Hunk #12 succeeded at 2127.
> > > Hunk #13 succeeded at 2138.
> > > Hunk #14 succeeded at 2158.
> > > Hunk #15 succeeded at 2166.
> > > Hunk #16 succeeded at 2177.
> > > Hunk #17 succeeded at 2198.
> > > Hunk #18 succeeded at 2227.
> > > Hunk #19 succeeded at 2259.
> > > Hunk #20 succeeded at 2273.
> > > Hunk #21 succeeded at 2297.
> > > Hunk #22 succeeded at 2325.
> > > Hunk #23 succeeded at 2337.
> > > Hunk #24 succeeded at 2356.
> > > Hunk #25 succeeded at 2384.
> > > Hunk #26 succeeded at 2396.
> > > Hunk #27 succeeded at 2415.
> > > Hunk #28 succeeded at 2443.
> > > Hunk #29 succeeded at 2471.
> > > Hunk #30 succeeded at 2484.
> > > Hunk #31 succeeded at 2520.
> > > Hunk #32 succeeded at 2528.
> > > Hunk #33 succeeded at 2539.
> > > Hunk #34 succeeded at 2568.
> > > Hunk #35 succeeded at 2580.
> > > Hunk #36 succeeded at 2600.
> > > Hunk #37 succeeded at 2636.
> > > Hunk #38 succeeded at 2695.
> > > Hunk #39 succeeded at 2716.
> > > Hunk #40 succeeded at 2737.
> > > Hunk #41 succeeded at 2758.
> > > Hunk #42 succeeded at 2779.
> > > Hunk #43 succeeded at 2800.
> > > Hunk #44 succeeded at 2821.
> > > Hunk #45 succeeded at 2842.
> > > Hunk #46 succeeded at 2863.
> > > Hunk #47 succeeded at 2884.
> > > Hunk #48 succeeded at 2905.
> > > Hunk #49 succeeded at 2927.
> > > Hunk #50 succeeded at 2939.
> > > Hunk #51 succeeded at 2957.
> > > Hunk #52 succeeded at 2969.
> > > Hunk #53 succeeded at 3006.
> > > Hunk #54 succeeded at 3061.
> > > Hunk #55 succeeded at 3069.
> > > Hunk #56 succeeded at 3080.
> > > Hunk #57 succeeded at 3123.
> > > Hunk #58 succeeded at 3131.
> > > Hunk #59 succeeded at 3142.
> > > Hunk #60 succeeded at 3185.
> > > Hunk #61 succeeded at 3193.
> > > Hunk #62 succeeded at 3204.
> > > Hunk #63 succeeded at 3261.
> > > Hunk #64 succeeded at 3290.
> > > Hunk #65 succeeded at 3317.
> > > Hunk #66 succeeded at 3365.
> > > Hunk #67 succeeded at 3402.
> > > Hunk #68 succeeded at 3410.
> > > Hunk #69 succeeded at 3453.
> > > Hunk #70 succeeded at 3461.
> > > Hunk #71 succeeded at 3472.
> > > Hmm... The next patch looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/configure.in openssh-1.2.2.new/configure.in
> > > |--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
> > > |+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
> > > --------------------------
> > > Patching file configure.in using Plan A...
> > > Hunk #1 succeeded at 157.
> > > Hunk #2 succeeded at 167.
> > > done
> > >
> >
> > --hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-e
> gd
> > > -pool=/dev/random
> > >
> > > No obvoius errors or warnings here
> > >
> > > --hostname~/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
> > >
> > > I won't post the entire output in the furture.
> > >
> > > Thanks,
> > > Jack
> >
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
Thanks for the files. The mistake is mine, I was looking in -lbsd when
the function is in /usr/ucblib/libucb.a . Had I referred back to the nm
output you provided before, I'd have seen that. Doh.

All: It appears /usr/ucblib isn't in the library search path on Sol2.3,
so we want to be linking against /usr/ucblib/libucb.a instead of .so .
The only way I know to specify that I want specifically a static link is
to name the file on the command line, i.e. LIBS="$LIBS
/usr/ucblib/libucb.a". Does anyone know a better way?

In any case, I'll put up a new patch later when I get home. I hope that
will sort this out. In the meantime, you may have some luck hacking it
with this:

make distclean
LIBS="/usr/ucblib/libucb.a" ./configure <your configure options>

which should sub in the required library for you.

Ta,
-André

Jack Barnett wrote:
>
> Do you guys have any other suggestions? I am not on the list so I may be
> missing something.
>
> Thanks,
> Jack
>
> ----- Original Message -----
> From: Andre Lucas <andre.lucas@dial.pipex.com>
> To: Jack Barnett <jbarnett@axil.netmate.com>
> Cc: Andre Lucas <lucas@dial.pipex.com>; OpenSSH Unix Dev list
> <openssh-unix-dev@mindrot.org>
> Sent: Tuesday, February 22, 2000 10:16 AM
> Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
>
> > Before I dig in further with this: You did do 'make distclean' and rerun
> > configure before retrying the make?
> >
> > -André
> >
> > Jack Barnett wrote:
> > >
> > > ----- Original Message -----
> > > From: Andre Lucas <lucas@dial.pipex.com>
> > > To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> > > Cc: Jack Barnett <jbarnett@axil.netmate.com>
> > > Sent: Monday, February 21, 2000 5:47 PM
> > > Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)
> > >
> > > > Attached is a patch that should make configure look in the bsd compat
> > > > library for getpagesize(). [list note: I'm a little worried that we
> could
> > > > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
> > > >
> > > > If you need help applying the patch: ungzip the patch file, change to
> > > > your openssh source directory and do
> > > > patch -p1 < unzipped-patch-filename
> > > >
> > > > Ta,
> > > > -Andre
> > > >
> > > > --
> > > > Andre Lucas <andre.lucas@dial.pipex.com>
> > > > http://dspace.dial.pipex.com/andre.lucas/
> > >
> > > --hostname~/open/openssh-1.2.2 -->patch -p1 <
> > > openssh-1.2.2-getpagesize.patch
> > > Hmm... Looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
> > > |--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
> > > |+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
> > > --------------------------
> > > Patching file acconfig.h using Plan A...
> > > Hunk #1 succeeded at 95.
> > > Hmm... The next patch looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
> > > |--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
> > > |+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
> > > --------------------------
> > > Patching file config.h.in using Plan A...
> > > Hunk #1 succeeded at 89.
> > > Hunk #2 succeeded at 185.
> > > Hmm... The next patch looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
> > > |--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
> > > |+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
> > > --------------------------
> > > Patching file configure using Plan A...
> > > Hunk #1 succeeded at 1655.
> > > Hunk #2 succeeded at 1903.
> > > Hunk #3 succeeded at 2010.
> > > Hunk #4 succeeded at 2021.
> > > Hunk #5 succeeded at 2041.
> > > Hunk #6 succeeded at 2049.
> > > Hunk #7 succeeded at 2060.
> > > Hunk #8 succeeded at 2080.
> > > Hunk #9 succeeded at 2088.
> > > Hunk #10 succeeded at 2099.
> > > Hunk #11 succeeded at 2119.
> > > Hunk #12 succeeded at 2127.
> > > Hunk #13 succeeded at 2138.
> > > Hunk #14 succeeded at 2158.
> > > Hunk #15 succeeded at 2166.
> > > Hunk #16 succeeded at 2177.
> > > Hunk #17 succeeded at 2198.
> > > Hunk #18 succeeded at 2227.
> > > Hunk #19 succeeded at 2259.
> > > Hunk #20 succeeded at 2273.
> > > Hunk #21 succeeded at 2297.
> > > Hunk #22 succeeded at 2325.
> > > Hunk #23 succeeded at 2337.
> > > Hunk #24 succeeded at 2356.
> > > Hunk #25 succeeded at 2384.
> > > Hunk #26 succeeded at 2396.
> > > Hunk #27 succeeded at 2415.
> > > Hunk #28 succeeded at 2443.
> > > Hunk #29 succeeded at 2471.
> > > Hunk #30 succeeded at 2484.
> > > Hunk #31 succeeded at 2520.
> > > Hunk #32 succeeded at 2528.
> > > Hunk #33 succeeded at 2539.
> > > Hunk #34 succeeded at 2568.
> > > Hunk #35 succeeded at 2580.
> > > Hunk #36 succeeded at 2600.
> > > Hunk #37 succeeded at 2636.
> > > Hunk #38 succeeded at 2695.
> > > Hunk #39 succeeded at 2716.
> > > Hunk #40 succeeded at 2737.
> > > Hunk #41 succeeded at 2758.
> > > Hunk #42 succeeded at 2779.
> > > Hunk #43 succeeded at 2800.
> > > Hunk #44 succeeded at 2821.
> > > Hunk #45 succeeded at 2842.
> > > Hunk #46 succeeded at 2863.
> > > Hunk #47 succeeded at 2884.
> > > Hunk #48 succeeded at 2905.
> > > Hunk #49 succeeded at 2927.
> > > Hunk #50 succeeded at 2939.
> > > Hunk #51 succeeded at 2957.
> > > Hunk #52 succeeded at 2969.
> > > Hunk #53 succeeded at 3006.
> > > Hunk #54 succeeded at 3061.
> > > Hunk #55 succeeded at 3069.
> > > Hunk #56 succeeded at 3080.
> > > Hunk #57 succeeded at 3123.
> > > Hunk #58 succeeded at 3131.
> > > Hunk #59 succeeded at 3142.
> > > Hunk #60 succeeded at 3185.
> > > Hunk #61 succeeded at 3193.
> > > Hunk #62 succeeded at 3204.
> > > Hunk #63 succeeded at 3261.
> > > Hunk #64 succeeded at 3290.
> > > Hunk #65 succeeded at 3317.
> > > Hunk #66 succeeded at 3365.
> > > Hunk #67 succeeded at 3402.
> > > Hunk #68 succeeded at 3410.
> > > Hunk #69 succeeded at 3453.
> > > Hunk #70 succeeded at 3461.
> > > Hunk #71 succeeded at 3472.
> > > Hmm... The next patch looks like a unified diff to me...
> > > The text leading up to this was:
> > > --------------------------
> > > |diff -Purd openssh-1.2.2/configure.in openssh-1.2.2.new/configure.in
> > > |--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
> > > |+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
> > > --------------------------
> > > Patching file configure.in using Plan A...
> > > Hunk #1 succeeded at 157.
> > > Hunk #2 succeeded at 167.
> > > done
> > >
> >
> > --hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-e
> gd
> > > -pool=/dev/random
> > >
> > > No obvoius errors or warnings here
> > >
> > > --hostname~/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
> > >
> > > I won't post the entire output in the furture.
> > >
> > > Thanks,
> > > Jack
> >
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
På 2000-Feb-23 klokka 15:38:09 +0000 skrivet Andre Lucas:

: All: It appears /usr/ucblib isn't in the library search path on Sol2.3,
: so we want to be linking against /usr/ucblib/libucb.a instead of .so .
: The only way I know to specify that I want specifically a static link is
: to name the file on the command line, i.e. LIBS="$LIBS
: /usr/ucblib/libucb.a". Does anyone know a better way?

That's the best way i'm aware of to link with a combination of static
and shared libraries.

--
jim knoble
jmknoble@pobox.com
Re: Quick Fix worked!!! Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
Hi,

I tried what you said in the last email and it worked great, compiled and
install cleanly without problems. It will compiles fine if the
LIBS="/usr/ucblib/libucb.a" is inserted before the ./configure.

I still got the output (of the working ./configure/compile/install) if you
guys want it.

If you guys keep a list of "'know to work on XX Platform" I can verify that
it cleanly and prefectly builds on

Solaris 2.5 - Sparc
Solaris 2.5.1 - Sparc
Solaris 7 - Sparc
Solaris 2.3 - Sparc (with LIBS="/usr/ucblib/libucb.a" inserted before
./configure [options])

Thanks allot to everyone that helped with this, OpenSSH is great and the
developers know their stuff. I am very surpised and gratefully for the
amount of support you guys have given on this. Thanks again for walking me
though each little step. I owe you guys big time.

Thanks again,
Jack


----- Original Message -----
From: Andre Lucas <andre.lucas@dial.pipex.com>
To: Jack Barnett <jbarnett@axil.netmate.com>
Cc: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
Sent: Wednesday, February 23, 2000 9:38 AM
Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)


> Thanks for the files. The mistake is mine, I was looking in -lbsd when
> the function is in /usr/ucblib/libucb.a . Had I referred back to the nm
> output you provided before, I'd have seen that. Doh.
>
> All: It appears /usr/ucblib isn't in the library search path on Sol2.3,
> so we want to be linking against /usr/ucblib/libucb.a instead of .so .
> The only way I know to specify that I want specifically a static link is
> to name the file on the command line, i.e. LIBS="$LIBS
> /usr/ucblib/libucb.a". Does anyone know a better way?
>
> In any case, I'll put up a new patch later when I get home. I hope that
> will sort this out. In the meantime, you may have some luck hacking it
> with this:
>
> make distclean
> LIBS="/usr/ucblib/libucb.a" ./configure <your configure options>
>
> which should sub in the required library for you.
>
> Ta,
> -André
>
> Jack Barnett wrote:
> >
> > Do you guys have any other suggestions? I am not on the list so I may
be
> > missing something.
> >
> > Thanks,
> > Jack
> >
> > ----- Original Message -----
> > From: Andre Lucas <andre.lucas@dial.pipex.com>
> > To: Jack Barnett <jbarnett@axil.netmate.com>
> > Cc: Andre Lucas <lucas@dial.pipex.com>; OpenSSH Unix Dev list
> > <openssh-unix-dev@mindrot.org>
> > Sent: Tuesday, February 22, 2000 10:16 AM
> > Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3
Sparc)
> >
> > > Before I dig in further with this: You did do 'make distclean' and
rerun
> > > configure before retrying the make?
> > >
> > > -André
> > >
> > > Jack Barnett wrote:
> > > >
> > > > ----- Original Message -----
> > > > From: Andre Lucas <lucas@dial.pipex.com>
> > > > To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> > > > Cc: Jack Barnett <jbarnett@axil.netmate.com>
> > > > Sent: Monday, February 21, 2000 5:47 PM
> > > > Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3
Sparc)
> > > >
> > > > > Attached is a patch that should make configure look in the bsd
compat
> > > > > library for getpagesize(). [list note: I'm a little worried that
we
> > could
> > > > > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
> > > > >
> > > > > If you need help applying the patch: ungzip the patch file, change
to
> > > > > your openssh source directory and do
> > > > > patch -p1 < unzipped-patch-filename
> > > > >
> > > > > Ta,
> > > > > -Andre
> > > > >
> > > > > --
> > > > > Andre Lucas <andre.lucas@dial.pipex.com>
> > > > > http://dspace.dial.pipex.com/andre.lucas/
> > > >
> > > > --hostname~/open/openssh-1.2.2 -->patch -p1 <
> > > > openssh-1.2.2-getpagesize.patch
> > > > Hmm... Looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
> > > > |--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
> > > > |+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
> > > > --------------------------
> > > > Patching file acconfig.h using Plan A...
> > > > Hunk #1 succeeded at 95.
> > > > Hmm... The next patch looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
> > > > |--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
> > > > |+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
> > > > --------------------------
> > > > Patching file config.h.in using Plan A...
> > > > Hunk #1 succeeded at 89.
> > > > Hunk #2 succeeded at 185.
> > > > Hmm... The next patch looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
> > > > |--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
> > > > |+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
> > > > --------------------------
> > > > Patching file configure using Plan A...
> > > > Hunk #1 succeeded at 1655.
> > > > Hunk #2 succeeded at 1903.
> > > > Hunk #3 succeeded at 2010.
> > > > Hunk #4 succeeded at 2021.
> > > > Hunk #5 succeeded at 2041.
> > > > Hunk #6 succeeded at 2049.
> > > > Hunk #7 succeeded at 2060.
> > > > Hunk #8 succeeded at 2080.
> > > > Hunk #9 succeeded at 2088.
> > > > Hunk #10 succeeded at 2099.
> > > > Hunk #11 succeeded at 2119.
> > > > Hunk #12 succeeded at 2127.
> > > > Hunk #13 succeeded at 2138.
> > > > Hunk #14 succeeded at 2158.
> > > > Hunk #15 succeeded at 2166.
> > > > Hunk #16 succeeded at 2177.
> > > > Hunk #17 succeeded at 2198.
> > > > Hunk #18 succeeded at 2227.
> > > > Hunk #19 succeeded at 2259.
> > > > Hunk #20 succeeded at 2273.
> > > > Hunk #21 succeeded at 2297.
> > > > Hunk #22 succeeded at 2325.
> > > > Hunk #23 succeeded at 2337.
> > > > Hunk #24 succeeded at 2356.
> > > > Hunk #25 succeeded at 2384.
> > > > Hunk #26 succeeded at 2396.
> > > > Hunk #27 succeeded at 2415.
> > > > Hunk #28 succeeded at 2443.
> > > > Hunk #29 succeeded at 2471.
> > > > Hunk #30 succeeded at 2484.
> > > > Hunk #31 succeeded at 2520.
> > > > Hunk #32 succeeded at 2528.
> > > > Hunk #33 succeeded at 2539.
> > > > Hunk #34 succeeded at 2568.
> > > > Hunk #35 succeeded at 2580.
> > > > Hunk #36 succeeded at 2600.
> > > > Hunk #37 succeeded at 2636.
> > > > Hunk #38 succeeded at 2695.
> > > > Hunk #39 succeeded at 2716.
> > > > Hunk #40 succeeded at 2737.
> > > > Hunk #41 succeeded at 2758.
> > > > Hunk #42 succeeded at 2779.
> > > > Hunk #43 succeeded at 2800.
> > > > Hunk #44 succeeded at 2821.
> > > > Hunk #45 succeeded at 2842.
> > > > Hunk #46 succeeded at 2863.
> > > > Hunk #47 succeeded at 2884.
> > > > Hunk #48 succeeded at 2905.
> > > > Hunk #49 succeeded at 2927.
> > > > Hunk #50 succeeded at 2939.
> > > > Hunk #51 succeeded at 2957.
> > > > Hunk #52 succeeded at 2969.
> > > > Hunk #53 succeeded at 3006.
> > > > Hunk #54 succeeded at 3061.
> > > > Hunk #55 succeeded at 3069.
> > > > Hunk #56 succeeded at 3080.
> > > > Hunk #57 succeeded at 3123.
> > > > Hunk #58 succeeded at 3131.
> > > > Hunk #59 succeeded at 3142.
> > > > Hunk #60 succeeded at 3185.
> > > > Hunk #61 succeeded at 3193.
> > > > Hunk #62 succeeded at 3204.
> > > > Hunk #63 succeeded at 3261.
> > > > Hunk #64 succeeded at 3290.
> > > > Hunk #65 succeeded at 3317.
> > > > Hunk #66 succeeded at 3365.
> > > > Hunk #67 succeeded at 3402.
> > > > Hunk #68 succeeded at 3410.
> > > > Hunk #69 succeeded at 3453.
> > > > Hunk #70 succeeded at 3461.
> > > > Hunk #71 succeeded at 3472.
> > > > Hmm... The next patch looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/configure.in
openssh-1.2.2.new/configure.in
> > > > |--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
> > > > |+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
> > > > --------------------------
> > > > Patching file configure.in using Plan A...
> > > > Hunk #1 succeeded at 157.
> > > > Hunk #2 succeeded at 167.
> > > > done
> > > >
> > >
> >
> --hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-e
> > gd
> > > > -pool=/dev/random
> > > >
> > > > No obvoius errors or warnings here
> > > >
> > > > --hostname~/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
> > > >
> > > > I won't post the entire output in the furture.
> > > >
> > > > Thanks,
> > > > Jack
> > >
>
Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc) [ In reply to ]
I am going to have to bug this list again, it compiled fine, it starts up
fine, but when someone connections it crashes out. If I am annonying this
list to much just drop me an email and I will stop posting.

# ./sshd -d
debug: sshd version OpenSSH-1.2.2
debug: Bind to port 22 on 192.168.17.2.
Server listening on 192.168.17.2 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug: Server will not fork when running in debugging mode.
Connection from 192.168.20.7 port 623
debug: Client protocol version 1.5; client software version OpenSSH-1.2.2
Segmentation Fault - core dumped

I tried untaring the source from orignal tar ball, running the
LIBS="/usr/ucblib/libucb.a"
./configure --with-tcp-wrappers --with-egd-pool=/dev/random
make
make test
su
make install
/usr/local/sbin/sshd

and also tried
patch -p1 < openssh-1.2.2-getpagesize.patch
LIBS="/usr/ucblib/libucb.a"
./configure --with-tcp-wrappers --with-egd-pool=/dev/random
make
make test
su
make install
/usr/local/sbin/sshd

Everytime I (re) build it on this machine, I delete the old directory and
restore staight from the 1.2.2 tarball downloaded at openssh.org

Jack



----- Original Message -----
From: Andre Lucas <andre.lucas@dial.pipex.com>
To: Jack Barnett <jbarnett@axil.netmate.com>
Cc: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
Sent: Wednesday, February 23, 2000 9:38 AM
Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)


> Thanks for the files. The mistake is mine, I was looking in -lbsd when
> the function is in /usr/ucblib/libucb.a . Had I referred back to the nm
> output you provided before, I'd have seen that. Doh.
>
> All: It appears /usr/ucblib isn't in the library search path on Sol2.3,
> so we want to be linking against /usr/ucblib/libucb.a instead of .so .
> The only way I know to specify that I want specifically a static link is
> to name the file on the command line, i.e. LIBS="$LIBS
> /usr/ucblib/libucb.a". Does anyone know a better way?
>
> In any case, I'll put up a new patch later when I get home. I hope that
> will sort this out. In the meantime, you may have some luck hacking it
> with this:
>
> make distclean
> LIBS="/usr/ucblib/libucb.a" ./configure <your configure options>
>
> which should sub in the required library for you.
>
> Ta,
> -André
>
> Jack Barnett wrote:
> >
> > Do you guys have any other suggestions? I am not on the list so I may
be
> > missing something.
> >
> > Thanks,
> > Jack
> >
> > ----- Original Message -----
> > From: Andre Lucas <andre.lucas@dial.pipex.com>
> > To: Jack Barnett <jbarnett@axil.netmate.com>
> > Cc: Andre Lucas <lucas@dial.pipex.com>; OpenSSH Unix Dev list
> > <openssh-unix-dev@mindrot.org>
> > Sent: Tuesday, February 22, 2000 10:16 AM
> > Subject: Re: Patch (was: OpenSSH doesn't compile under Solaris 2.3
Sparc)
> >
> > > Before I dig in further with this: You did do 'make distclean' and
rerun
> > > configure before retrying the make?
> > >
> > > -André
> > >
> > > Jack Barnett wrote:
> > > >
> > > > ----- Original Message -----
> > > > From: Andre Lucas <lucas@dial.pipex.com>
> > > > To: OpenSSH Unix Dev list <openssh-unix-dev@mindrot.org>
> > > > Cc: Jack Barnett <jbarnett@axil.netmate.com>
> > > > Sent: Monday, February 21, 2000 5:47 PM
> > > > Subject: Patch (was: OpenSSH doesn't compile under Solaris 2.3
Sparc)
> > > >
> > > > > Attached is a patch that should make configure look in the bsd
compat
> > > > > library for getpagesize(). [list note: I'm a little worried that
we
> > could
> > > > > potentially be adding "-lbsd" to LDFLAGS three times now :-) ]
> > > > >
> > > > > If you need help applying the patch: ungzip the patch file, change
to
> > > > > your openssh source directory and do
> > > > > patch -p1 < unzipped-patch-filename
> > > > >
> > > > > Ta,
> > > > > -Andre
> > > > >
> > > > > --
> > > > > Andre Lucas <andre.lucas@dial.pipex.com>
> > > > > http://dspace.dial.pipex.com/andre.lucas/
> > > >
> > > > --hostname~/open/openssh-1.2.2 -->patch -p1 <
> > > > openssh-1.2.2-getpagesize.patch
> > > > Hmm... Looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/acconfig.h openssh-1.2.2.new/acconfig.h
> > > > |--- openssh-1.2.2/acconfig.h Sat Jan 22 23:32:03 2000
> > > > |+++ openssh-1.2.2.new/acconfig.h Mon Feb 21 23:39:08 2000
> > > > --------------------------
> > > > Patching file acconfig.h using Plan A...
> > > > Hunk #1 succeeded at 95.
> > > > Hmm... The next patch looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/config.h.in openssh-1.2.2.new/config.h.in
> > > > |--- openssh-1.2.2/config.h.in Thu Jan 27 03:17:05 2000
> > > > |+++ openssh-1.2.2.new/config.h.in Mon Feb 21 23:39:13 2000
> > > > --------------------------
> > > > Patching file config.h.in using Plan A...
> > > > Hunk #1 succeeded at 89.
> > > > Hunk #2 succeeded at 185.
> > > > Hmm... The next patch looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/configure openssh-1.2.2.new/configure
> > > > |--- openssh-1.2.2/configure Thu Jan 27 03:17:06 2000
> > > > |+++ openssh-1.2.2.new/configure Mon Feb 21 23:39:17 2000
> > > > --------------------------
> > > > Patching file configure using Plan A...
> > > > Hunk #1 succeeded at 1655.
> > > > Hunk #2 succeeded at 1903.
> > > > Hunk #3 succeeded at 2010.
> > > > Hunk #4 succeeded at 2021.
> > > > Hunk #5 succeeded at 2041.
> > > > Hunk #6 succeeded at 2049.
> > > > Hunk #7 succeeded at 2060.
> > > > Hunk #8 succeeded at 2080.
> > > > Hunk #9 succeeded at 2088.
> > > > Hunk #10 succeeded at 2099.
> > > > Hunk #11 succeeded at 2119.
> > > > Hunk #12 succeeded at 2127.
> > > > Hunk #13 succeeded at 2138.
> > > > Hunk #14 succeeded at 2158.
> > > > Hunk #15 succeeded at 2166.
> > > > Hunk #16 succeeded at 2177.
> > > > Hunk #17 succeeded at 2198.
> > > > Hunk #18 succeeded at 2227.
> > > > Hunk #19 succeeded at 2259.
> > > > Hunk #20 succeeded at 2273.
> > > > Hunk #21 succeeded at 2297.
> > > > Hunk #22 succeeded at 2325.
> > > > Hunk #23 succeeded at 2337.
> > > > Hunk #24 succeeded at 2356.
> > > > Hunk #25 succeeded at 2384.
> > > > Hunk #26 succeeded at 2396.
> > > > Hunk #27 succeeded at 2415.
> > > > Hunk #28 succeeded at 2443.
> > > > Hunk #29 succeeded at 2471.
> > > > Hunk #30 succeeded at 2484.
> > > > Hunk #31 succeeded at 2520.
> > > > Hunk #32 succeeded at 2528.
> > > > Hunk #33 succeeded at 2539.
> > > > Hunk #34 succeeded at 2568.
> > > > Hunk #35 succeeded at 2580.
> > > > Hunk #36 succeeded at 2600.
> > > > Hunk #37 succeeded at 2636.
> > > > Hunk #38 succeeded at 2695.
> > > > Hunk #39 succeeded at 2716.
> > > > Hunk #40 succeeded at 2737.
> > > > Hunk #41 succeeded at 2758.
> > > > Hunk #42 succeeded at 2779.
> > > > Hunk #43 succeeded at 2800.
> > > > Hunk #44 succeeded at 2821.
> > > > Hunk #45 succeeded at 2842.
> > > > Hunk #46 succeeded at 2863.
> > > > Hunk #47 succeeded at 2884.
> > > > Hunk #48 succeeded at 2905.
> > > > Hunk #49 succeeded at 2927.
> > > > Hunk #50 succeeded at 2939.
> > > > Hunk #51 succeeded at 2957.
> > > > Hunk #52 succeeded at 2969.
> > > > Hunk #53 succeeded at 3006.
> > > > Hunk #54 succeeded at 3061.
> > > > Hunk #55 succeeded at 3069.
> > > > Hunk #56 succeeded at 3080.
> > > > Hunk #57 succeeded at 3123.
> > > > Hunk #58 succeeded at 3131.
> > > > Hunk #59 succeeded at 3142.
> > > > Hunk #60 succeeded at 3185.
> > > > Hunk #61 succeeded at 3193.
> > > > Hunk #62 succeeded at 3204.
> > > > Hunk #63 succeeded at 3261.
> > > > Hunk #64 succeeded at 3290.
> > > > Hunk #65 succeeded at 3317.
> > > > Hunk #66 succeeded at 3365.
> > > > Hunk #67 succeeded at 3402.
> > > > Hunk #68 succeeded at 3410.
> > > > Hunk #69 succeeded at 3453.
> > > > Hunk #70 succeeded at 3461.
> > > > Hunk #71 succeeded at 3472.
> > > > Hmm... The next patch looks like a unified diff to me...
> > > > The text leading up to this was:
> > > > --------------------------
> > > > |diff -Purd openssh-1.2.2/configure.in
openssh-1.2.2.new/configure.in
> > > > |--- openssh-1.2.2/configure.in Wed Jan 26 01:15:31 2000
> > > > |+++ openssh-1.2.2.new/configure.in Mon Feb 21 23:38:09 2000
> > > > --------------------------
> > > > Patching file configure.in using Plan A...
> > > > Hunk #1 succeeded at 157.
> > > > Hunk #2 succeeded at 167.
> > > > done
> > > >
> > >
> >
> --hostname~/open/openssh-1.2.2 -->./configure --with-tcp-wrappers --with-e
> > gd
> > > > -pool=/dev/random
> > > >
> > > > No obvoius errors or warnings here
> > > >
> > > > --hostname~/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
> > > >
> > > > I won't post the entire output in the furture.
> > > >
> > > > Thanks,
> > > > Jack
> > >
>