Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 Configure & Compile HPUX 10.20

closed
None
5
2000-05-22
2000-05-18
Michael Brown
No

Discussion

  • Logged In: YES
    user_id=33778
    Browser: Mozilla/4.7 [en] (X11; I; HP-UX B.10.20 9000/785)

    Hi.

    I am trying to get gnu queue running for HPUX 10.20.
    When I run ./configure
    --prefix=/usr/local/lib/queue1.12.9, the script hangs
    when checking for identd. This can be worked around by
    sending the escape character for telnet on line 3856.

    instead of:
    if eval "echo | telnet localhost 113 2>/dev/null |
    grep -i Connected >/dev/null 2>&1" ; then
    queue_cv_service_identd=yup; else
    queue_cv_service_identd=nope; fi

    use:
    "echo '\035' | telnet localhost 113 2>/dev/null | grep
    -i Connected >/dev/null 2>&1" ; then
    queue_cv_service_identd=yup; else
    queue_cv_service_identd=nope; fi

    However, when compiling using gmake, everything
    proceeds fine until it gets to queued.c:

    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queued.c
    queued.c: In function `waitforchild':
    queued.c:995: request for member `w_status' in
    something not a structure or union
    gmake: *** [queued.o] Error 1

    Any thoughts?

    Thanks!

    Mike

     
  • Logged In: YES
    user_id=32209
    Browser: Mozilla/4.51 [en] (X11; I; Linux 2.2.5-15smp i686)

    OK, the problem with telnet in ./configure is known on some
    systems. If you look in the CVS repository, you'll see that
    1.12.7 used netstat instead of telnet to try to determine
    this. However, netstat didn't work on some systems because
    ordinary users lacked the privileges to run it.

    Find out if non-root users can run netstat under HP-UX. If
    so, the patch is
    to change the following TWO lines in configure.in:

    --Cut here
    dnl AC_CACHE_CHECK(for working identd service on port 113,
    queue_cv_service_identd, if netstat -nat | grep ':113.*:'
    >/dev/null 2>&1 ; then queue_cv_service_identd=yup; else
    queue_cv_service_identd=nope; fi)

    AC_CACHE_CHECK(for working identd service on port 113,
    queue_cv_service_identd, if eval "echo | telnet localhost
    113 2>/dev/null | grep -i Connected >/dev/null 2>&1" ; then
    queue_cv_service_identd=yup; else
    queue_cv_service_identd=nope; fi)
    if eval "test $queue_cv_service_identd = yup"; then
    AC_DEFINE(HAVE_IDENTD)
    fi
    ---Cut here
    TO:
    ---Cut here
    AC_CACHE_CHECK(for working identd service on port 113,
    queue_cv_service_identd, if netstat -nat | grep ':113.*:'
    >/dev/null 2>&1 ; then queue_cv_service_identd=yup; else
    queue_cv_service_identd=nope; fi)

    dnl AC_CACHE_CHECK(for working identd service on port 113,
    queue_cv_service_identd, if eval "echo | telnet localhost
    113 2>/dev/null | grep -i Connected >/dev/null 2>&1" ; then
    queue_cv_service_identd=yup; else
    queue_cv_service_identd=nope; fi)
    if eval "test $queue_cv_service_identd = yup"; then
    AC_DEFINE(HAVE_IDENTD)
    fi
    --- Cut here

    Of course, then you need to re-run GNU autoconf to
    regenerate ./configure on your system. (autoconf is now
    installed by default on many Redhat systems, and the output
    is machine-independent; you can also get it from the FSF if
    you don't have RedHat lying around.

    This should solve the first problem; once this is fixed,
    we'll take it from there.

     
  • Werner G Krebs
    Werner G Krebs
    2000-05-19

    • assigned_to: nobody --> wkrebs
     
  • Logged In: YES
    user_id=33778
    Browser: Mozilla/4.7 [en] (X11; I; HP-UX B.10.20 9000/785)

    I did the autoconf, and the configure seemed to go okay.
    This time, configure said that I did not have a working
    identd on port 113 (non-root can use netstat on my system).
    After my original modification to the configure script, it
    said I had a working identd on port 113.

    When I ran gmake, it gave an error since line 3860 of the
    configure was missing an if statement:
    then cat >> confdefs.h <<\EOF

    Replacing this with the corresponding line from the original
    configure script, gmake got to the same point as originally.

    Mike

     
  • Werner G Krebs
    Werner G Krebs
    2000-05-22

    • status: open --> closed
     
  • Logged In: YES
    user_id=32209
    Browser: Mozilla/3.01Gold (Win95; U)

    I think I've fixed this with the following patch:

    http://sourceforge.net/patch/?func=detailpatch&patch_id=1004
    28&group_id=5605

    Please let me know whether or not this fixes the problem
    (people just disappear when things work right; it's nice to
    have confirmation that the problem has been solved). Thanks.