Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2000 19:05:23 +1300
From:      Joe Abley <jabley@patho.gen.nz>
To:        freebsd-ports@freebsd.org
Cc:        green@freebsd.org
Subject:   Changed assumptions in 3.4-STABLE for OpenSSH port
Message-ID:  <20000315190519.A30928@patho.gen.nz>

next in thread | raw e-mail | index | archive | help
OpenSSH port:

  $FreeBSD: ports/security/openssh/Makefile,v 1.47 2000/03/03 06:10:02 \
    green Exp $

fails to build on:

  FreeBSD drone5.qsi.net.nz 3.4-STABLE FreeBSD 3.4-STABLE #0: Wed Mar 15 \
    06:51:04 NZDT 2000     jabley@drone5.qsi.net.nz:/usr/src/sys/compile/DRONE \
    i386

which was supped and world made within the past two days. The build
fails with:

===>  Building for OpenSSH-1.2.2
===> lib
Warning: Object directory not changed from original /usr/ports/security/openssh/work/ssh/lib
cc -O -pipe -I/usr/ports/security/openssh/work/ssh/lib/.. -I/usr/local/include  -I/usr/ports/security/openssh/work/ssh/lib/.. -I/usr/local/usr/include -c /usr/ports/security/openssh/work/ssh/lib/../authfd.c -o authfd.o
In file included from /usr/ports/security/openssh/work/ssh/lib/../authfd.c:16:
/usr/ports/security/openssh/work/ssh/lib/../includes.h:72: warning: redefinition of `sa_family_t'
/usr/include/sys/socket.h:47: warning: `sa_family_t' previously declared here
/usr/ports/security/openssh/work/ssh/lib/../includes.h:73: conflicting types for `socklen_t'
/usr/include/sys/socket.h:48: previous declaration of `socklen_t'
*** Error code 1

Stop.

This appears to be a result of logic such as:

  #if defined(__FreeBSD__) && __FreeBSD__ <= 3
  /*
   * Data types.
   */
  typedef u_char          sa_family_t;
  typedef u_int32_t       socklen_t;

This logic does not appear to apply with recent 3.4-STABLE.

Removing those two typedef's allows the build to proceed. I'd supply
a patch, but since I don't know the history of sa_family_t and
socklen_t in /usr/include/sys/socket.h, I don't feel confident that
I could suggest the correct solution.


Joe


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000315190519.A30928>