[Queue-developers] re: bug queue 1.20.1 on solaris 2.5.1
Brought to you by:
wkrebs
|
From: Eric D. <eri...@co...> - 2000-08-11 17:01:33
|
I found the problem when running 1.20.1 on Solaris.
I don't know the proper fix, but commenting out lines 2860-2864
in queued.c takes care of the problems that I was seeing:
/* ------ EJD this breaks Solaris
for( i=0; i<RLIM_NLIMITS; i++ ){
register struct rlimit *rlp = &(qp->q_rlimit[i]);
if( rlp->rlim_cur >= 0 && rlp->rlim_max >= 0 )
(void) setrlimit( itorl(i), rlp );
}
-----------*/
Eric
>
>--------------FEBE046F0715C0346C7AF156
>Content-Transfer-Encoding: 7bit
>Content-Type: text/plain; charset=us-ascii
>
>Not sure what to tell you.
>
>This looks like a problem communicating between handle.c and queue.c
>(job control file parsing problem) under the Solaris
>
>Some people seem to have gotten it under Solaris, which is why I'm
>posting it here.
>
>The problem we've had with Solaris in the past is that quite a lot
>changes from one release to the next, and it is difficult getting it to
>work with all releases.
>
>However, you're right -- random should be compiled by the Makefile so
>that ./configure throws gethostbyname into the compile command for
>random.c
>
>--------------FEBE046F0715C0346C7AF156
>Content-Transfer-Encoding: 7bit
>Content-Type: message/rfc822
>Content-Disposition: inline
>
>Content-Type: text/plain
>Content-Transfer-Encoding: quoted-printable
>
>Hi.=20
> =20
>I've compiled queue-1.20.1 on Solaris 2.5.1 workstation and I've found
>the
>following problems:
> =20
>1) I run ./configure --enable-root. Then I compile with make, and i've
>attached the warnings produced by gcc. When i use 'make install' it
>gives me
>the following error:
>
> /bin/sh ./mkinstalldirs /tmp/sbin
> ./install-sh -c queued /tmp/sbin/queued
> if test ! -x random ; then gcc -o random random.c qlib.o; fi
> Undefined first referenced
> symbol in file
> gethostbyname qlib.o
> ld: fatal: Symbol referencing errors. No output written to random
>
>I think that random should be compiled during "make" and not during make
>install. It's quite annoying having a root owned file in the sources
>directory, and probably also fix the linking problem.
>
>BTW: i solved the problem manually linking the 'random' file.
>
>2) after installing it, I've launched queued:
>
># queued -D
>
>on other window i've launched queue as normal user:
>
>$ queue -i -w -n -- hostname
> =20
>and the process keep on running, until I stop it with ^C.
> =20
>On the 'queued' window i see the following output:
> =20
> sbin/queued -D
> SENDMAIL: To 'diego' from 'queued': Subject: batch queue=5Fb on
> ic9ws41.settimo.italtel.it: now/CFDIR/cfm420644940: Job is starting
>now.
>
> now/CFDIR/cfm420644940: Job is starting now.
>
>The 'ps -ef | grep hostname' output is
> root 6573 860 0 11:46:44 pts/4 0:00 queue -i -w -n --
>hostname
> diego 6580 6579 1 11:55:48 pts/1 0:00 sh -c (ps -ef | grep
>hostname)
>2>&1 < /dev/null
> diego 6581 6580 1 11:55:48 pts/1 0:00 grep hostname
>
>I can't figure what is the problem.=20
>
>Thanks in advance.
> =20
> Diego Roversi.
>
>
>--------------FEBE046F0715C0346C7AF156--
>
|