bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Config problems + fix for Ultrix


From: Bert Deknuydt
Subject: Config problems + fix for Ultrix
Date: Thu, 4 Mar 2004 18:37:12 +0100

Hello,

A long time ago (Apr 2003) I mailed some fixes for stat on Ultrix.
With version 5.2.0, troubles are still not over.

It all starts because Ultrix needs the following extra's for stat.c

#  include <netinet/in.h>
#  include <nfs/nfs_clnt.h>
#  include <nfs/vfs.h>

1) Configure checkes for the existence of nfs/nfs_clnt.h but fails, because:
   (from config.log)

   configure:36089: checking for nfs/nfs_clnt.h
   configure:36105: gcc -c -g -O2  conftest.c >&5
   In file included from conftest.c:263:
   /usr/include/nfs/nfs_clnt.h:60: field `mi_addr' has incomplete type
   /usr/include/nfs/nfs_clnt.h:80: confused by earlier errors, bailing out
   configure:36111: $? = 1
   configure: failed program was:
   [deleted some stuff]
   | #include <nfs/nfs_clnt.h>
   
   But that should read
   
   |#include <sys/types.h>
   |#include <netinet/in.h>
   |#include <nfs/nfs_clnt.h>
   
   as you cannot include nfs/nfs_clnt.h without including netint/in.h

2) Same story with nfs/vfs.h (from config.log)

   configure:36105: gcc -c -g -O2  conftest.c >&5
   In file included from conftest.c:263:
   /usr/include/nfs/vfs.h:66: field `fd_req' has incomplete type
   /usr/include/nfs/vfs.h:70: field `mi' has incomplete type
   /usr/include/nfs/vfs.h:72: confused by earlier errors, bailing out
   [deleted some stuff]
   | #include <nfs/vfs.h>
   configure:36135: result: no

   But that should read

   #include <sys/param.h>
   #include <sys/types.h>
   #include <netinet/in.h>
   #include <nfs/nfs_clnt.h>
   #include <sys/mount.h>
   #include <nfs/vfs.h>
   
   Yes ... Ultrix is a mess :)

3) Also checking for mount.h returns errors...

   The configure urges me to mail address@hidden (mount.h present
   but cannot be compiled)

   configure:6489: checking sys/mount.h usability
   configure:6501: gcc -c -g -O2  conftest.c >&5
   In file included from conftest.c:72:
   /usr/include/sys/mount.h:111: `MAXPATHLEN' undeclared here (not in a 
function)
   /usr/include/sys/mount.h:111: size of array `devname' has non-integer type
   /usr/include/sys/mount.h:112: `MAXPATHLEN' undeclared here (not in a 
function)
   /usr/include/sys/mount.h:112: size of array `path' has non-integer type
   configure:6507: $? = 1

   | #include <sys/mount.h>

   Problem here is that mount.h needs sys/param.h

   So 

   #include <sys/param.h>
   #include <sys/mount.h>

After correcting this manually, things seem to compile.

Greetings, Bert.

-- 
-------------- eMail address@hidden ---------------
B.DeKnuydt, PSI-KULeuven                            Tel. +32-16-321880
Kasteelpark Arenberg 10          /|    | ||
B-3001 Leuven-Heverlee        _,_)|  4_|_||
FLANDERS, BELGIUM            / .                    Fax. +32-16-321838
-------------- http://www.esat.kuleuven.ac.be/~deknuydt --------------
        Cursed be man! How ungrateful is he! Qur'An 80, 17




reply via email to

[Prev in Thread] Current Thread [Next in Thread]