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

Close

#30 Request for source that compiles on RHLinux

open
nobody
None
5
2003-05-20
2003-05-20
Anonymous
No

I am looking for a version of Queue that I can compile
run and modify on Linux! Please advise.......

nnoydb@excite.com

Discussion

  • Logged In: NO

    Hi,

    before configuring, you have to modify define.h, line 137:
    #ifdef TIME_WITH_SYS_TIME
    instead of
    #ifdef TM_WITH_SYS_TIME
    This lets you compile queued.c, but you still have errors afterwards:
    >>>
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ident.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c qlib.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queue.c
    queue.c:1661:23: warning: multi-line string literals are deprecated
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c sha1.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c wakeup.c
    gcc -g -O2 -o queue ident.o qlib.o queue.o sha1.o wakeup.o -lutil
    -lcrypt -lfl -lnsl -lrpcsvc
    c++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c task_control.cc
    c++ -g -O2 -o task_control task_control.o -lutil -lcrypt -lfl -lnsl
    -lrpcsvc
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c random.c
    gcc -g -O2 -o random random.o qlib.o -lutil -lcrypt -lfl -lnsl -lrpcsvc
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c handle.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c lex.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c logging.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c mrestart.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c pty.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queued.c
    queued.c:269:1: warning: multi-line string literals are deprecated
    gcc -g -O2 -o queued ident.o handle.o lex.o logging.o mrestart.o
    pty.o qlib.o queued.o sha1.o wakeup.o -lfl -lutil -lcrypt -lfl -lnsl -lrpcsvc
    queued.o(.text+0x17e4): In function `syserr':
    /home/gabriele/software/queue-1.40.1beta/queued.c:1759: `sys_errlist'
    is deprecated; use `strerror' or `strerror_r' instead
    queued.o(.text+0x17db):/home/gabriele/software/queue-1.40.1beta/queued.c:1759:
    `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
    c++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queue_manager.cc
    c++ -g -O2 -o queue_manager queue_manager.o -lutil -lcrypt -lfl -lnsl
    -lrpcsvc
    c++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c task_manager.cc
    c++ -g -O2 -o task_manager task_manager.o -lutil -lcrypt -lfl -lnsl
    -lrpcsvc
    cd . && autoheader
    WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
    WARNING: and `config.h.top', to define templates for `config.h.in'
    WARNING: is deprecated and discouraged.

    WARNING: Using the third argument of `AC_DEFINE' and
    WARNING: `AC_DEFINE_UNQUOTED' allows to define a template
    without
    WARNING: `acconfig.h':

    WARNING: AC_DEFINE([NEED_MAIN], 1,
    WARNING: [Define if a function `main' is needed.])

    WARNING: More sophisticated templates can also be produced, see
    the
    WARNING: documentation.
    configure.in:25: warning: AC_PROG_LEX invoked multiple times
    configure.in:26: warning: AC_PROG_LEX invoked multiple times
    configure.in:27: warning: AC_PROG_LEX invoked multiple times
    configure.in:238: error: undefine: undefined macro:
    autoconf/general.m4:1824: AC_CACHE_VAL is expanded from...
    autoconf/general.m4:1833: AC_CACHE_CHECK is expanded from...
    configure.in:238: the top level
    autom4te: /usr/bin/m4 failed with exit status: 1
    autoheader: /usr/bin/autom4te failed with exit status: 1
    make: *** [stamp-h.in] Error 1
    <<<

    gdav

     
  • Darryl Luff
    Darryl Luff
    2003-09-14

    Logged In: YES
    user_id=209605

    I have got it compiling on redhat 9, but it still has some
    problems. My modified code's a bit butchered at the moment.
    I have solaris 7, 8 and redhat 7.3 and 9 machines to test
    on. If I can get it working on all of those I'll send in a
    patch.

     
  • Logged In: NO

    Hi

    Are there any news about the patch? I would appreciate if
    somebody could help me with compilation under RH 9. I tried
    to compile Q, but got exactly the same output as shown
    here. However, i added the line

    #include <time.h>

    in queue.h

    instead of changing TIME_WITH_SYS_TIME

    please help...

    Hugo Jimenez
    hjimenez@woodward.encb.ipn.mx

     
  • Logged In: NO

    I joined the lines in the configure.in file.
    The line wraps were causeing undefined macros errors.
    tim

    berke@xilinx.com

    P.S.
    Not there yet. Anyone out there haveing any luck on Linux
    ???