Hi, I'm having problems installing queue-1.40.1beta on
redhat 7.2 and 9.0. The follwing is the output from 'make'.
After this is output from the 'make' of the previous
version of queue(queue-1.30.1). Different errors this
time. Help on either greatly appreciated!
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
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 -lelf -lcrypt -lfl -lnsl -lelf -lrpcsvc
c++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c
task_control.cc
c++ -g -O2 -o task_control task_control.o -lutil
-lelf -lcrypt -lfl -lnsl -lelf -lrpcsvc
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c random.c
gcc -g -O2 -o random random.o qlib.o -lutil -lelf
-lcrypt -lfl -lnsl -lelf -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: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
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: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
######################################
queue-1.30.1 'make' output
cd . && aclocal
cd . && automake --gnu Makefile
configure.in:25: warning: AC_PROG_LEX invoked multiple
times
configure.in:26: warning: AC_PROG_LEX invoked multiple
times
Makefile.am: required file `./depcomp' not found
make: *** [Makefile.in] Error 1
#####################################
if I copy depcomp from it's location into the current
directory that I am running 'make' from then it gets a
little further but then produces the following:
####################################
Error mail goes to "root"
configure: creating ./config.status
cd . \
&& CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh
./config.status
config.status: creating Makefile
config.status: executing depfiles commands
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.
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
gmake all-am
gmake[1]: Entering directory `/root/queue-1.30.1'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT
queue.o -MD -MP -MF ".deps/queue.Tpo" \
-c -o queue.o `test -f 'queue.c' || echo './'`queue.c; \
then mv ".deps/queue.Tpo" ".deps/queue.Po"; \
else rm -f ".deps/queue.Tpo"; exit 1; \
fi
In file included from queue.c:34:
queue.h:83: conflicting types for `sys_siglist'
/usr/include/signal.h:285: previous declaration of
`sys_siglist'
queue.c: In function `main':
queue.c:1025: warning: passing arg 2 of `signal' from
incompatible pointer type
queue.c:1323: warning: passing arg 2 of `accept' from
incompatible pointer type
queue.c:1411:23: warning: multi-line string literals
are deprecated
queue.c:1476: warning: assignment makes pointer from
integer without a cast
queue.c:1516: warning: assignment makes pointer from
integer without a cast
gmake[1]: *** [queue.o] Error 1
gmake[1]: Leaving directory `/root/queue-1.30.1'
gmake: *** [all] Error 2
cheers
dobbo@thevillas.eclipse.co.uk
Logged In: NO
struct tm' declared inside parameter list. Struct tm is
defined in time.h. This is not included in queued.c
Just put #include <time.h> on top of queued.c and then it
compiles
Logged In: NO
queue-1.30.1 'make' output
cd . && aclocal
cd . && automake --gnu Makefile
configure.in:25: warning: AC_PROG_LEX invoked multiple
times
configure.in:26: warning: AC_PROG_LEX invoked multiple
times
Makefile.am: required file `./depcomp' not found
make: *** [Makefile.in] Error 1
---------
Automake does not add the missing things. depcomp is part of
the automake distribution. The solution is to make:
automake --add-missing --gnu Makefile
right before typing make
the "AC_PROG_LEX invoked multiple" results that in configure
AC_PROG_LEX and AM_PROG_LEX is included. This doesn't
prepend queued.c to compile. For fast fix just ignore.
regards,
Stefan