2.0.5a and IRIX 6.5.3f

Don Badrak dbadrak at tco.census.gov
Thu Jul 29 15:18:39 GMT 1999


All,

I ran into an interesting thing while compiling 2.0.5a on an IRIX 6.5.3f
system.

I got this in the config.log:

configure:2151: checking for netinet/ip.h
configure:2161: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/netinet/ip.h:23,
                 from configure:2157:
/usr/include/sys/endian.h:32: #error "<standards.h> must be included
before <sys/endian.h>."
configure: failed program was:
#line 2156 "configure"
#include "confdefs.h"
#include <netinet/ip.h>
configure:2151: checking for netinet/tcp.h
configure:2161: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/netinet/tcp.h:29,
                 from configure:2157:
/usr/include/sys/endian.h:32: #error "<standards.h> must be included
before <sys/endian.h>."
configure: failed program was:
#line 2156 "configure"
#include "confdefs.h"
#include <netinet/tcp.h>

There apparently was some change to the /usr/include/sys/endian.h header
between 6.5.2 and 6.5.3 (6.5.2 has endian.h v1.6, while 6.5.3 has endian.h
v1.7). Here is the part from a 6.5.3 machine:

#ident  "$Revision: 1.7 $"

/*
 * NOTE: Use of this file is deprecated. Though, if this file should be
 *       included in a program, standards.h should be included before
 *       endian.h
 */
#if !defined(_SGIAPI)
#error "<standards.h> must be included before <sys/endian.h>."
#endif

Because of this, HAVE_NETINET_IN_H and HAVE_NETINET_TCP_H did not get
defined in config.h, and my TCP_NODELAY options in the smb.conf file were
not recognized (noted by errors in the /var/adm/samba/log.smb file).

A check should be probably be included in configure for this, or and
include of standards.h in the include/includes.h added.

Don
-- 
Don Badrak <dbadrak at census.gov>              301.457.8263 work
Telecommunications Office                    301.457.4438 fax
U.S. Bureau of the Census
Suitland MD, USA



More information about the samba mailing list