Installing xinetd on Irix 6.5.18f - SGI

This is a discussion on Installing xinetd on Irix 6.5.18f - SGI ; Hi, Has anyone installed xinetd on an Irix 6.5 system and if so how did you do it? I am trying to install xineted-2.3.13 on a system running Irix 6.5.18f and I am getting the following warning on "./configure": configure: ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Installing xinetd on Irix 6.5.18f

  1. Installing xinetd on Irix 6.5.18f

    Hi,

    Has anyone installed xinetd on an Irix 6.5 system and if so how did
    you do it?

    I am trying to install xineted-2.3.13 on a system running Irix 6.5.18f
    and I am getting the following warning on "./configure":

    configure: WARNING: rpc/pmap_clnt.h: present but cannot be compiled
    configure: WARNING: rpc/pmap_clnt.h: check for missing prerequisite
    headers?
    configure: WARNING: rpc/pmap_clnt.h: proceeding with the
    preprocessor's result
    configure: WARNING: ## ------------------------------------ ##
    configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
    configure: WARNING: ## ------------------------------------ ##

    I am not sure how to check for "missing prerequisite headers". Does
    anyone have a step-by-step on how to check for these? Or has anyone
    seen this warning and know what headers pmap_clnt.h needs?

    Also, if I do find what the missing headers are, how do I fix it? Do
    I add an include statement into "pmap_clnt.h"?

    Any help is appreciated.

    Thank you.

    Trevor

  2. Re: Installing xinetd on Irix 6.5.18f

    trevor@pleasant.net (Trevor Cullingsworth) writes:
    > Has anyone installed xinetd on an Irix 6.5 system and if so how did
    > you do it?


    Sorry, I have no specific experience installing xinetd on Irix 6.5.

    > I am trying to install xineted-2.3.13 on a system running Irix 6.5.18f
    > and I am getting the following warning on "./configure":
    >
    > configure: WARNING: rpc/pmap_clnt.h: present but cannot be compiled
    > configure: WARNING: rpc/pmap_clnt.h: check for missing prerequisite
    > headers?
    > configure: WARNING: rpc/pmap_clnt.h: proceeding with the
    > preprocessor's result
    > configure: WARNING: ## ------------------------------------ ##
    > configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
    > configure: WARNING: ## ------------------------------------ ##
    >
    > I am not sure how to check for "missing prerequisite headers". Does
    > anyone have a step-by-step on how to check for these? Or has anyone
    > seen this warning and know what headers pmap_clnt.h needs?


    As with any problem running configure: check the config.log file
    configure produces and see what went wrong exactly. Obviously
    compiler/preprocessor warnings about missing include files and such
    are most interesting here.

    > Also, if I do find what the missing headers are, how do I fix it? Do
    > I add an include statement into "pmap_clnt.h"?


    Don't ever edit installed system files unless absolutely necessary.

    Please first check config.log for what went wrong exactly and if it
    doesn't make sense to you post the appropriate lines here. Probably
    you will just need to add an option like
    CPPFLAGS="-I/some/place/not/searched/for/includes/by/default"

    Thomas Jahns
    --
    "Computers are good at following instructions,
    but not at reading your mind."
    D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9

  3. Re: Installing xinetd on Irix 6.5.18f

    Thomas Jahns wrote in message news:<87wu6fqgi0.fsf@ID-48333.user.dfncis.de>...
    > trevor@pleasant.net (Trevor Cullingsworth) writes:
    > > Has anyone installed xinetd on an Irix 6.5 system and if so how did
    > > you do it?

    >
    > Sorry, I have no specific experience installing xinetd on Irix 6.5.
    >
    > > I am trying to install xineted-2.3.13 on a system running Irix 6.5.18f
    > > and I am getting the following warning on "./configure":
    > >
    > > configure: WARNING: rpc/pmap_clnt.h: present but cannot be compiled
    > > configure: WARNING: rpc/pmap_clnt.h: check for missing prerequisite
    > > headers?
    > > configure: WARNING: rpc/pmap_clnt.h: proceeding with the
    > > preprocessor's result
    > > configure: WARNING: ## ------------------------------------ ##
    > > configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
    > > configure: WARNING: ## ------------------------------------ ##
    > >
    > > I am not sure how to check for "missing prerequisite headers". Does
    > > anyone have a step-by-step on how to check for these? Or has anyone
    > > seen this warning and know what headers pmap_clnt.h needs?

    >
    > As with any problem running configure: check the config.log file
    > configure produces and see what went wrong exactly. Obviously
    > compiler/preprocessor warnings about missing include files and such
    > are most interesting here.
    >
    > > Also, if I do find what the missing headers are, how do I fix it? Do
    > > I add an include statement into "pmap_clnt.h"?

    >
    > Don't ever edit installed system files unless absolutely necessary.
    >
    > Please first check config.log for what went wrong exactly and if it
    > doesn't make sense to you post the appropriate lines here. Probably
    > you will just need to add an option like
    > CPPFLAGS="-I/some/place/not/searched/for/includes/by/default"
    >
    > Thomas Jahns


    Hi Thomas,

    Thanks for your response. Here is what I think is the pertinent
    information for troubleshooting the compile that was taken from
    config.log:

    configure:5605: checking rpc/pmap_clnt.h usability
    configure:5618: gcc -c -g -O2 conftest.c >&5
    In file included from configure:5682:
    /usr/include/rpc/pmap_clnt.h:66: error: parse error before "pmap_set"
    /usr/include/rpc/pmap_clnt.h:67: error: parse error before
    "pmap_unset"
    /usr/include/rpc/pmap_clnt.h:68: error: parse error before
    "pmap_unset2"
    /usr/include/rpc/pmap_clnt.h:99: error: parse error before "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:102: error: parse error before
    "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:103: error: parse error before ')' token
    /usr/include/rpc/pmap_clnt.h:105: error: parse error before
    "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:106: error: parse error before ')' token
    /usr/include/rpc/pmap_clnt.h:108: error: parse error before
    "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:109: error: `clnt_broadmulti' declared as
    function returning a function
    /usr/include/rpc/pmap_clnt.h:110: error: `u_char' redeclared as
    different kind of symbol
    /usr/include/sys/bsd_types.h:30: error: previous declaration of
    `u_char'
    /usr/include/rpc/pmap_clnt.h:110: error: parse error before ')' token
    /usr/include/rpc/pmap_clnt.h:112: error: parse error before
    "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:113: error: `clnt_broadcast_exp' declared
    as function returning a function
    /usr/include/rpc/pmap_clnt.h:113: error: parse error before "int"
    /usr/include/rpc/pmap_clnt.h:115: error: parse error before
    "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:116: error: `clnt_multicast_exp' declared
    as function returning a function
    /usr/include/rpc/pmap_clnt.h:116: error: parse error before "int"
    /usr/include/rpc/pmap_clnt.h:118: error: parse error before
    "xdrproc_t"
    /usr/include/rpc/pmap_clnt.h:119: error: `clnt_broadmulti_exp'
    declared as function returning a function
    /usr/include/rpc/pmap_clnt.h:119: error: parse error before "int"
    configure:5621: $? = 1
    configure: failed program was:
    | #line 5607 "configure"
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define HAVE_GETNAMEINFO 1
    | #define HAVE_INET_NTOP 1
    | #define HAVE_DIFFTIME 1
    | #define HAVE_FCVT 1
    | #define HAVE_ECVT 1
    | #define HAVE_GCVT 1
    | #define HAVE_STRERROR 1
    | #define HAVE_STRCASECMP 1
    | #define HAVE_SYS_SIGLIST 1
    | #define HAVE_GAI_STRERROR 1
    | #define HAVE_FREEADDRINFO 1
    | #define HAVE_GETADDRINFO 1
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_TERMIOS_H 1
    | #define HAVE_TERMIOS_H 1
    | #define HAVE_SYS_IOCTL_H 1
    | #define HAVE_SYS_SELECT_H 1
    | #define HAVE_RPC_RPC_H 1
    | #define HAVE_SYS_FILE_H 1
    | #define HAVE_FTW_H 1
    | #define HAVE_NETDB_H 1
    | #define HAVE_SYS_RESOURCE_H 1
    | #define HAVE_ARPA_INET_H 1
    | #define HAVE_GRP_H 1
    | /* end confdefs.h. */
    | #include
    | #if HAVE_SYS_TYPES_H
    | # include
    | #endif
    | #if HAVE_SYS_STAT_H
    | # include
    | #endif
    | #if STDC_HEADERS
    | # include
    | # include
    | #else
    | # if HAVE_STDLIB_H
    | # include
    | # endif
    | #endif
    | #if HAVE_STRING_H
    | # if !STDC_HEADERS && HAVE_MEMORY_H
    | # include
    | # endif
    | # include
    | #endif
    | #if HAVE_STRINGS_H
    | # include
    | #endif
    | #if HAVE_INTTYPES_H
    | # include
    | #else
    | # if HAVE_STDINT_H
    | # include
    | # endif
    | #endif
    | #if HAVE_UNISTD_H
    | # include
    | #endif
    | #include
    configure:5637: result: no
    configure:5641: checking rpc/pmap_clnt.h presence
    configure:5652: gcc -E conftest.c
    configure:5658: $? = 0
    configure:5677: result: yes
    configure:5697: WARNING: rpc/pmap_clnt.h: present but cannot be
    compiled
    configure:5699: WARNING: rpc/pmap_clnt.h: check for missing
    prerequisite headers?
    configure:5701: WARNING: rpc/pmap_clnt.h: proceeding with the
    preprocessor's result
    configure:5713: checking for rpc/pmap_clnt.h
    configure:5720: result: yes

    Sorry for the lengthy post. Looking at the errors above I am not sure
    which headers pmap_clnt.h needs.

    Thank you.

    Trevor

  4. Re: Installing xinetd on Irix 6.5.18f

    trevor@pleasant.net (Trevor Cullingsworth) writes:
    > Hi Thomas,
    >
    > Thanks for your response. Here is what I think is the pertinent
    > information for troubleshooting the compile that was taken from
    > config.log:
    >
    > configure:5605: checking rpc/pmap_clnt.h usability
    > configure:5618: gcc -c -g -O2 conftest.c >&5
    > In file included from configure:5682:
    > /usr/include/rpc/pmap_clnt.h:66: error: parse error before "pmap_set"
    > /usr/include/rpc/pmap_clnt.h:67: error: parse error before
    > "pmap_unset"
    > /usr/include/rpc/pmap_clnt.h:68: error: parse error before
    > "pmap_unset2"
    > /usr/include/rpc/pmap_clnt.h:99: error: parse error before "xdrproc_t"
    > /usr/include/rpc/pmap_clnt.h:102: error: parse error before
    > "xdrproc_t"
    > /usr/include/rpc/pmap_clnt.h:103: error: parse error before ')' token
    > /usr/include/rpc/pmap_clnt.h:105: error: parse error before
    > "xdrproc_t"
    > /usr/include/rpc/pmap_clnt.h:106: error: parse error before ')' token
    > /usr/include/rpc/pmap_clnt.h:108: error: parse error before


    [...]

    As far as I can see the compilation of any line containing rpc types
    fails. This is because to include rpc/pmap_clnt.h, rpc/types.h needs to be
    included first. On Linux rpc/pmap_clnt.h itself includes rpc/types.h
    for you so we know where the problem comes from.

    > configure:5621: $? = 1
    > configure: failed program was:


    [...]

    > | /* end confdefs.h. */
    > | #include
    > | #if HAVE_SYS_TYPES_H
    > | # include
    > | #endif
    > | #if HAVE_SYS_STAT_H
    > | # include
    > | #endif
    > | #if STDC_HEADERS
    > | # include
    > | # include
    > | #else
    > | # if HAVE_STDLIB_H
    > | # include
    > | # endif
    > | #endif
    > | #if HAVE_STRING_H
    > | # if !STDC_HEADERS && HAVE_MEMORY_H
    > | # include
    > | # endif
    > | # include
    > | #endif
    > | #if HAVE_STRINGS_H
    > | # include
    > | #endif
    > | #if HAVE_INTTYPES_H
    > | # include
    > | #else
    > | # if HAVE_STDINT_H
    > | # include
    > | # endif
    > | #endif
    > | #if HAVE_UNISTD_H
    > | # include
    > | #endif
    > | #include


    See? No #include .

    > configure:5637: result: no
    > configure:5641: checking rpc/pmap_clnt.h presence
    > configure:5652: gcc -E conftest.c
    > configure:5658: $? = 0
    > configure:5677: result: yes
    > configure:5697: WARNING: rpc/pmap_clnt.h: present but cannot be
    > compiled
    > configure:5699: WARNING: rpc/pmap_clnt.h: check for missing
    > prerequisite headers?
    > configure:5701: WARNING: rpc/pmap_clnt.h: proceeding with the
    > preprocessor's result
    > configure:5713: checking for rpc/pmap_clnt.h
    > configure:5720: result: yes


    You will need to change the configure.in makro that is
    responsible for this check. That can be tough work if you are not
    familiar with autconf, but don't be afraid. Install autoconf from
    freeware.sgi.com.

    After I have now downloaded the xinetd source I see configure.in line 43:

    AC_CHECK_HEADER(rpc/pmap_clnt.h, [AC_DEFINE(HAVE_RPC_PMAP_CLNT_H)])

    you will need to correct this to something like:

    AC_CHECK_HEADER([rpc/pmap_clnt.h],
    [AC_DEFINE([HAVE_RPC_PMAP_CLNT_H])],
    [#include
    ])

    Then run autoconf in the xinetd source directory. In my case (Indy
    R4400, IRIX 6.5.19m) configure then processed fine.

    But running gmake was no instant pleasure: changed xinetd/signals.c
    as follows:

    --- /usr/tmp/signals.c Tue Feb 24 16:09:25 2004
    +++ xinetd/signals.c Tue Feb 24 16:08:11 2004
    @@ -12,7 +12,9 @@
    #endif
    #include
    #include
    +#define _SGIAPI 1
    #include
    +#define sys_siglist _sys_siglist
    #include
    #include
    #include

    Also I needed GNU make to process the Makefile generated by configure.

    > Sorry for the lengthy post. Looking at the errors above I am not sure
    > which headers pmap_clnt.h needs.


    It seems to me everything's fine now. But as I have no intention to
    use xinetd I haven't tried running it.

    Thomas Jahns
    --
    "Computers are good at following instructions,
    but not at reading your mind."
    D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9

+ Reply to Thread