#19 queued will not compile on Redhat 7.1

open
nobody
None
5
2001-08-18
2001-08-18
Chuck Meertens
No

Hello,
I am not able to compile queued (as root) on a Dell 1.5 ghz P4 Computer
with standard Redhat 7.1 installed ("out-of-the-box"). The P4, though relatively new, is
officially supported by Redhat 7.1. I get the same errors with
both queue-1.30.1 and queue-1.40.1beta. I am compiling with gcc with the following version:
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)

The pre-compile step "./configure --enable-root" appears
to run error-free. I was able to compile on a Dell P2 running Red Hat 6.2 Linux
and then copy over the queued executable over to the P4 machine. queued then
installs and runs (after taking out the queued compile steps in the Makefile). I am therefore
up and running with queue! As queue looks like it will work nicely in our new
processing cluster, I am hopeful that a solution to this problem will be found.
Attached below are the details of the errors that I hope
will be useful for de-bugging on-going development.
Chuck M.

queue-1.40.1beta]# make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queued.c
queued.c:239: warning: `struct tm' declared inside parameter list
queued.c:239: warning: its scope is only this definition or declaration, which is probably not what
you want.
queued.c:246: warning: `struct tm' declared inside parameter list
queued.c: In function `runqueue_b':
queued.c:3110: storage size of `now' isn't known
queued.c:3110: storage size of `now' isn't known
queued.c:3114: invalid type argument of `unary *'
queued.c: At top level:
queued.c:4932: warning: `struct tm' declared inside parameter list
queued.c:4933: conflicting types for `checktime'
queued.c:239: previous declaration of `checktime'
queued.c: In function `checktime':
queued.c:4940: warning: passing arg 2 of `check1time' from incompatible pointer type
queued.c: At top level:
queued.c:4951: warning: `struct tm' declared inside parameter list
queued.c:4952: conflicting types for `check1time'
queued.c:246: previous declaration of `check1time'
queued.c: In function `check1time':
queued.c:4972: dereferencing pointer to incomplete type
(***note this line is: if (strncmp(p, "SuMoTuWeThFrSa"+tp->tm_wday*2, 2) == 0) ***)
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4972: dereferencing pointer to incomplete type
queued.c:4980: dereferencing pointer to incomplete type
queued.c:4980: dereferencing pointer to incomplete type
queued.c:4984: dereferencing pointer to incomplete type
queued.c:4985: dereferencing pointer to incomplete type
queued.c:4985: dereferencing pointer to incomplete type
queued.c:4987: dereferencing pointer to incomplete type
queued.c:4987: dereferencing pointer to incomplete type
queued.c:4995: dereferencing pointer to incomplete type
queued.c:4995: dereferencing pointer to incomplete type
queued.c:4996: dereferencing pointer to incomplete type
queued.c:4996: dereferencing pointer to incomplete type
queued.c:5004: dereferencing pointer to incomplete type
queued.c:5004: dereferencing pointer to incomplete type
make: *** [queued.o] Error 1

Discussion

  • Logged In: YES
    user_id=461830

    I just started to use queue, and saw the same problem (on
    RH7.2). It's simple -- the #include <time.h> is missing in
    queue.h (note that queue.h gets included in queued.c, where
    the error shows).

    Hope this helps,
    Martin