socklen_t - where?
Tim Rice
tim at multitalents.net
Sun Nov 11 03:42:34 EST 2001
On Sat, 10 Nov 2001, Gert Doering wrote:
> Hi,
>
> On Fri, Nov 09, 2001 at 03:54:43PM -0800, Tim Rice wrote:
> > > openssh_cvs as of today, SCO Open Server 3.0, socklen_t
> > >
> > > this typedef doesn't exist on SCO OSR 3, and "configure" properly detects
> > > this, leading to
> > >
> > > /* #undef HAVE_SOCKLEN_T */
> >
> > Run autoreconf instead of just autoconf to tune up config.h.in
>
> I did "make -f Makefile.in distprep" - which should run autoreconf.
>
> I don't think config.h is the problem here - it *has* HAVE_SOCKLEN_T (that
> is: it properly #undef's it, as SCO 3 doesn't have it). But nobody else
> has an #ifndef HAVE_SOCKLEN_T - which should not be auto(re)conf related,
> or is it?.
>
> [..]
> > You will see
> > /* type to use in place of socklen_t if not defined */
> > #define socklen_t int
> > in config.h after running configure.
>
> OK, retry...
>
> - autoreconf (no messages, no errors)
> - configure (no problems)
> - no socklen_t in config.h
>
> Hmmm, I think it's an autoconf problem - while it doesn't throw any
> warnings or errors, I still use autoconf 2.13 and remember that there have
> been some problems with it.
>
> Shouldn't autoreconf print some warning if the autoconf version is too
> old?
Autoconf 2.13 should have failed. CVS code now requires autoconf 2.5x
Do you have an old configure.in in your tree? If so remove it.
configure.in is now configure.ac
Grab autoconf 2.52 and apply the attached patch to it.
>
> [..]
> > > Which would be the "right" header file to add such things? Then I'll just
> > > do it and send in a patch with all the necessary changes for SCO OSR 3...
> > SCO OSR 3 works fine here on the CVS code.
>
> It works fine, if I add the typdef (or define) manually.
>
> gert
>
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
-------------- next part --------------
--- autoconf-2.52/acgeneral.m4.orig Wed Jul 4 08:05:43 2001
+++ autoconf-2.52/acgeneral.m4 Wed Oct 3 18:59:02 2001
@@ -4145,7 +4145,7 @@
s,[\\$`],\\&,g
t clear
: clear
-s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end]
More information about the openssh-unix-dev
mailing list